2964
int CharSetISMethods::fillTable(Session *session, TableList *tables, COND *)
2967
const char *wild= session->lex->wild ? session->lex->wild->ptr() : NULL;
2968
Table *table= tables->table;
2969
const CHARSET_INFO * const scs= system_charset_info;
2971
for (cs= all_charsets ; cs < all_charsets+255 ; cs++)
2973
const CHARSET_INFO * const tmp_cs= cs[0];
2974
if (tmp_cs && (tmp_cs->state & MY_CS_PRIMARY) &&
2975
(tmp_cs->state & MY_CS_AVAILABLE) &&
2976
!(tmp_cs->state & MY_CS_HIDDEN) &&
2977
!(wild && wild[0] &&
2978
wild_case_compare(scs, tmp_cs->csname,wild)))
2980
const char *comment;
2981
table->restoreRecordAsDefault();
2982
table->field[0]->store(tmp_cs->csname, strlen(tmp_cs->csname), scs);
2983
table->field[1]->store(tmp_cs->name, strlen(tmp_cs->name), scs);
2984
comment= tmp_cs->comment ? tmp_cs->comment : "";
2985
table->field[2]->store(comment, strlen(comment), scs);
2986
table->field[3]->store((int64_t) tmp_cs->mbmaxlen, true);
2987
if (schema_table_store_record(session, table))
2995
int CollationISMethods::fillTable(Session *session, TableList *tables, COND *)
2998
const char *wild= session->lex->wild ? session->lex->wild->ptr() : NULL;
2999
Table *table= tables->table;
3000
const CHARSET_INFO * const scs= system_charset_info;
3001
for (cs= all_charsets ; cs < all_charsets+255 ; cs++ )
3004
const CHARSET_INFO *tmp_cs= cs[0];
3005
if (!tmp_cs || !(tmp_cs->state & MY_CS_AVAILABLE) ||
3006
(tmp_cs->state & MY_CS_HIDDEN) ||
3007
!(tmp_cs->state & MY_CS_PRIMARY))
3009
for (cl= all_charsets; cl < all_charsets+255 ;cl ++)
3011
const CHARSET_INFO *tmp_cl= cl[0];
3012
if (!tmp_cl || !(tmp_cl->state & MY_CS_AVAILABLE) ||
3013
!my_charset_same(tmp_cs, tmp_cl))
3015
if (!(wild && wild[0] &&
3016
wild_case_compare(scs, tmp_cl->name,wild)))
3018
const char *tmp_buff;
3019
table->restoreRecordAsDefault();
3020
table->field[0]->store(tmp_cl->name, strlen(tmp_cl->name), scs);
3021
table->field[1]->store(tmp_cl->csname , strlen(tmp_cl->csname), scs);
3022
table->field[2]->store((int64_t) tmp_cl->number, true);
3023
tmp_buff= (tmp_cl->state & MY_CS_PRIMARY) ? "Yes" : "";
3024
table->field[3]->store(tmp_buff, strlen(tmp_buff), scs);
3025
tmp_buff= (tmp_cl->state & MY_CS_COMPILED)? "Yes" : "";
3026
table->field[4]->store(tmp_buff, strlen(tmp_buff), scs);
3027
table->field[5]->store((int64_t) tmp_cl->strxfrm_multiply, true);
3028
if (schema_table_store_record(session, table))
3037
int CollCharISMethods::fillTable(Session *session, TableList *tables, COND *)
3040
Table *table= tables->table;
3041
const CHARSET_INFO * const scs= system_charset_info;
3042
for (cs= all_charsets ; cs < all_charsets+255 ; cs++ )
3045
const CHARSET_INFO *tmp_cs= cs[0];
3046
if (!tmp_cs || !(tmp_cs->state & MY_CS_AVAILABLE) ||
3047
!(tmp_cs->state & MY_CS_PRIMARY))
3049
for (cl= all_charsets; cl < all_charsets+255 ;cl ++)
3051
const CHARSET_INFO *tmp_cl= cl[0];
3052
if (!tmp_cl || !(tmp_cl->state & MY_CS_AVAILABLE) ||
3053
!my_charset_same(tmp_cs,tmp_cl))
3055
table->restoreRecordAsDefault();
3056
table->field[0]->store(tmp_cl->name, strlen(tmp_cl->name), scs);
3057
table->field[1]->store(tmp_cl->csname , strlen(tmp_cl->csname), scs);
3058
if (schema_table_store_record(session, table))
3066
2959
int StatsISMethods::processTable(Session *session, TableList *tables,
3067
2960
Table *table, bool res,
3068
2961
LEX_STRING *db_name,
3998
3866
ColumnInfo("CATALOG_NAME",
4000
3868
DRIZZLE_TYPE_VARCHAR,
4001
0, 1, 0, SKIP_OPEN_TABLE),
3869
0, 1, "", SKIP_OPEN_TABLE),
4002
3870
ColumnInfo("SCHEMA_NAME",
4004
3872
DRIZZLE_TYPE_VARCHAR,
4005
3873
0, 0, "Database", SKIP_OPEN_TABLE),
4006
3874
ColumnInfo("DEFAULT_CHARACTER_SET_NAME",
4007
64, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
3875
64, DRIZZLE_TYPE_VARCHAR, 0, 0, "",
4008
3876
SKIP_OPEN_TABLE),
4009
3877
ColumnInfo("DEFAULT_COLLATION_NAME",
4010
64, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
3878
64, DRIZZLE_TYPE_VARCHAR, 0, 0, "",
4011
3879
SKIP_OPEN_TABLE),
4012
3880
ColumnInfo("SQL_PATH",
4014
3882
DRIZZLE_TYPE_VARCHAR,
4015
0, 1, 0, SKIP_OPEN_TABLE),
3883
0, 1, "", SKIP_OPEN_TABLE),
4020
3888
ColumnInfo tables_fields_info[]=
4022
3890
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR,
4023
0, 1, 0, SKIP_OPEN_TABLE),
3891
0, 1, "", SKIP_OPEN_TABLE),
4024
3892
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR,
4025
0, 0, 0, SKIP_OPEN_TABLE),
3893
0, 0, "", SKIP_OPEN_TABLE),
4026
3894
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR,
4027
3895
0, 0, "Name", SKIP_OPEN_TABLE),
4028
3896
ColumnInfo("TABLE_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR,
4029
0, 0, 0, OPEN_FRM_ONLY),
3897
0, 0, "", OPEN_FRM_ONLY),
4030
3898
ColumnInfo("ENGINE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR,
4031
3899
0, 1, "Engine", OPEN_FRM_ONLY),
4032
3900
ColumnInfo("VERSION", MY_INT64_NUM_DECIMAL_DIGITS, DRIZZLE_TYPE_LONGLONG, 0,
4063
3931
ColumnInfo columns_fields_info[]=
4065
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FRM_ONLY),
4066
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FRM_ONLY),
4067
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FRM_ONLY),
3933
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FRM_ONLY),
3934
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FRM_ONLY),
3935
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FRM_ONLY),
4068
3936
ColumnInfo("COLUMN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Field",
4069
3937
OPEN_FRM_ONLY),
4070
3938
ColumnInfo("ORDINAL_POSITION", MY_INT64_NUM_DECIMAL_DIGITS, DRIZZLE_TYPE_LONGLONG, 0,
4071
MY_I_S_UNSIGNED, 0, OPEN_FRM_ONLY),
3939
MY_I_S_UNSIGNED, "", OPEN_FRM_ONLY),
4072
3940
ColumnInfo("COLUMN_DEFAULT", MAX_FIELD_VARCHARLENGTH, DRIZZLE_TYPE_VARCHAR, 0,
4073
3941
1, "Default", OPEN_FRM_ONLY),
4074
3942
ColumnInfo("IS_NULLABLE", 3, DRIZZLE_TYPE_VARCHAR, 0, 0, "Null", OPEN_FRM_ONLY),
4075
ColumnInfo("DATA_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FRM_ONLY),
3943
ColumnInfo("DATA_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FRM_ONLY),
4076
3944
ColumnInfo("CHARACTER_MAXIMUM_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS, DRIZZLE_TYPE_LONGLONG,
4077
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), 0, OPEN_FRM_ONLY),
3945
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), "", OPEN_FRM_ONLY),
4078
3946
ColumnInfo("CHARACTER_OCTET_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , DRIZZLE_TYPE_LONGLONG,
4079
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), 0, OPEN_FRM_ONLY),
3947
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), "", OPEN_FRM_ONLY),
4080
3948
ColumnInfo("NUMERIC_PRECISION", MY_INT64_NUM_DECIMAL_DIGITS, DRIZZLE_TYPE_LONGLONG,
4081
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), 0, OPEN_FRM_ONLY),
3949
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), "", OPEN_FRM_ONLY),
4082
3950
ColumnInfo("NUMERIC_SCALE", MY_INT64_NUM_DECIMAL_DIGITS , DRIZZLE_TYPE_LONGLONG,
4083
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), 0, OPEN_FRM_ONLY),
4084
ColumnInfo("CHARACTER_SET_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FRM_ONLY),
3951
0, (MY_I_S_MAYBE_NULL | MY_I_S_UNSIGNED), "", OPEN_FRM_ONLY),
3952
ColumnInfo("CHARACTER_SET_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FRM_ONLY),
4085
3953
ColumnInfo("COLLATION_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 1, "Collation", OPEN_FRM_ONLY),
4086
3954
ColumnInfo("COLUMN_TYPE", 65535, DRIZZLE_TYPE_VARCHAR, 0, 0, "Type", OPEN_FRM_ONLY),
4087
3955
ColumnInfo("COLUMN_KEY", 3, DRIZZLE_TYPE_VARCHAR, 0, 0, "Key", OPEN_FRM_ONLY),
4125
3980
ColumnInfo coll_charset_app_fields_info[]=
4127
ColumnInfo("COLLATION_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, SKIP_OPEN_TABLE),
4128
ColumnInfo("CHARACTER_SET_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, SKIP_OPEN_TABLE),
3982
ColumnInfo("COLLATION_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 0, "", SKIP_OPEN_TABLE),
3983
ColumnInfo("CHARACTER_SET_NAME", 64, DRIZZLE_TYPE_VARCHAR, 0, 0, "", SKIP_OPEN_TABLE),
4133
3988
ColumnInfo stat_fields_info[]=
4135
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FRM_ONLY),
4136
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FRM_ONLY),
3990
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FRM_ONLY),
3991
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FRM_ONLY),
4137
3992
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Table", OPEN_FRM_ONLY),
4138
3993
ColumnInfo("NON_UNIQUE", 1, DRIZZLE_TYPE_LONGLONG, 0, 0, "Non_unique", OPEN_FRM_ONLY),
4139
ColumnInfo("INDEX_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FRM_ONLY),
3994
ColumnInfo("INDEX_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FRM_ONLY),
4140
3995
ColumnInfo("INDEX_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Key_name",
4141
3996
OPEN_FRM_ONLY),
4142
3997
ColumnInfo("SEQ_IN_INDEX", 2, DRIZZLE_TYPE_LONGLONG, 0, 0, "Seq_in_index", OPEN_FRM_ONLY),
4158
4013
ColumnInfo table_constraints_fields_info[]=
4160
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FULL_TABLE),
4161
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4163
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4165
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4166
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4167
ColumnInfo("CONSTRAINT_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4015
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FULL_TABLE),
4016
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4017
"", OPEN_FULL_TABLE),
4018
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4019
"", OPEN_FULL_TABLE),
4020
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4021
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4022
ColumnInfo("CONSTRAINT_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4023
"", OPEN_FULL_TABLE),
4173
4028
ColumnInfo key_column_usage_fields_info[]=
4175
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FULL_TABLE),
4176
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4178
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4180
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FULL_TABLE),
4181
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4182
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4184
ColumnInfo("COLUMN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4185
ColumnInfo("ORDINAL_POSITION", 10 ,DRIZZLE_TYPE_LONGLONG, 0, 0, 0, OPEN_FULL_TABLE),
4186
ColumnInfo("POSITION_IN_UNIQUE_CONSTRAINT", 10 ,DRIZZLE_TYPE_LONGLONG, 0, 1, 0,
4188
ColumnInfo("REFERENCED_TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0,
4190
ColumnInfo("REFERENCED_TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0,
4192
ColumnInfo("REFERENCED_COLUMN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0,
4030
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FULL_TABLE),
4031
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4032
"", OPEN_FULL_TABLE),
4033
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4034
"", OPEN_FULL_TABLE),
4035
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FULL_TABLE),
4036
ColumnInfo("TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4037
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4038
"", OPEN_FULL_TABLE),
4039
ColumnInfo("COLUMN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4040
ColumnInfo("ORDINAL_POSITION", 10 ,DRIZZLE_TYPE_LONGLONG, 0, 0, "", OPEN_FULL_TABLE),
4041
ColumnInfo("POSITION_IN_UNIQUE_CONSTRAINT", 10 ,DRIZZLE_TYPE_LONGLONG, 0, 1,
4042
"", OPEN_FULL_TABLE),
4043
ColumnInfo("REFERENCED_TABLE_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1,
4044
"", OPEN_FULL_TABLE),
4045
ColumnInfo("REFERENCED_TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1,
4046
"", OPEN_FULL_TABLE),
4047
ColumnInfo("REFERENCED_COLUMN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1,
4048
"", OPEN_FULL_TABLE),
4198
4053
ColumnInfo table_names_fields_info[]=
4200
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, SKIP_OPEN_TABLE),
4201
ColumnInfo("TABLE_SCHEMA",NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, SKIP_OPEN_TABLE),
4055
ColumnInfo("TABLE_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", SKIP_OPEN_TABLE),
4056
ColumnInfo("TABLE_SCHEMA",NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", SKIP_OPEN_TABLE),
4202
4057
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Tables_in_",
4203
4058
SKIP_OPEN_TABLE),
4204
4059
ColumnInfo("TABLE_TYPE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Table_type",
4232
4087
ColumnInfo("PLUGIN_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "Name",
4233
4088
SKIP_OPEN_TABLE),
4234
ColumnInfo("PLUGIN_VERSION", 20, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, SKIP_OPEN_TABLE),
4089
ColumnInfo("PLUGIN_VERSION", 20, DRIZZLE_TYPE_VARCHAR, 0, 0, "", SKIP_OPEN_TABLE),
4235
4090
ColumnInfo("PLUGIN_STATUS", 10, DRIZZLE_TYPE_VARCHAR, 0, 0, "Status", SKIP_OPEN_TABLE),
4236
ColumnInfo("PLUGIN_AUTHOR", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, SKIP_OPEN_TABLE),
4237
ColumnInfo("PLUGIN_DESCRIPTION", 65535, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, SKIP_OPEN_TABLE),
4091
ColumnInfo("PLUGIN_AUTHOR", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", SKIP_OPEN_TABLE),
4092
ColumnInfo("PLUGIN_DESCRIPTION", 65535, DRIZZLE_TYPE_VARCHAR, 0, 1, "", SKIP_OPEN_TABLE),
4238
4093
ColumnInfo("PLUGIN_LICENSE", 80, DRIZZLE_TYPE_VARCHAR, 0, 1, "License", SKIP_OPEN_TABLE),
4242
4097
ColumnInfo referential_constraints_fields_info[]=
4244
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0, OPEN_FULL_TABLE),
4245
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4247
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4249
ColumnInfo("UNIQUE_CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, 0,
4251
ColumnInfo("UNIQUE_CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4099
ColumnInfo("CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1, "", OPEN_FULL_TABLE),
4100
ColumnInfo("CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4101
"", OPEN_FULL_TABLE),
4102
ColumnInfo("CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4103
"", OPEN_FULL_TABLE),
4104
ColumnInfo("UNIQUE_CONSTRAINT_CATALOG", FN_REFLEN, DRIZZLE_TYPE_VARCHAR, 0, 1,
4105
"", OPEN_FULL_TABLE),
4106
ColumnInfo("UNIQUE_CONSTRAINT_SCHEMA", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4107
"", OPEN_FULL_TABLE),
4253
4108
ColumnInfo("UNIQUE_CONSTRAINT_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0,
4254
MY_I_S_MAYBE_NULL, 0, OPEN_FULL_TABLE),
4255
ColumnInfo("MATCH_OPTION", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4256
ColumnInfo("UPDATE_RULE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4257
ColumnInfo("DELETE_RULE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4258
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0, OPEN_FULL_TABLE),
4259
ColumnInfo("REFERENCED_TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, 0,
4109
MY_I_S_MAYBE_NULL, "", OPEN_FULL_TABLE),
4110
ColumnInfo("MATCH_OPTION", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4111
ColumnInfo("UPDATE_RULE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4112
ColumnInfo("DELETE_RULE", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4113
ColumnInfo("TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0, "", OPEN_FULL_TABLE),
4114
ColumnInfo("REFERENCED_TABLE_NAME", NAME_CHAR_LEN, DRIZZLE_TYPE_VARCHAR, 0, 0,
4115
"", OPEN_FULL_TABLE),
4264
static CharSetISMethods char_set_methods;
4265
static CollationISMethods collations_methods;
4266
static CollCharISMethods coll_char_methods;
4267
4119
static ColumnsISMethods columns_methods;
4268
4120
static StatusISMethods status_methods;
4269
4121
static VariablesISMethods variables_methods;