diff options
author | unknown <vva@eagle.mysql.r18.ru> | 2003-07-28 10:57:46 -0400 |
---|---|---|
committer | unknown <vva@eagle.mysql.r18.ru> | 2003-07-28 10:57:46 -0400 |
commit | a56959a5b6b5e04e86b03e33fd4eb664322f9342 (patch) | |
tree | 03a3f7dcd401f3a989010a618471f93548dceedc /sql/sql_base.cc | |
parent | 9b675b8be0ab30ce9a4a0a16a0932f163d9f1d87 (diff) | |
download | mariadb-git-a56959a5b6b5e04e86b03e33fd4eb664322f9342.tar.gz |
changed for AUTO_VALUE_ON_ZERO
mysql-test/r/auto_increment.result:
added test for AUTO_VALUE_ON_ZERO
mysql-test/t/auto_increment.test:
added test for AUTO_VALUE_ON_ZERO
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r-- | sql/sql_base.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc index a7798588d59..dbb29cf53e3 100644 --- a/sql/sql_base.cc +++ b/sql/sql_base.cc @@ -2247,8 +2247,8 @@ fill_record(List<Item> &fields,List<Item> &values, bool ignore_errors) value=v++; Field *rfield= field->field; TABLE *table= rfield->table; - if (rfield==table->next_number_field) - table->auto_increment_field_is_null= false; + if (rfield == table->next_number_field) + table->auto_increment_field_not_null= true; if (value->save_in_field(rfield, 0) > 0 && !ignore_errors) DBUG_RETURN(1); } @@ -2268,8 +2268,8 @@ fill_record(Field **ptr,List<Item> &values, bool ignore_errors) { value=v++; TABLE *table= field->table; - if (field==table->next_number_field) - table->auto_increment_field_is_null= false; + if (field == table->next_number_field) + table->auto_increment_field_not_null= true; if (value->save_in_field(field, 0) == 1 && !ignore_errors) DBUG_RETURN(1); } |