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
--replace_column 8 "#TBLR#" 9 "#ARL#" 10 "#DL#" 11 "#MDL#" 12 "#IL#" 13 "#DF#" 15 "#CRT#" 16 "#UT#" 17 "#CT#" 20 "#CO#" 21 "#TC#"
36
IF(INSTR(table_comment,$innodb_pattern) = 0
37
AND INSTR(table_comment,$ndb_pattern) = 0,
38
LENGTH(table_comment),
39
INSTR(table_comment,$innodb_pattern)
40
+ INSTR(table_comment,$ndb_pattern) - 1))
42
'-----------------------------------------------------' AS "Separator"
43
FROM information_schema.tables
45
ORDER BY table_schema,table_name;