summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-02-22 18:58:14 +0100
committerSergei Golubchik <serg@mariadb.org>2019-02-27 23:15:28 -0500
commit387b690eab51035112e1488f82209bc22643ff2f (patch)
treeb517bb350b3a49cb902dfc58240886d7b3e8e193 /sql/sql_insert.cc
parent72ee180512553a40f92ce17c2ed855795d166f62 (diff)
downloadmariadb-git-387b690eab51035112e1488f82209bc22643ff2f.tar.gz
cleanup: cosmetic fixes
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index ba01fa57670..90170f5a132 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -1744,10 +1744,8 @@ int write_record(THD *thd, TABLE *table,COPY_INFO *info)
was used. This ensures that we don't get a problem when the
whole range of the key has been used.
*/
- if (info->handle_duplicates == DUP_REPLACE &&
- table->next_number_field &&
- key_nr == table->s->next_number_index &&
- (insert_id_for_cur_row > 0))
+ if (info->handle_duplicates == DUP_REPLACE && table->next_number_field &&
+ key_nr == table->s->next_number_index && insert_id_for_cur_row > 0)
goto err;
if (table->file->ha_table_flags() & HA_DUPLICATE_POS)
{