mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02: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:
parent
121d7b39f1
commit
ae4afbe04a
3 changed files with 149 additions and 194 deletions
|
|
@ -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},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue