mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
SQL: hide system fields from PK [#361]
This commit is contained in:
parent
f9d875d212
commit
86b590c064
1 changed files with 8 additions and 0 deletions
|
@ -2256,6 +2256,14 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet,
|
|||
|
||||
for (uint j=0 ; j < key_info->user_defined_key_parts ; j++,key_part++)
|
||||
{
|
||||
Field *field= key_part->field;
|
||||
if (field && field->vers_sys_field())
|
||||
{
|
||||
if (vers_hide == VERS_HIDE_FULL /*|| ((field->flags & HIDDEN_FLAG) &&
|
||||
vers_hide != VERS_HIDE_NEVER)*/)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (j)
|
||||
packet->append(',');
|
||||
|
||||
|
|
Loading…
Reference in a new issue