diff options
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 4bcfd92dfd3..97ade27d933 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -3036,7 +3036,7 @@ int handler::update_auto_increment() DBUG_ENTER("handler::update_auto_increment"); // System Versioning: handle ALTER ADD COLUMN AUTO_INCREMENT - if (thd->lex->sql_command == SQLCOM_ALTER_TABLE && table->versioned_by_sql()) + if (thd->lex->sql_command == SQLCOM_ALTER_TABLE && table->versioned()) { Field *end= table->vers_end_field(); DBUG_ASSERT(end); |