mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
BUG#23013 make INFORMATION_SCHEMA.FILES easily usable by other engines
sql/ha_ndbcluster.cc: update fill_files_table to match new way of doing things sql/mysql_priv.h: defines for INFORMATION_SCHEMA.FILES column numbers add init_fill_schema_files_row() sql/sql_show.cc: add init_fill_schema_files_row(TABLE*) to help engines with filling schema files.
This commit is contained in:
@ -5418,6 +5418,16 @@ ST_FIELD_INFO files_fields_info[]=
|
||||
{0, 0, MYSQL_TYPE_STRING, 0, 0, 0}
|
||||
};
|
||||
|
||||
void init_fill_schema_files_row(TABLE* table)
|
||||
{
|
||||
int i;
|
||||
for(i=0; files_fields_info[i].field_name!=NULL; i++)
|
||||
table->field[i]->set_null();
|
||||
|
||||
table->field[IS_FILES_STATUS]->set_notnull();
|
||||
table->field[IS_FILES_STATUS]->store("NORMAL", 6, system_charset_info);
|
||||
}
|
||||
|
||||
ST_FIELD_INFO referential_constraints_fields_info[]=
|
||||
{
|
||||
{"CONSTRAINT_CATALOG", FN_REFLEN, MYSQL_TYPE_STRING, 0, 1, 0},
|
||||
|
Reference in New Issue
Block a user