Commit 86b590c0 authored by Aleksey Midenkov's avatar Aleksey Midenkov

SQL: hide system fields from PK [#361]

parent f9d875d2
...@@ -2256,6 +2256,14 @@ int show_create_table(THD *thd, TABLE_LIST *table_list, String *packet, ...@@ -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++) 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) if (j)
packet->append(','); packet->append(',');
......
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