#### suite/funcs_1/datadict/datadict.pre # # Auxiliary script which loads prerequisites # (variables needed for --replace_result ...) # in datadictionary tests. # # Author: # 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of # testsuite funcs_1 # Create this script based on older scripts and new code. # --disable_query_log # Bug#12777 Different size shown for VARCHAR(n) columns (with n> 64) # in INFORMATION_SCHEMA # This bug was unfortunately (for testers) declared to be no bug. # So CHARACTER_MAXIMUM_LENGTH of several <whatever>_CATALOG columns within # the INFORMATION_SCHEMA depends on PATH_MAX of the operating system. # Workaround for this problem: # Get the size of ONE known colum and check the size against some values to # be able to use the correct --replace_result statement. Using this only the # one pair of 'wrong' values is replaced and not all occurrencies of all # possible pairs of values. See bug #12777 for details. SELECT character_maximum_length INTO @CML FROM information_schema.columns WHERE table_schema = 'information_schema' AND table_name = 'columns' AND column_name = 'table_catalog'; let $bug_12777_0512= `SELECT @CML = 512`; let $bug_12777_1023= `SELECT @CML = 1023`; let $bug_12777_1024= `SELECT @CML = 1024`; let $bug_12777_2048= `SELECT @CML = 2048`; # 4096 is the value used in the files with expected results. let $bug_12777_4095= `SELECT @CML = 4095`; if (0) { # enable this for debugging only, but NOT in a pushed version, as then the # result changes from OS to OS ... eval SELECT @CML AS 'CML', $bug_12777_0512 AS '512', $bug_12777_1023 AS '1023', $bug_12777_1024 AS '1024', $bug_12777_2048 AS '2048', $bug_12777_4095 AS '4095'; } # Prepare a variable to be able to suppress machine dependant diffs # this can be used in: --replace_result $SERVER_NAME <SERVER_NAME> let $SERVER_NAME= `SELECT DISTINCT host FROM mysql.user WHERE host NOT In ("localhost", "127.0.0.1", "%")`; --enable_query_log
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
basics_mixed1.inc | File | 1.74 KB | 0644 |
|
basics_mixed2.inc | File | 2.21 KB | 0644 |
|
basics_mixed3.inc | File | 1.95 KB | 0644 |
|
columns.inc | File | 2.73 KB | 0644 |
|
datadict.pre | File | 2.08 KB | 0644 |
|
datadict_bug_12777.inc | File | 1.8 KB | 0644 |
|
datadict_load.inc | File | 4.16 KB | 0644 |
|
datadict_priv.inc | File | 3.34 KB | 0644 |
|
is_key_column_usage.inc | File | 14.01 KB | 0644 |
|
is_routines.inc | File | 18.85 KB | 0644 |
|
is_schemata.inc | File | 10.82 KB | 0644 |
|
is_table_query.inc | File | 1.29 KB | 0644 |
|
is_tables.inc | File | 18.3 KB | 0644 |
|
is_triggers.inc | File | 10.45 KB | 0644 |
|
is_views.inc | File | 11.8 KB | 0644 |
|
processlist_priv.inc | File | 24.41 KB | 0644 |
|
processlist_val.inc | File | 18.49 KB | 0644 |
|
statistics.inc | File | 1.61 KB | 0644 |
|
table_constraints.inc | File | 1.42 KB | 0644 |
|
tables.inc | File | 1.73 KB | 0644 |
|
tables1.inc | File | 1.15 KB | 0644 |
|
tables2.inc | File | 1.78 KB | 0644 |
|