diff options
author | monty@mysql.com <> | 2005-04-01 15:04:50 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-04-01 15:04:50 +0300 |
commit | 201ee3eb78da55c72c627c6aa09a51899e31c4a7 (patch) | |
tree | 7920c948db7d0f2174fb24ba26cd648144fa4850 /sql/sql_load.cc | |
parent | e9205dc0f0f6e5dcc184a9e71fb85e9eec51a8a8 (diff) | |
download | mariadb-git-201ee3eb78da55c72c627c6aa09a51899e31c4a7.tar.gz |
Invalid DEFAULT values for CREATE TABLE now generates errors. (Bug #5902)
CAST() now produces warnings when casting a wrong INTEGER or CHAR values. This also applies to implicite string to number casts. (Bug #5912)
ALTER TABLE now fails in STRICT mode if it generates warnings.
Inserting a zero date in a DATE, DATETIME or TIMESTAMP column during TRADITIONAL mode now produces an error. (Bug #5933)
Diffstat (limited to 'sql/sql_load.cc')
-rw-r--r-- | sql/sql_load.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_load.cc b/sql/sql_load.cc index a0fed715405..c827bbace3e 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -671,7 +671,7 @@ read_sep_field(THD *thd, COPY_INFO &info, TABLE_LIST *table_list, if (field->type() == FIELD_TYPE_TIMESTAMP) ((Field_timestamp*) field)->set_time(); else if (field != table->next_number_field) - field->set_warning((uint) MYSQL_ERROR::WARN_LEVEL_WARN, + field->set_warning(MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_NULL_TO_NOTNULL, 1); } } |