1 # suite/funcs_1/datadict/tables2.inc
3 # Auxiliary script to be sourced by suite/funcs_1/datadict/tables1.inc.
6 # 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of
8 # Create this script based on older scripts and new code.
10 ################################################################################
22 # 21 TABLE_COMMENT User defined comment
24 # + NDB: "number_of_replicas: <number>" appended
25 # + InnoDB: "InnoDB free: <number_kB> kB" appended
26 # <number_kB> depends on tablespace history!
27 # The LEFT/INSTR/IF/LENGTH stuff should remove these
28 # storage engine specific part.
29 let $innodb_pattern =
'InnoDB free';
30 let $ndb_pattern =
'number_of_replicas';
32 # We do not unify the engine name here, because the rowformat is
33 # specific to the engine.
34 --replace_column 8
"#TBLR#" 9
"#ARL#" 10
"#DL#" 11
"#MDL#" 12
"#IL#" 13
"#DF#" 15
"#CRT#" 16
"#UT#" 17
"#CT#" 20
"#CO#" 21
"#TC#"
38 IF(INSTR(table_comment,$innodb_pattern) = 0
39 AND INSTR(table_comment,$ndb_pattern) = 0,
40 LENGTH(table_comment),
41 INSTR(table_comment,$innodb_pattern)
42 + INSTR(table_comment,$ndb_pattern) - 1))
44 '-----------------------------------------------------' AS "Separator"
45 FROM information_schema.tables