4038
4052
{"TABLE_NAME", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, "Name"},
4039
4053
{"TABLE_TYPE", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, 0},
4040
4054
{"ENGINE", NAME_LEN, MYSQL_TYPE_STRING, 0, 1, "Engine"},
4041
{"VERSION", 21 , MYSQL_TYPE_LONG, 0, 1, "Version"},
4055
{"VERSION", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, "Version"},
4042
4056
{"ROW_FORMAT", 10, MYSQL_TYPE_STRING, 0, 1, "Row_format"},
4043
{"TABLE_ROWS", 21 , MYSQL_TYPE_LONG, 0, 1, "Rows"},
4044
{"AVG_ROW_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, "Avg_row_length"},
4045
{"DATA_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, "Data_length"},
4046
{"MAX_DATA_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, "Max_data_length"},
4047
{"INDEX_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, "Index_length"},
4048
{"DATA_FREE", 21 , MYSQL_TYPE_LONG, 0, 1, "Data_free"},
4049
{"AUTO_INCREMENT", 21 , MYSQL_TYPE_LONG, 0, 1, "Auto_increment"},
4057
{"TABLE_ROWS", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, "Rows"},
4058
{"AVG_ROW_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4060
{"DATA_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4062
{"MAX_DATA_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4064
{"INDEX_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4066
{"DATA_FREE", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, "Data_free"},
4067
{"AUTO_INCREMENT", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4050
4069
{"CREATE_TIME", 0, MYSQL_TYPE_TIMESTAMP, 0, 1, "Create_time"},
4051
4070
{"UPDATE_TIME", 0, MYSQL_TYPE_TIMESTAMP, 0, 1, "Update_time"},
4052
4071
{"CHECK_TIME", 0, MYSQL_TYPE_TIMESTAMP, 0, 1, "Check_time"},
4053
4072
{"TABLE_COLLATION", 64, MYSQL_TYPE_STRING, 0, 1, "Collation"},
4054
{"CHECKSUM", 21 , MYSQL_TYPE_LONG, 0, 1, "Checksum"},
4073
{"CHECKSUM", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, "Checksum"},
4055
4074
{"CREATE_OPTIONS", 255, MYSQL_TYPE_STRING, 0, 1, "Create_options"},
4056
4075
{"TABLE_COMMENT", 80, MYSQL_TYPE_STRING, 0, 0, "Comment"},
4057
4076
{0, 0, MYSQL_TYPE_STRING, 0, 0, 0}
4064
4083
{"TABLE_SCHEMA", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, 0},
4065
4084
{"TABLE_NAME", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, 0},
4066
4085
{"COLUMN_NAME", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, "Field"},
4067
{"ORDINAL_POSITION", 21 , MYSQL_TYPE_LONG, 0, 0, 0},
4086
{"ORDINAL_POSITION", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 0, 0},
4068
4087
{"COLUMN_DEFAULT", MAX_FIELD_VARCHARLENGTH, MYSQL_TYPE_STRING, 0, 1, "Default"},
4069
4088
{"IS_NULLABLE", 3, MYSQL_TYPE_STRING, 0, 0, "Null"},
4070
4089
{"DATA_TYPE", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, 0},
4071
{"CHARACTER_MAXIMUM_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, 0},
4072
{"CHARACTER_OCTET_LENGTH", 21 , MYSQL_TYPE_LONG, 0, 1, 0},
4073
{"NUMERIC_PRECISION", 21 , MYSQL_TYPE_LONG, 0, 1, 0},
4074
{"NUMERIC_SCALE", 21 , MYSQL_TYPE_LONG, 0, 1, 0},
4090
{"CHARACTER_MAXIMUM_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1,
4092
{"CHARACTER_OCTET_LENGTH", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, 0},
4093
{"NUMERIC_PRECISION", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, 0},
4094
{"NUMERIC_SCALE", MY_INT64_NUM_DECIMAL_DIGITS , MYSQL_TYPE_LONG, 0, 1, 0},
4075
4095
{"CHARACTER_SET_NAME", 64, MYSQL_TYPE_STRING, 0, 1, 0},
4076
4096
{"COLLATION_NAME", 64, MYSQL_TYPE_STRING, 0, 1, "Collation"},
4077
4097
{"COLUMN_TYPE", 65535, MYSQL_TYPE_STRING, 0, 0, "Type"},
4098
4118
{"COLLATION_NAME", 64, MYSQL_TYPE_STRING, 0, 0, "Collation"},
4099
4119
{"CHARACTER_SET_NAME", 64, MYSQL_TYPE_STRING, 0, 0, "Charset"},
4100
{"ID", 11, MYSQL_TYPE_LONG, 0, 0, "Id"},
4120
{"ID", MY_INT32_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Id"},
4101
4121
{"IS_DEFAULT", 3, MYSQL_TYPE_STRING, 0, 0, "Default"},
4102
4122
{"IS_COMPILED", 3, MYSQL_TYPE_STRING, 0, 0, "Compiled"},
4103
4123
{"SORTLEN", 3 ,MYSQL_TYPE_LONG, 0, 0, "Sortlen"},
4150
4170
{"SEQ_IN_INDEX", 2, MYSQL_TYPE_LONG, 0, 0, "Seq_in_index"},
4151
4171
{"COLUMN_NAME", NAME_LEN, MYSQL_TYPE_STRING, 0, 0, "Column_name"},
4152
4172
{"COLLATION", 1, MYSQL_TYPE_STRING, 0, 1, "Collation"},
4153
{"CARDINALITY", 21, MYSQL_TYPE_LONG, 0, 1, "Cardinality"},
4173
{"CARDINALITY", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 1, "Cardinality"},
4154
4174
{"SUB_PART", 3, MYSQL_TYPE_LONG, 0, 1, "Sub_part"},
4155
4175
{"PACKED", 10, MYSQL_TYPE_STRING, 0, 1, "Packed"},
4156
4176
{"NULLABLE", 3, MYSQL_TYPE_STRING, 0, 0, "Null"},
4323
4343
get_all_tables, 0, get_schema_key_column_usage_record, 4, 5, 0},
4324
4344
{"OPEN_TABLES", open_tables_fields_info, create_schema_table,
4325
4345
fill_open_tables, make_old_format, 0, -1, -1, 1},
4346
{"PROFILING", query_profile_statistics_info, create_schema_table,
4347
fill_query_profile_statistics_info, NULL, NULL, -1, -1, false},
4326
4348
{"ROUTINES", proc_fields_info, create_schema_table,
4327
4349
fill_schema_proc, make_proc_old_format, 0, -1, -1, 0},
4328
4350
{"SCHEMATA", schema_fields_info, create_schema_table,