Commit 88454b33 authored by Aleksey Midenkov's avatar Aleksey Midenkov

SQL: comment and check about ALTER in update_auto_increment()

parent aa292666
...@@ -3029,7 +3029,8 @@ int handler::update_auto_increment() ...@@ -3029,7 +3029,8 @@ int handler::update_auto_increment()
enum enum_check_fields save_count_cuted_fields; enum enum_check_fields save_count_cuted_fields;
DBUG_ENTER("handler::update_auto_increment"); DBUG_ENTER("handler::update_auto_increment");
if (table->versioned_by_sql()) // System Versioning: handle ALTER ADD COLUMN AUTO_INCREMENT
if (thd->lex->sql_command == SQLCOM_ALTER_TABLE && table->versioned_by_sql())
{ {
Field *end= table->vers_end_field(); Field *end= table->vers_end_field();
DBUG_ASSERT(end); DBUG_ASSERT(end);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment