Debian Codegraph @

mysql-test/suite/ndb_ddl/check_ndb_schema_upgrade_status.inc

raw
1 # Print if the mysql.ndb_schema table is upgraded or not
2 --source include/have_debug.inc
3
4 # Query the mysql.tables DD table to check of schema_op_id existence
5 # If the column exist, then the table is upgraded.
6
7 --disable_query_log
8 set GLOBAL debug="+d,skip_dd_table_access_check";
9 select (if (count(*) = 1, "Yes", "No"))
10 as "Is 'mysql.ndb_schema' table upgraded?"
11 from mysql.tables t, mysql.columns c
12 where t.name="ndb_schema"
13 and t.id=c.table_id
14 and c.name="schema_op_id";
15 set GLOBAL debug="-d,skip_dd_table_access_check";
16 --enable_query_log