mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-16975 Application-time periods: ALTER TABLE
* implicit period constraint is hidden and cannot be dropped independently * create...like and create...select support
This commit is contained in:
committed by
Sergei Golubchik
parent
b2bd52290a
commit
6294516a56
@ -2417,8 +2417,12 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
|
||||
for (uint i= share->field_check_constraints;
|
||||
i < share->table_check_constraints ; i++)
|
||||
{
|
||||
StringBuffer<MAX_FIELD_WIDTH> str(&my_charset_utf8mb4_general_ci);
|
||||
Virtual_column_info *check= table->check_constraints[i];
|
||||
// period constraint is implicit
|
||||
if (share->period.constr_name.streq(check->name))
|
||||
continue;
|
||||
|
||||
StringBuffer<MAX_FIELD_WIDTH> str(&my_charset_utf8mb4_general_ci);
|
||||
check->print(&str);
|
||||
|
||||
packet->append(STRING_WITH_LEN(",\n "));
|
||||
|
Reference in New Issue
Block a user