mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-build mysql-test/suite/rpl/r/rpl_row_tabledefs_2myisam.result: Auto merged mysql-test/suite/rpl/r/rpl_row_tabledefs_3innodb.result: Auto merged sql/field.cc: Auto merged sql/field.h: Auto merged sql/ha_ndbcluster.cc: Auto merged sql/log_event.cc: Auto merged sql/log_event.h: Auto merged sql/rpl_record.cc: Auto merged sql/rpl_rli.h: Auto merged sql/rpl_utility.cc: Auto merged sql/rpl_utility.h: Auto merged
This commit is contained in:
@@ -1309,7 +1309,7 @@ static char *cover_definer_clause_in_trigger(const char *trigger_def_str,
|
|||||||
@note This function will go away when WL#3995 is implemented.
|
@note This function will go away when WL#3995 is implemented.
|
||||||
|
|
||||||
@param[in] def_str CREATE FUNCTION|PROCEDURE statement string.
|
@param[in] def_str CREATE FUNCTION|PROCEDURE statement string.
|
||||||
@param[in] def_length length of the def_str.
|
@param[in] def_str_length length of the def_str.
|
||||||
|
|
||||||
@return pointer to the new allocated query string.
|
@return pointer to the new allocated query string.
|
||||||
*/
|
*/
|
||||||
|
@@ -10,7 +10,7 @@ AC_CANONICAL_SYSTEM
|
|||||||
#
|
#
|
||||||
# When changing major version number please also check switch statement
|
# When changing major version number please also check switch statement
|
||||||
# in mysqlbinlog::check_master_version().
|
# in mysqlbinlog::check_master_version().
|
||||||
AM_INIT_AUTOMAKE(mysql, 5.1.22-beta)
|
AM_INIT_AUTOMAKE(mysql, 5.1.23-beta)
|
||||||
AM_CONFIG_HEADER([include/config.h:config.h.in])
|
AM_CONFIG_HEADER([include/config.h:config.h.in])
|
||||||
|
|
||||||
PROTOCOL_VERSION=10
|
PROTOCOL_VERSION=10
|
||||||
|
@@ -750,7 +750,7 @@ void *thd_memdup(MYSQL_THD thd, const void* str, unsigned int size);
|
|||||||
@param thd user thread connection handle
|
@param thd user thread connection handle
|
||||||
@param lex_str pointer to LEX_STRING object to be initialized
|
@param lex_str pointer to LEX_STRING object to be initialized
|
||||||
@param str initializer to be copied into lex_str
|
@param str initializer to be copied into lex_str
|
||||||
@param length length of str, in bytes
|
@param size length of str, in bytes
|
||||||
@param allocate_lex_string flag: if TRUE, allocate new LEX_STRING object,
|
@param allocate_lex_string flag: if TRUE, allocate new LEX_STRING object,
|
||||||
instead of using lex_str value
|
instead of using lex_str value
|
||||||
@return NULL on failure, or pointer to the LEX_STRING object
|
@return NULL on failure, or pointer to the LEX_STRING object
|
||||||
@@ -773,7 +773,7 @@ void thd_get_xid(const MYSQL_THD thd, MYSQL_XID *xid);
|
|||||||
Invalidate the query cache for a given table.
|
Invalidate the query cache for a given table.
|
||||||
|
|
||||||
@param thd user thread connection handle
|
@param thd user thread connection handle
|
||||||
@param key databasename\0tablename\0
|
@param key databasename\\0tablename\\0
|
||||||
@param key_length length of key in bytes, including the NUL bytes
|
@param key_length length of key in bytes, including the NUL bytes
|
||||||
@param using_trx flag: TRUE if using transactions, FALSE otherwise
|
@param using_trx flag: TRUE if using transactions, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
|
@@ -4676,9 +4676,17 @@ int cli_read_binary_rows(MYSQL_STMT *stmt)
|
|||||||
MYSQL *mysql= stmt->mysql;
|
MYSQL *mysql= stmt->mysql;
|
||||||
MYSQL_DATA *result= &stmt->result;
|
MYSQL_DATA *result= &stmt->result;
|
||||||
MYSQL_ROWS *cur, **prev_ptr= &result->data;
|
MYSQL_ROWS *cur, **prev_ptr= &result->data;
|
||||||
NET *net = &mysql->net;
|
NET *net;
|
||||||
|
|
||||||
|
if (!mysql)
|
||||||
|
{
|
||||||
|
set_stmt_error(stmt, CR_SERVER_LOST, unknown_sqlstate);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
DBUG_ENTER("cli_read_binary_rows");
|
DBUG_ENTER("cli_read_binary_rows");
|
||||||
|
|
||||||
|
net = &mysql->net;
|
||||||
mysql= mysql->last_used_con;
|
mysql= mysql->last_used_con;
|
||||||
|
|
||||||
while ((pkt_len= cli_safe_read(mysql)) != packet_error)
|
while ((pkt_len= cli_safe_read(mysql)) != packet_error)
|
||||||
|
@@ -71,38 +71,47 @@ sync_slave_with_master;
|
|||||||
############################################
|
############################################
|
||||||
|
|
||||||
## BUG22086
|
## BUG22086
|
||||||
#--echo *** Create t2 on slave ***
|
--echo *** Create t2 on slave ***
|
||||||
#STOP SLAVE;
|
STOP SLAVE;
|
||||||
#RESET SLAVE;
|
RESET SLAVE;
|
||||||
#eval CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
|
eval CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
|
||||||
# d FLOAT DEFAULT '2.00',
|
d FLOAT DEFAULT '2.00',
|
||||||
# e CHAR(5) DEFAULT 'TEST2')
|
e CHAR(5) DEFAULT 'TEST2')
|
||||||
# ENGINE=$engine_type;
|
ENGINE=$engine_type;
|
||||||
#
|
|
||||||
#--echo *** Create t2 on Master ***
|
|
||||||
#connection master;
|
|
||||||
#eval CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
|
|
||||||
# ) ENGINE=$engine_type;
|
|
||||||
#RESET MASTER;
|
|
||||||
#
|
|
||||||
#--echo *** Start Slave ***
|
|
||||||
#connection slave;
|
|
||||||
#START SLAVE;
|
|
||||||
#
|
|
||||||
#--echo *** Master Data Insert ***
|
|
||||||
#connection master;
|
|
||||||
#
|
|
||||||
#INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
|
|
||||||
#SELECT * FROM t2 ORDER BY a;
|
|
||||||
|
|
||||||
#--echo *** Select from slave ***
|
--echo *** Create t2 on Master ***
|
||||||
#sync_slave_with_master;
|
connection master;
|
||||||
#SELECT * FROM t2 ORDER BY a;
|
eval CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
|
||||||
|
) ENGINE=$engine_type;
|
||||||
|
RESET MASTER;
|
||||||
|
|
||||||
#--echo *** Drop t2 ***
|
--echo *** Master Data Insert ***
|
||||||
#connection master;
|
connection master;
|
||||||
#DROP TABLE t2;
|
|
||||||
#sync_slave_with_master;
|
INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
|
||||||
|
--echo *** Start Slave ***
|
||||||
|
connection slave;
|
||||||
|
START SLAVE;
|
||||||
|
wait_for_slave_to_stop;
|
||||||
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
|
--query_vertical SHOW SLAVE STATUS
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
RESET MASTER;
|
||||||
|
|
||||||
|
connection slave;
|
||||||
|
START SLAVE;
|
||||||
|
|
||||||
|
--echo *** Drop t2 ***
|
||||||
|
connection master;
|
||||||
|
DROP TABLE t2;
|
||||||
|
sync_slave_with_master;
|
||||||
|
|
||||||
####################################
|
####################################
|
||||||
### Try to replicate BLOB to INT ###
|
### Try to replicate BLOB to INT ###
|
||||||
@@ -140,7 +149,7 @@ INSERT INTO t3 () VALUES(@b1,2,'Kyle, TEX'),(@b1,1,'JOE AUSTIN'),(@b1,4,'QA TEST
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -185,7 +194,7 @@ INSERT INTO t4 () VALUES(100.22,2,'Kyle, TEX'),(200.26,1,'JOE AUSTIN'),
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -230,7 +239,7 @@ INSERT INTO t5 () VALUES(1,'Kyle',200.23,1,'b1b1',23.00098),
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -276,7 +285,7 @@ INSERT INTO t6 () VALUES(1,'Kyle',200.23,1),
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
#START SLAVE;
|
#START SLAVE;
|
||||||
@@ -378,7 +387,7 @@ INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
|||||||
#connection slave;
|
#connection slave;
|
||||||
#wait_for_slave_to_stop;
|
#wait_for_slave_to_stop;
|
||||||
#--replace_result $MASTER_MYPORT MASTER_PORT
|
#--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
#--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
#--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
#--query_vertical SHOW SLAVE STATUS
|
#--query_vertical SHOW SLAVE STATUS
|
||||||
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
#START SLAVE;
|
#START SLAVE;
|
||||||
@@ -429,7 +438,7 @@ sync_slave_with_master;
|
|||||||
#--echo *** Select from T9 ***
|
#--echo *** Select from T9 ***
|
||||||
#--source include/wait_for_slave_sql_to_stop.inc
|
#--source include/wait_for_slave_sql_to_stop.inc
|
||||||
#--replace_result $MASTER_MYPORT MASTER_PORT
|
#--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
#--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
#--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
#--query_vertical SHOW SLAVE STATUS
|
#--query_vertical SHOW SLAVE STATUS
|
||||||
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
#START SLAVE;
|
#START SLAVE;
|
||||||
@@ -471,7 +480,7 @@ INSERT INTO t10 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -515,7 +524,7 @@ INSERT INTO t11 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -725,7 +734,7 @@ ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5;
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -834,7 +843,7 @@ INSERT INTO t17 () VALUES(9223372036854775807,2,'Kyle, TEX');
|
|||||||
connection slave;
|
connection slave;
|
||||||
--source include/wait_for_slave_sql_to_stop.inc
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
--replace_column 1 # 7 # 8 # 9 # 22 # 23 # 33 #
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
--query_vertical SHOW SLAVE STATUS
|
--query_vertical SHOW SLAVE STATUS
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -465,3 +465,17 @@ select * from t1;
|
|||||||
# Just to be sure and not confuse the next test case writer.
|
# Just to be sure and not confuse the next test case writer.
|
||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#25856 - HANDLER table OPEN in one connection lock DROP TABLE in another one
|
||||||
|
#
|
||||||
|
--disable_warnings
|
||||||
|
drop table if exists t1;
|
||||||
|
--enable_warnings
|
||||||
|
eval create table t1 (a int) ENGINE=$other_engine_type;
|
||||||
|
--echo --> client 2
|
||||||
|
connection con2;
|
||||||
|
--error 1031
|
||||||
|
handler t1 open;
|
||||||
|
--echo --> client 1
|
||||||
|
connection default;
|
||||||
|
drop table t1;
|
||||||
|
@@ -939,6 +939,36 @@ alter table t1 add index(a(1024));
|
|||||||
show create table t1;
|
show create table t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #28570: handler::index_read() is called with different find_flag when
|
||||||
|
# ORDER BY is used
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
a INT,
|
||||||
|
b INT,
|
||||||
|
KEY (b)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (1,10), (2,10), (2,20), (3,30);
|
||||||
|
|
||||||
|
START TRANSACTION;
|
||||||
|
SELECT * FROM t1 WHERE b=20 FOR UPDATE;
|
||||||
|
|
||||||
|
--connect (conn2, localhost, root,,test)
|
||||||
|
|
||||||
|
# This statement gives a "failed: 1205: Lock wait timeout exceeded; try
|
||||||
|
# restarting transaction" message when the bug is present.
|
||||||
|
START TRANSACTION;
|
||||||
|
SELECT * FROM t1 WHERE b=10 ORDER BY A FOR UPDATE;
|
||||||
|
ROLLBACK;
|
||||||
|
|
||||||
|
--disconnect conn2
|
||||||
|
--connection default
|
||||||
|
|
||||||
|
ROLLBACK;
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
--echo End of 5.0 tests
|
--echo End of 5.0 tests
|
||||||
|
|
||||||
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
|
# Fix for BUG#19243 "wrong LAST_INSERT_ID() after ON DUPLICATE KEY
|
||||||
|
@@ -147,4 +147,6 @@ DROP EVENT test.slave_terminate;
|
|||||||
--echo "Cleanup"
|
--echo "Cleanup"
|
||||||
connection master;
|
connection master;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
sync_slave_with_master;
|
||||||
|
connection master;
|
||||||
|
|
||||||
|
40
mysql-test/include/test_fieldsize.inc
Normal file
40
mysql-test/include/test_fieldsize.inc
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
#
|
||||||
|
# include/test_fieldsize.inc
|
||||||
|
#
|
||||||
|
# This include file is designed to create a table with one column
|
||||||
|
# whose size on the master is greater than that on the slave. The
|
||||||
|
# test should fail with an error on the slave.
|
||||||
|
#
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
|
||||||
|
sync_slave_with_master;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
eval $test_table_slave;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
eval $test_table_master;
|
||||||
|
RESET MASTER;
|
||||||
|
|
||||||
|
eval $test_insert;
|
||||||
|
|
||||||
|
connection slave;
|
||||||
|
START SLAVE;
|
||||||
|
wait_for_slave_to_stop;
|
||||||
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
|
--query_vertical SHOW SLAVE STATUS
|
||||||
|
|
||||||
|
# The following should be 0
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
|
||||||
|
connection master;
|
||||||
|
RESET MASTER;
|
||||||
|
|
||||||
|
connection slave;
|
||||||
|
START SLAVE;
|
||||||
|
|
@@ -17,6 +17,7 @@
|
|||||||
# let $wait_condition=
|
# let $wait_condition=
|
||||||
# SELECT c = 3 FROM t;
|
# SELECT c = 3 FROM t;
|
||||||
# --source include/wait_condition.inc
|
# --source include/wait_condition.inc
|
||||||
|
# --echo Executed the test condition $wait_condition_reps times
|
||||||
#
|
#
|
||||||
# EXAMPLE
|
# EXAMPLE
|
||||||
# events_bugs.test, events_time_zone.test
|
# events_bugs.test, events_time_zone.test
|
||||||
@@ -33,9 +34,13 @@ if ($wait_timeout)
|
|||||||
# calls, and default will be used instead.
|
# calls, and default will be used instead.
|
||||||
let $wait_timeout= 0;
|
let $wait_timeout= 0;
|
||||||
|
|
||||||
|
# Keep track of how many times the wait condition is tested
|
||||||
|
# This is used by some tests (e.g., main.status)
|
||||||
|
let $wait_condition_reps= 0;
|
||||||
while ($wait_counter)
|
while ($wait_counter)
|
||||||
{
|
{
|
||||||
let $success= `$wait_condition`;
|
let $success= `$wait_condition`;
|
||||||
|
inc $wait_condition_reps;
|
||||||
if ($success)
|
if ($success)
|
||||||
{
|
{
|
||||||
let $wait_counter= 0;
|
let $wait_counter= 0;
|
||||||
|
@@ -933,26 +933,6 @@ sub command_line_setup () {
|
|||||||
mtr_error("Will not run in record mode without a specific test case");
|
mtr_error("Will not run in record mode without a specific test case");
|
||||||
}
|
}
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
|
||||||
# Embedded server flag
|
|
||||||
# --------------------------------------------------------------------------
|
|
||||||
if ( $opt_embedded_server )
|
|
||||||
{
|
|
||||||
$glob_use_embedded_server= 1;
|
|
||||||
push(@glob_test_mode, "embedded");
|
|
||||||
$opt_skip_rpl= 1; # We never run replication with embedded
|
|
||||||
$opt_skip_ndbcluster= 1; # Turn off use of NDB cluster
|
|
||||||
$opt_skip_ssl= 1; # Turn off use of SSL
|
|
||||||
|
|
||||||
# Turn off use of bin log
|
|
||||||
push(@opt_extra_mysqld_opt, "--skip-log-bin");
|
|
||||||
|
|
||||||
if ( $opt_extern )
|
|
||||||
{
|
|
||||||
mtr_error("Can't use --extern with --embedded-server");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# ps protcol flag
|
# ps protcol flag
|
||||||
|
@@ -5,9 +5,9 @@ CREATE TABLE t3 (b INT AUTO_INCREMENT PRIMARY KEY);
|
|||||||
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
|
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
|
||||||
INSERT INTO t1 SELECT UUID();
|
INSERT INTO t1 SELECT UUID();
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1589 Statement is not safe to log in statement format.
|
Warning 1590 Statement is not safe to log in statement format.
|
||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Warning
|
Level Warning
|
||||||
Code 1589
|
Code 1590
|
||||||
Message Statement is not safe to log in statement format.
|
Message Statement is not safe to log in statement format.
|
||||||
DROP TABLE t1,t2,t3;
|
DROP TABLE t1,t2,t3;
|
||||||
|
177
mysql-test/r/ctype_ascii.result
Normal file
177
mysql-test/r/ctype_ascii.result
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
set names ascii;
|
||||||
|
select 'e'='`';
|
||||||
|
'e'='`'
|
||||||
|
0
|
||||||
|
select 'y'='~';
|
||||||
|
'y'='~'
|
||||||
|
0
|
||||||
|
create table t1 (a char(1) character set ascii);
|
||||||
|
insert into t1 (a) values (' '), ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h'), ('i'), ('j'), ('k'), ('l'), ('m'), ('n'), ('o'), ('p'), ('q'), ('r'), ('s'), ('t'), ('u'), ('v'), ('w'), ('x'), ('y'), ('z'), ('A'), ('B'), ('C'), ('D'), ('E'), ('F'), ('G'), ('H'), ('I'), ('J'), ('K'), ('L'), ('M'), ('N'), ('O'), ('P'), ('Q'), ('R'), ('S'), ('T'), ('U'), ('V'), ('W'), ('X'), ('Y'), ('Z'), ('!'), ('@'), ('#'), ('$'), ('%'), ('^'), ('&'), ('*'), ('('), (')'), ('_'), ('+'), ('`'), ('~'), ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('0'), ('['), (']'), ('\\'), ('|'), ('}'), ('{'), ('"'), (':'), (''''), (';'), ('/'), ('.'), (','), ('?'), ('>'), ('<'), ('\n'), ('\t'), ('\a'), ('\f'), ('\v');
|
||||||
|
select t1a.a, t1b.a from t1 as t1a, t1 as t1b where t1a.a=t1b.a order by binary t1a.a, binary t1b.a;
|
||||||
|
a a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
! !
|
||||||
|
" "
|
||||||
|
# #
|
||||||
|
$ $
|
||||||
|
% %
|
||||||
|
& &
|
||||||
|
' '
|
||||||
|
( (
|
||||||
|
) )
|
||||||
|
* *
|
||||||
|
+ +
|
||||||
|
, ,
|
||||||
|
. .
|
||||||
|
/ /
|
||||||
|
0 0
|
||||||
|
1 1
|
||||||
|
2 2
|
||||||
|
3 3
|
||||||
|
4 4
|
||||||
|
5 5
|
||||||
|
6 6
|
||||||
|
7 7
|
||||||
|
8 8
|
||||||
|
9 9
|
||||||
|
: :
|
||||||
|
; ;
|
||||||
|
< <
|
||||||
|
> >
|
||||||
|
? ?
|
||||||
|
@ @
|
||||||
|
A A
|
||||||
|
A a
|
||||||
|
A a
|
||||||
|
B B
|
||||||
|
B b
|
||||||
|
C C
|
||||||
|
C c
|
||||||
|
D D
|
||||||
|
D d
|
||||||
|
E E
|
||||||
|
E e
|
||||||
|
F F
|
||||||
|
F f
|
||||||
|
F f
|
||||||
|
G G
|
||||||
|
G g
|
||||||
|
H H
|
||||||
|
H h
|
||||||
|
I I
|
||||||
|
I i
|
||||||
|
J J
|
||||||
|
J j
|
||||||
|
K K
|
||||||
|
K k
|
||||||
|
L L
|
||||||
|
L l
|
||||||
|
M M
|
||||||
|
M m
|
||||||
|
N N
|
||||||
|
N n
|
||||||
|
O O
|
||||||
|
O o
|
||||||
|
P P
|
||||||
|
P p
|
||||||
|
Q Q
|
||||||
|
Q q
|
||||||
|
R R
|
||||||
|
R r
|
||||||
|
S S
|
||||||
|
S s
|
||||||
|
T T
|
||||||
|
T t
|
||||||
|
U U
|
||||||
|
U u
|
||||||
|
V V
|
||||||
|
V v
|
||||||
|
V v
|
||||||
|
W W
|
||||||
|
W w
|
||||||
|
X X
|
||||||
|
X x
|
||||||
|
Y Y
|
||||||
|
Y y
|
||||||
|
Z Z
|
||||||
|
Z z
|
||||||
|
[ [
|
||||||
|
\ \
|
||||||
|
] ]
|
||||||
|
^ ^
|
||||||
|
_ _
|
||||||
|
` `
|
||||||
|
a A
|
||||||
|
a A
|
||||||
|
a a
|
||||||
|
a a
|
||||||
|
a a
|
||||||
|
a a
|
||||||
|
b B
|
||||||
|
b b
|
||||||
|
c C
|
||||||
|
c c
|
||||||
|
d D
|
||||||
|
d d
|
||||||
|
e E
|
||||||
|
e e
|
||||||
|
f F
|
||||||
|
f F
|
||||||
|
f f
|
||||||
|
f f
|
||||||
|
f f
|
||||||
|
f f
|
||||||
|
g G
|
||||||
|
g g
|
||||||
|
h H
|
||||||
|
h h
|
||||||
|
i I
|
||||||
|
i i
|
||||||
|
j J
|
||||||
|
j j
|
||||||
|
k K
|
||||||
|
k k
|
||||||
|
l L
|
||||||
|
l l
|
||||||
|
m M
|
||||||
|
m m
|
||||||
|
n N
|
||||||
|
n n
|
||||||
|
o O
|
||||||
|
o o
|
||||||
|
p P
|
||||||
|
p p
|
||||||
|
q Q
|
||||||
|
q q
|
||||||
|
r R
|
||||||
|
r r
|
||||||
|
s S
|
||||||
|
s s
|
||||||
|
t T
|
||||||
|
t t
|
||||||
|
u U
|
||||||
|
u u
|
||||||
|
v V
|
||||||
|
v V
|
||||||
|
v v
|
||||||
|
v v
|
||||||
|
v v
|
||||||
|
v v
|
||||||
|
w W
|
||||||
|
w w
|
||||||
|
x X
|
||||||
|
x x
|
||||||
|
y Y
|
||||||
|
y y
|
||||||
|
z Z
|
||||||
|
z z
|
||||||
|
{ {
|
||||||
|
| |
|
||||||
|
} }
|
||||||
|
~ ~
|
||||||
|
drop table t1;
|
||||||
|
End of 5.0 tests.
|
@@ -187,6 +187,14 @@ select * from t1 where a=_latin1'
|
|||||||
ERROR HY000: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
|
ERROR HY000: Illegal mix of collations (cp1251_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '='
|
||||||
drop table t1;
|
drop table t1;
|
||||||
set names latin1;
|
set names latin1;
|
||||||
|
set names ascii;
|
||||||
|
create table t1 (a char(1) character set latin1);
|
||||||
|
insert into t1 values ('a');
|
||||||
|
select * from t1 where a='a';
|
||||||
|
a
|
||||||
|
a
|
||||||
|
drop table t1;
|
||||||
|
set names latin1;
|
||||||
create table t1 (a char(10) character set utf8 collate utf8_bin);
|
create table t1 (a char(10) character set utf8 collate utf8_bin);
|
||||||
insert into t1 values (' xxx');
|
insert into t1 values (' xxx');
|
||||||
select * from t1 where a=lpad('xxx',10,' ');
|
select * from t1 where a=lpad('xxx',10,' ');
|
||||||
|
@@ -209,16 +209,16 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
|
1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
|
||||||
explain SELECT distinct t1.a from t1 order by a desc limit 1;
|
explain SELECT distinct t1.a from t1 order by a desc limit 1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL PRIMARY 4 NULL 4 Using index
|
1 SIMPLE t1 index NULL PRIMARY 4 NULL 1 Using index
|
||||||
explain SELECT distinct a from t3 order by a desc limit 2;
|
explain SELECT distinct a from t3 order by a desc limit 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 index NULL a 5 NULL 204 Using index
|
1 SIMPLE t3 index NULL a 5 NULL 40 Using index
|
||||||
explain SELECT distinct a,b from t3 order by a+1;
|
explain SELECT distinct a,b from t3 order by a+1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
|
1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
|
||||||
explain SELECT distinct a,b from t3 order by a limit 10;
|
explain SELECT distinct a,b from t3 order by a limit 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 index NULL a 5 NULL 204 Using temporary
|
1 SIMPLE t3 index NULL a 5 NULL 2 Using temporary
|
||||||
explain SELECT a,b from t3 group by a,b order by a+1;
|
explain SELECT a,b from t3 group by a,b order by a+1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
|
1 SIMPLE t3 ALL NULL NULL NULL NULL 204 Using temporary; Using filesort
|
||||||
|
@@ -154,7 +154,7 @@ teststring
|
|||||||
teststring
|
teststring
|
||||||
explain select * from t1 order by text1;
|
explain select * from t1 order by text1;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL key1 34 NULL 3
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using filesort
|
||||||
alter table t1 modify text1 char(32) binary not null;
|
alter table t1 modify text1 char(32) binary not null;
|
||||||
select * from t1 order by text1;
|
select * from t1 order by text1;
|
||||||
text1
|
text1
|
||||||
|
@@ -31,7 +31,7 @@ create event e_55 on schedule at 10000101000000 do drop table t;
|
|||||||
ERROR HY000: Incorrect AT value: '10000101000000'
|
ERROR HY000: Incorrect AT value: '10000101000000'
|
||||||
create event e_55 on schedule at 20000101000000 do drop table t;
|
create event e_55 on schedule at 20000101000000 do drop table t;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1585 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1586 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
show events;
|
show events;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
create event e_55 on schedule at 20200101000000 starts 10000101000000 do drop table t;
|
create event e_55 on schedule at 20200101000000 starts 10000101000000 do drop table t;
|
||||||
@@ -457,22 +457,22 @@ CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
|||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1585 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1586 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' DISABLE
|
ENDS '1999-01-02 00:00:00' DISABLE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1585 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1586 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DO
|
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1585 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1586 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DISABLE
|
CREATE EVENT e4 ON SCHEDULE AT '1999-01-01 00:00:00' DISABLE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1585 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
Note 1586 Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
events_test e1 root@localhost +05:00 RECURRING NULL 1 DAY 2006-01-01 00:00:00 NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
@@ -482,19 +482,19 @@ The following should succeed giving a warning.
|
|||||||
ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
ALTER EVENT e1 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE;
|
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1541 Event execution time is in the past. Event has been disabled
|
Note 1542 Event execution time is in the past. Event has been disabled
|
||||||
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
CREATE EVENT e4 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE
|
ENDS '1999-01-02 00:00:00' ON COMPLETION PRESERVE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1541 Event execution time is in the past. Event has been disabled
|
Note 1542 Event execution time is in the past. Event has been disabled
|
||||||
CREATE EVENT e5 ON SCHEDULE AT '1999-01-01 00:00:00'
|
CREATE EVENT e5 ON SCHEDULE AT '1999-01-01 00:00:00'
|
||||||
ON COMPLETION PRESERVE
|
ON COMPLETION PRESERVE
|
||||||
DO
|
DO
|
||||||
SELECT 1;
|
SELECT 1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1541 Event execution time is in the past. Event has been disabled
|
Note 1542 Event execution time is in the past. Event has been disabled
|
||||||
The following should succeed without warnings.
|
The following should succeed without warnings.
|
||||||
ALTER EVENT e2 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00';
|
ALTER EVENT e2 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00';
|
||||||
ALTER EVENT e3 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
ALTER EVENT e3 ON SCHEDULE EVERY 1 HOUR STARTS '1999-01-01 00:00:00'
|
||||||
|
@@ -63,7 +63,7 @@ begin work;
|
|||||||
insert into t1 (a) values ("OK: create event if not exists");
|
insert into t1 (a) values ("OK: create event if not exists");
|
||||||
create event if not exists e1 on schedule every 2 day do select 2;
|
create event if not exists e1 on schedule every 2 day do select 2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1534 Event 'e1' already exists
|
Note 1535 Event 'e1' already exists
|
||||||
rollback work;
|
rollback work;
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a
|
a
|
||||||
|
@@ -1161,7 +1161,7 @@ CREATE TABLE t2 (a INT, b INT, KEY(a));
|
|||||||
INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
|
INSERT INTO t2 VALUES (1, 1), (2, 2), (3,3), (4,4);
|
||||||
EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
|
EXPLAIN SELECT a, SUM(b) FROM t2 GROUP BY a LIMIT 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t2 index NULL a 5 NULL 4
|
1 SIMPLE t2 index NULL a 5 NULL 2
|
||||||
EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
|
EXPLAIN SELECT a, SUM(b) FROM t2 IGNORE INDEX (a) GROUP BY a LIMIT 2;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
|
1 SIMPLE t2 ALL NULL NULL NULL NULL 4 Using temporary; Using filesort
|
||||||
|
@@ -1963,20 +1963,20 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using temporary; Using filesort
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 128 Using temporary; Using filesort
|
||||||
explain select a1,a2,count(a2) from t1 group by a1,a2,b;
|
explain select a1,a2,count(a2) from t1 group by a1,a2,b;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL idx_t1_1 163 NULL 128 Using index
|
1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using index
|
||||||
explain extended select a1,a2,count(a2) from t1 where (a1 > 'a') group by a1,a2,b;
|
explain extended select a1,a2,count(a2) from t1 where (a1 > 'a') group by a1,a2,b;
|
||||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||||
1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 128 75.00 Using where; Using index
|
1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128 75.00 Using where; Using index
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,count(`test`.`t1`.`a2`) AS `count(a2)` from `test`.`t1` where (`test`.`t1`.`a1` > _latin1'a') group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
|
Note 1003 select `test`.`t1`.`a1` AS `a1`,`test`.`t1`.`a2` AS `a2`,count(`test`.`t1`.`a2`) AS `count(a2)` from `test`.`t1` where (`test`.`t1`.`a1` > _latin1'a') group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
|
||||||
explain extended select sum(ord(a1)) from t1 where (a1 > 'a') group by a1,a2,b;
|
explain extended select sum(ord(a1)) from t1 where (a1 > 'a') group by a1,a2,b;
|
||||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||||
1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_1 163 NULL 128 75.00 Using where; Using index
|
1 SIMPLE t1 index idx_t1_0,idx_t1_1,idx_t1_2 idx_t1_2 147 NULL 128 75.00 Using where; Using index
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1003 select sum(ord(`test`.`t1`.`a1`)) AS `sum(ord(a1))` from `test`.`t1` where (`test`.`t1`.`a1` > _latin1'a') group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
|
Note 1003 select sum(ord(`test`.`t1`.`a1`)) AS `sum(ord(a1))` from `test`.`t1` where (`test`.`t1`.`a1` > _latin1'a') group by `test`.`t1`.`a1`,`test`.`t1`.`a2`,`test`.`t1`.`b`
|
||||||
explain select distinct(a1) from t1 where ord(a2) = 98;
|
explain select distinct(a1) from t1 where ord(a2) = 98;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL idx_t1_1 163 NULL 128 Using where; Using index
|
1 SIMPLE t1 index NULL idx_t1_2 147 NULL 128 Using where; Using index
|
||||||
select distinct(a1) from t1 where ord(a2) = 98;
|
select distinct(a1) from t1 where ord(a2) = 98;
|
||||||
a1
|
a1
|
||||||
a
|
a
|
||||||
@@ -2256,7 +2256,7 @@ EXPLAIN SELECT 1 FROM t1 AS t1_outer WHERE
|
|||||||
a IN (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
|
a IN (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 PRIMARY t1_outer index NULL a 10 NULL 15 Using where; Using index
|
1 PRIMARY t1_outer index NULL a 10 NULL 15 Using where; Using index
|
||||||
2 DEPENDENT SUBQUERY t1 index NULL a 10 NULL 15 Using index
|
2 DEPENDENT SUBQUERY t1 index NULL a 10 NULL 1 Using index
|
||||||
EXPLAIN SELECT 1 FROM t1 AS t1_outer GROUP BY a HAVING
|
EXPLAIN SELECT 1 FROM t1 AS t1_outer GROUP BY a HAVING
|
||||||
a > (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
|
a > (SELECT max(b) FROM t1 GROUP BY a HAVING a < 2);
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
@@ -515,3 +515,10 @@ ERROR 42S02: Table 'test.t1' doesn't exist
|
|||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1051 Unknown table 't1'
|
Note 1051 Unknown table 't1'
|
||||||
|
drop table if exists t1;
|
||||||
|
create table t1 (a int) ENGINE=MEMORY;
|
||||||
|
--> client 2
|
||||||
|
handler t1 open;
|
||||||
|
ERROR HY000: Table storage engine for 't1' doesn't have this option
|
||||||
|
--> client 1
|
||||||
|
drop table t1;
|
||||||
|
@@ -515,3 +515,10 @@ ERROR 42S02: Table 'test.t1' doesn't exist
|
|||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1051 Unknown table 't1'
|
Note 1051 Unknown table 't1'
|
||||||
|
drop table if exists t1;
|
||||||
|
create table t1 (a int) ENGINE=MEMORY;
|
||||||
|
--> client 2
|
||||||
|
handler t1 open;
|
||||||
|
ERROR HY000: Table storage engine for 't1' doesn't have this option
|
||||||
|
--> client 1
|
||||||
|
drop table t1;
|
||||||
|
@@ -196,7 +196,6 @@ t1 a select
|
|||||||
show columns from mysqltest.t1;
|
show columns from mysqltest.t1;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
a int(11) YES NULL
|
a int(11) YES NULL
|
||||||
b varchar(30) YES MUL NULL
|
|
||||||
select table_name, column_name, privileges from information_schema.columns
|
select table_name, column_name, privileges from information_schema.columns
|
||||||
where table_schema = 'mysqltest' and table_name = 'v1';
|
where table_schema = 'mysqltest' and table_name = 'v1';
|
||||||
table_name column_name privileges
|
table_name column_name privileges
|
||||||
@@ -1410,6 +1409,31 @@ alter database;
|
|||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
|
||||||
alter database test;
|
alter database test;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
|
||||||
|
create database mysqltest;
|
||||||
|
create table mysqltest.t1(a int, b int, c int);
|
||||||
|
create trigger mysqltest.t1_ai after insert on mysqltest.t1
|
||||||
|
for each row set @a = new.a + new.b + new.c;
|
||||||
|
grant select(b) on mysqltest.t1 to mysqltest_1@localhost;
|
||||||
|
select trigger_name from information_schema.triggers
|
||||||
|
where event_object_table='t1';
|
||||||
|
trigger_name
|
||||||
|
t1_ai
|
||||||
|
show triggers from mysqltest;
|
||||||
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
|
t1_ai INSERT t1 set @a = new.a + new.b + new.c AFTER NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
|
show columns from t1;
|
||||||
|
Field Type Null Key Default Extra
|
||||||
|
b int(11) YES NULL
|
||||||
|
select column_name from information_schema.columns where table_name='t1';
|
||||||
|
column_name
|
||||||
|
b
|
||||||
|
show triggers;
|
||||||
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
|
select trigger_name from information_schema.triggers
|
||||||
|
where event_object_table='t1';
|
||||||
|
trigger_name
|
||||||
|
drop user mysqltest_1@localhost;
|
||||||
|
drop database mysqltest;
|
||||||
End of 5.0 tests.
|
End of 5.0 tests.
|
||||||
select * from information_schema.engines WHERE ENGINE="MyISAM";
|
select * from information_schema.engines WHERE ENGINE="MyISAM";
|
||||||
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
||||||
|
@@ -151,13 +151,11 @@ create view v2 as select f1 from testdb_1.v1;
|
|||||||
create view v4 as select f1,f2 from testdb_1.v3;
|
create view v4 as select f1,f2 from testdb_1.v3;
|
||||||
show fields from testdb_1.v5;
|
show fields from testdb_1.v5;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f1 char(4) YES NULL
|
|
||||||
show create view testdb_1.v5;
|
show create view testdb_1.v5;
|
||||||
View Create View character_set_client collation_connection
|
View Create View character_set_client collation_connection
|
||||||
v5 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_1`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v5` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
v5 CREATE ALGORITHM=UNDEFINED DEFINER=`testdb_1`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v5` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
||||||
show fields from testdb_1.v6;
|
show fields from testdb_1.v6;
|
||||||
Field Type Null Key Default Extra
|
Field Type Null Key Default Extra
|
||||||
f1 char(4) YES NULL
|
|
||||||
show create view testdb_1.v6;
|
show create view testdb_1.v6;
|
||||||
View Create View character_set_client collation_connection
|
View Create View character_set_client collation_connection
|
||||||
v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v6` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
v6 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `testdb_1`.`v6` AS select `testdb_1`.`t1`.`f1` AS `f1` from `testdb_1`.`t1` latin1 latin1_swedish_ci
|
||||||
|
@@ -947,7 +947,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 index NULL PRIMARY 4 NULL #
|
1 SIMPLE t1 index NULL PRIMARY 4 NULL #
|
||||||
explain select * from t1 order by b;
|
explain select * from t1 order by b;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 index NULL b 4 NULL #
|
1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
|
||||||
explain select * from t1 order by c;
|
explain select * from t1 order by c;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
|
1 SIMPLE t1 ALL NULL NULL NULL NULL # Using filesort
|
||||||
@@ -1086,39 +1086,6 @@ n d
|
|||||||
1 30
|
1 30
|
||||||
2 20
|
2 20
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
CREATE TABLE `t1` (
|
|
||||||
`a` int(11) NOT NULL auto_increment,
|
|
||||||
`b` int(11) default NULL,
|
|
||||||
PRIMARY KEY (`a`)
|
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
|
|
||||||
CREATE TABLE `t2` (
|
|
||||||
`a` int(11) NOT NULL auto_increment,
|
|
||||||
`b` int(11) default NULL,
|
|
||||||
PRIMARY KEY (`a`)
|
|
||||||
) ENGINE=INNODB DEFAULT CHARSET=latin1 ;
|
|
||||||
insert into t1 values (1,1),(2,2);
|
|
||||||
insert into t2 values (1,1),(4,4);
|
|
||||||
reset master;
|
|
||||||
UPDATE t2,t1 SET t2.a=t1.a+2;
|
|
||||||
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
|
|
||||||
select * from t2 /* must be (3,1), (4,4) */;
|
|
||||||
a b
|
|
||||||
1 1
|
|
||||||
4 4
|
|
||||||
show master status /* there must no UPDATE in binlog */;
|
|
||||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
|
||||||
master-bin.000001 106
|
|
||||||
delete from t1;
|
|
||||||
delete from t2;
|
|
||||||
insert into t1 values (1,2),(3,4),(4,4);
|
|
||||||
insert into t2 values (1,2),(3,4),(4,4);
|
|
||||||
reset master;
|
|
||||||
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
|
||||||
ERROR 23000: Duplicate entry '4' for key 'PRIMARY'
|
|
||||||
show master status /* there must be no UPDATE query event */;
|
|
||||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
|
||||||
master-bin.000001 106
|
|
||||||
drop table t1, t2;
|
|
||||||
create table t1 (a int, b int) engine=innodb;
|
create table t1 (a int, b int) engine=innodb;
|
||||||
insert into t1 values(20,null);
|
insert into t1 values(20,null);
|
||||||
select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
|
select t2.b, ifnull(t2.b,"this is null") from t1 as t2 left join t1 as t3 on
|
||||||
@@ -1784,13 +1751,13 @@ Variable_name Value
|
|||||||
Innodb_page_size 16384
|
Innodb_page_size 16384
|
||||||
show status like "Innodb_rows_deleted";
|
show status like "Innodb_rows_deleted";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Innodb_rows_deleted 72
|
Innodb_rows_deleted 70
|
||||||
show status like "Innodb_rows_inserted";
|
show status like "Innodb_rows_inserted";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Innodb_rows_inserted 1088
|
Innodb_rows_inserted 1083
|
||||||
show status like "Innodb_rows_updated";
|
show status like "Innodb_rows_updated";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Innodb_rows_updated 888
|
Innodb_rows_updated 886
|
||||||
show status like "Innodb_row_lock_waits";
|
show status like "Innodb_row_lock_waits";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Innodb_row_lock_waits 0
|
Innodb_row_lock_waits 0
|
||||||
|
@@ -879,13 +879,13 @@ EXPLAIN SELECT * FROM t1 WHERE b BETWEEN 1 AND 2 ORDER BY a;
|
|||||||
id 1
|
id 1
|
||||||
select_type SIMPLE
|
select_type SIMPLE
|
||||||
table t1
|
table t1
|
||||||
type range
|
type index
|
||||||
possible_keys bkey
|
possible_keys bkey
|
||||||
key bkey
|
key PRIMARY
|
||||||
key_len 5
|
key_len 4
|
||||||
ref NULL
|
ref NULL
|
||||||
rows 16
|
rows 32
|
||||||
Extra Using where; Using index; Using filesort
|
Extra Using where
|
||||||
SELECT * FROM t1 WHERE b BETWEEN 1 AND 2 ORDER BY a;
|
SELECT * FROM t1 WHERE b BETWEEN 1 AND 2 ORDER BY a;
|
||||||
a b
|
a b
|
||||||
1 2
|
1 2
|
||||||
@@ -974,13 +974,13 @@ EXPLAIN SELECT * FROM t2 WHERE b=1 ORDER BY a;
|
|||||||
id 1
|
id 1
|
||||||
select_type SIMPLE
|
select_type SIMPLE
|
||||||
table t2
|
table t2
|
||||||
type ref
|
type index
|
||||||
possible_keys bkey
|
possible_keys bkey
|
||||||
key bkey
|
key PRIMARY
|
||||||
key_len 5
|
key_len 4
|
||||||
ref const
|
ref NULL
|
||||||
rows 8
|
rows 16
|
||||||
Extra Using where; Using index; Using filesort
|
Extra Using where; Using index
|
||||||
SELECT * FROM t2 WHERE b=1 ORDER BY a;
|
SELECT * FROM t2 WHERE b=1 ORDER BY a;
|
||||||
a b c
|
a b c
|
||||||
1 1 1
|
1 1 1
|
||||||
@@ -1123,6 +1123,24 @@ t1 CREATE TABLE `t1` (
|
|||||||
KEY `a` (`a`(255))
|
KEY `a` (`a`(255))
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
a INT,
|
||||||
|
b INT,
|
||||||
|
KEY (b)
|
||||||
|
) ENGINE=InnoDB;
|
||||||
|
INSERT INTO t1 VALUES (1,10), (2,10), (2,20), (3,30);
|
||||||
|
START TRANSACTION;
|
||||||
|
SELECT * FROM t1 WHERE b=20 FOR UPDATE;
|
||||||
|
a b
|
||||||
|
2 20
|
||||||
|
START TRANSACTION;
|
||||||
|
SELECT * FROM t1 WHERE b=10 ORDER BY A FOR UPDATE;
|
||||||
|
a b
|
||||||
|
1 10
|
||||||
|
2 10
|
||||||
|
ROLLBACK;
|
||||||
|
ROLLBACK;
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
CREATE TABLE `t2` (
|
CREATE TABLE `t2` (
|
||||||
`k` int(11) NOT NULL auto_increment,
|
`k` int(11) NOT NULL auto_increment,
|
||||||
|
@@ -106,4 +106,11 @@ i
|
|||||||
ERROR 70100: Query execution was interrupted
|
ERROR 70100: Query execution was interrupted
|
||||||
unlock tables;
|
unlock tables;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
drop table if exists t1;
|
||||||
|
create table t1 (a int) ENGINE=MEMORY;
|
||||||
|
--> client 2
|
||||||
|
handler t1 open;
|
||||||
|
ERROR HY000: Table storage engine for 't1' doesn't have this option
|
||||||
|
--> client 1
|
||||||
|
drop table t1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@@ -86,7 +86,7 @@ a b
|
|||||||
19 Testing
|
19 Testing
|
||||||
explain select a from t3 order by a desc limit 10;
|
explain select a from t3 order by a desc limit 10;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t3 index NULL a 4 NULL 1131 Using index
|
1 SIMPLE t3 index NULL a 4 NULL 10 Using index
|
||||||
select a from t3 order by a desc limit 10;
|
select a from t3 order by a desc limit 10;
|
||||||
a
|
a
|
||||||
699
|
699
|
||||||
|
@@ -18,7 +18,11 @@ insert into t1 values(null, "f");
|
|||||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||||
DELIMITER /*!*/;
|
DELIMITER /*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Start: binlog v #, server v ## created {yymmdd} {HH:MM:SS} at startup
|
||||||
ROLLBACK/*!*/;
|
ROLLBACK/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
use test/*!*/;
|
use test/*!*/;
|
||||||
SET TIMESTAMP=1579609942/*!*/;
|
SET TIMESTAMP=1579609942/*!*/;
|
||||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
|
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
|
||||||
@@ -26,21 +30,43 @@ SET @@session.sql_mode=0/*!*/;
|
|||||||
/*!\C latin1 *//*!*/;
|
/*!\C latin1 *//*!*/;
|
||||||
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
|
SET @@session.character_set_client=8,@@session.collation_connection=8,@@session.collation_server=8/*!*/;
|
||||||
create table t1 (a int auto_increment not null primary key, b char(3))/*!*/;
|
create table t1 (a int auto_increment not null primary key, b char(3))/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Intvar
|
||||||
SET INSERT_ID=1/*!*/;
|
SET INSERT_ID=1/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
SET TIMESTAMP=1579609942/*!*/;
|
SET TIMESTAMP=1579609942/*!*/;
|
||||||
insert into t1 values(null, "a")/*!*/;
|
insert into t1 values(null, "a")/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Intvar
|
||||||
SET INSERT_ID=2/*!*/;
|
SET INSERT_ID=2/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
SET TIMESTAMP=1579609942/*!*/;
|
SET TIMESTAMP=1579609942/*!*/;
|
||||||
insert into t1 values(null, "b")/*!*/;
|
insert into t1 values(null, "b")/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Intvar
|
||||||
SET INSERT_ID=3/*!*/;
|
SET INSERT_ID=3/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
SET TIMESTAMP=1579609944/*!*/;
|
SET TIMESTAMP=1579609944/*!*/;
|
||||||
insert into t1 values(null, "c")/*!*/;
|
insert into t1 values(null, "c")/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Intvar
|
||||||
SET INSERT_ID=4/*!*/;
|
SET INSERT_ID=4/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
SET TIMESTAMP=1579609946/*!*/;
|
SET TIMESTAMP=1579609946/*!*/;
|
||||||
insert into t1 values(null, "d")/*!*/;
|
insert into t1 values(null, "d")/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Intvar
|
||||||
SET INSERT_ID=5/*!*/;
|
SET INSERT_ID=5/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Query thread_id={integer} exec_time={integer} error_code=0
|
||||||
SET TIMESTAMP=1579609946/*!*/;
|
SET TIMESTAMP=1579609946/*!*/;
|
||||||
insert into t1 values(null, "e")/*!*/;
|
insert into t1 values(null, "e")/*!*/;
|
||||||
|
# at {pos}
|
||||||
|
#{yymmdd} {HH:MM:SS} server id 1 end_log_pos {pos} Rotate to master-bin.000002 pos: {pos}
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
# End of log file
|
# End of log file
|
||||||
ROLLBACK /* added by mysqlbinlog */;
|
ROLLBACK /* added by mysqlbinlog */;
|
||||||
|
@@ -1073,3 +1073,61 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t1 const PRIMARY,b b 5 const 1
|
1 SIMPLE t1 const PRIMARY,b b 5 const 1
|
||||||
1 SIMPLE t2 ref a a 5 const 2 Using where; Using index
|
1 SIMPLE t2 ref a a 5 const 2 Using where; Using index
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
CREATE TABLE t1(
|
||||||
|
id int auto_increment PRIMARY KEY, c2 int, c3 int, INDEX k2(c2), INDEX k3(c3));
|
||||||
|
INSERT INTO t1 (c2,c3) VALUES
|
||||||
|
(31,34),(35,38),(34,31),(32,35),(31,39),
|
||||||
|
(11,14),(15,18),(14,11),(12,15),(11,19);
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
INSERT INTO t1 (c2,c3) SELECT c2,c3 FROM t1;
|
||||||
|
UPDATE t1 SET c2=20 WHERE id%100 = 0;
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
40960
|
||||||
|
CREATE TABLE t2 LIKE t1;
|
||||||
|
INSERT INTO t2 SELECT * FROM t1 ORDER BY id;
|
||||||
|
EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 20;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t2 index k2 k3 5 NULL 111 Using where
|
||||||
|
EXPLAIN SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 4000;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t2 ref k2 k2 5 const 7341 Using where; Using filesort
|
||||||
|
EXPLAIN SELECT id,c3 FROM t2 WHERE c2 BETWEEN 10 AND 12 ORDER BY c3 LIMIT 20;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t2 index k2 k3 5 NULL 73 Using where
|
||||||
|
EXPLAIN SELECT id,c3 FROM t2 WHERE c2 BETWEEN 20 AND 30 ORDER BY c3 LIMIT 4000;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 SIMPLE t2 range k2 k2 5 NULL 386 Using where; Using filesort
|
||||||
|
SELECT id,c3 FROM t2 WHERE c2=11 ORDER BY c3 LIMIT 20;
|
||||||
|
id c3
|
||||||
|
6 14
|
||||||
|
16 14
|
||||||
|
26 14
|
||||||
|
36 14
|
||||||
|
46 14
|
||||||
|
56 14
|
||||||
|
66 14
|
||||||
|
76 14
|
||||||
|
86 14
|
||||||
|
96 14
|
||||||
|
106 14
|
||||||
|
116 14
|
||||||
|
126 14
|
||||||
|
136 14
|
||||||
|
146 14
|
||||||
|
156 14
|
||||||
|
166 14
|
||||||
|
176 14
|
||||||
|
186 14
|
||||||
|
196 14
|
||||||
|
DROP TABLE t1,t2;
|
||||||
|
@@ -273,6 +273,16 @@ create table VAR_SAMP(a int);
|
|||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VAR_SAMP(a int)' at line 1
|
||||||
create table VAR_SAMP (a int);
|
create table VAR_SAMP (a int);
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VAR_SAMP (a int)' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'VAR_SAMP (a int)' at line 1
|
||||||
|
DROP TABLE IF EXISTS table_25930_a;
|
||||||
|
DROP TABLE IF EXISTS table_25930_b;
|
||||||
|
SET SQL_MODE = 'ANSI_QUOTES';
|
||||||
|
CREATE TABLE table_25930_a ( "blah" INT );
|
||||||
|
CREATE TABLE table_25930_b SELECT "blah" - 1 FROM table_25930_a;
|
||||||
|
desc table_25930_b;
|
||||||
|
Field Type Null Key Default Extra
|
||||||
|
"blah" - 1 bigint(12) YES NULL
|
||||||
|
DROP TABLE table_25930_a;
|
||||||
|
DROP TABLE table_25930_b;
|
||||||
SET @@sql_mode=@save_sql_mode;
|
SET @@sql_mode=@save_sql_mode;
|
||||||
select pi(3.14);
|
select pi(3.14);
|
||||||
ERROR 42000: Incorrect parameter count in the call to native function 'pi'
|
ERROR 42000: Incorrect parameter count in the call to native function 'pi'
|
||||||
|
@@ -631,7 +631,7 @@ flush status;
|
|||||||
delete from t2 where b > 5;
|
delete from t2 where b > 5;
|
||||||
show status like 'Handler_read_rnd_next';
|
show status like 'Handler_read_rnd_next';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Handler_read_rnd_next 1215
|
Handler_read_rnd_next 1115
|
||||||
show status like 'Handler_read_key';
|
show status like 'Handler_read_key';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Handler_read_key 0
|
Handler_read_key 0
|
||||||
@@ -645,7 +645,7 @@ flush status;
|
|||||||
delete from t2 where b < 5 or b > 3;
|
delete from t2 where b < 5 or b > 3;
|
||||||
show status like 'Handler_read_rnd_next';
|
show status like 'Handler_read_rnd_next';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Handler_read_rnd_next 1215
|
Handler_read_rnd_next 1115
|
||||||
show status like 'Handler_read_key';
|
show status like 'Handler_read_key';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Handler_read_key 0
|
Handler_read_key 0
|
||||||
|
@@ -1650,6 +1650,35 @@ a (select count(*) from t2)
|
|||||||
3 0
|
3 0
|
||||||
4 0
|
4 0
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
|
DROP DATABASE IF EXISTS bug30269;
|
||||||
|
FLUSH STATUS;
|
||||||
|
CREATE DATABASE bug30269;
|
||||||
|
USE bug30269;
|
||||||
|
CREATE TABLE test1 (id int, name varchar(23));
|
||||||
|
CREATE VIEW view1 AS SELECT * FROM test1;
|
||||||
|
INSERT INTO test1 VALUES (5, 'testit');
|
||||||
|
GRANT SELECT (id) ON TABLE bug30269.test1 TO 'bug30269'@'localhost';
|
||||||
|
GRANT SELECT ON TABLE bug30269.view1 TO 'bug30269'@'localhost';
|
||||||
|
set global query_cache_size= 81920;
|
||||||
|
USE bug30269;
|
||||||
|
show status like 'Qcache_queries_in_cache';
|
||||||
|
Variable_name Value
|
||||||
|
Qcache_queries_in_cache 0
|
||||||
|
# Select statement not stored in query cache because of column privileges.
|
||||||
|
SELECT id FROM test1 WHERE id>2;
|
||||||
|
id
|
||||||
|
5
|
||||||
|
show status like 'Qcache_queries_in_cache';
|
||||||
|
Variable_name Value
|
||||||
|
Qcache_queries_in_cache 0
|
||||||
|
SELECT id FROM view1 WHERE id>2;
|
||||||
|
id
|
||||||
|
5
|
||||||
|
show status like 'Qcache_queries_in_cache';
|
||||||
|
Variable_name Value
|
||||||
|
Qcache_queries_in_cache 1
|
||||||
|
DROP DATABASE bug30269;
|
||||||
|
DROP USER 'bug30269'@'localhost';
|
||||||
set GLOBAL query_cache_type=default;
|
set GLOBAL query_cache_type=default;
|
||||||
set GLOBAL query_cache_limit=default;
|
set GLOBAL query_cache_limit=default;
|
||||||
set GLOBAL query_cache_min_res_unit=default;
|
set GLOBAL query_cache_min_res_unit=default;
|
||||||
|
@@ -3980,4 +3980,71 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE f1 index inx inx 10 NULL 7 Using where; Using index
|
1 SIMPLE f1 index inx inx 10 NULL 7 Using where; Using index
|
||||||
1 SIMPLE f2 ref inx inx 5 test.f1.b 1 Using where; Using index
|
1 SIMPLE f2 ref inx inx 5 test.f1.b 1 Using where; Using index
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (c1 INT, c2 INT);
|
||||||
|
INSERT INTO t1 VALUES (1,11), (2,22), (2,22);
|
||||||
|
EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2)))))))))))))))))))))))))))))))) > 0;
|
||||||
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
|
1 PRIMARY t1 ALL NULL NULL NULL NULL 3 Using where
|
||||||
|
31 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||||
|
32 DEPENDENT SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||||
|
EXPLAIN SELECT c1 FROM t1 WHERE (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT (SELECT COUNT(c2))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))) > 0;
|
||||||
|
ERROR HY000: Too high level of nesting for select
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (
|
||||||
|
c1 int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
c2 varchar(1000) DEFAULT NULL,
|
||||||
|
c3 bigint(20) DEFAULT NULL,
|
||||||
|
c4 bigint(20) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (c1)
|
||||||
|
);
|
||||||
|
EXPLAIN EXTENDED
|
||||||
|
SELECT join_2.c1
|
||||||
|
FROM
|
||||||
|
t1 AS join_0,
|
||||||
|
t1 AS join_1,
|
||||||
|
t1 AS join_2,
|
||||||
|
t1 AS join_3,
|
||||||
|
t1 AS join_4,
|
||||||
|
t1 AS join_5,
|
||||||
|
t1 AS join_6,
|
||||||
|
t1 AS join_7
|
||||||
|
WHERE
|
||||||
|
join_0.c1=join_1.c1 AND
|
||||||
|
join_1.c1=join_2.c1 AND
|
||||||
|
join_2.c1=join_3.c1 AND
|
||||||
|
join_3.c1=join_4.c1 AND
|
||||||
|
join_4.c1=join_5.c1 AND
|
||||||
|
join_5.c1=join_6.c1 AND
|
||||||
|
join_6.c1=join_7.c1
|
||||||
|
OR
|
||||||
|
join_0.c2 < '?' AND
|
||||||
|
join_1.c2 < '?' AND
|
||||||
|
join_2.c2 > '?' AND
|
||||||
|
join_2.c2 < '!' AND
|
||||||
|
join_3.c2 > '?' AND
|
||||||
|
join_4.c2 = '?' AND
|
||||||
|
join_5.c2 <> '?' AND
|
||||||
|
join_6.c2 <> '?' AND
|
||||||
|
join_7.c2 >= '?' AND
|
||||||
|
join_0.c1=join_1.c1 AND
|
||||||
|
join_1.c1=join_2.c1 AND
|
||||||
|
join_2.c1=join_3.c1 AND
|
||||||
|
join_3.c1=join_4.c1 AND
|
||||||
|
join_4.c1=join_5.c1 AND
|
||||||
|
join_5.c1=join_6.c1 AND
|
||||||
|
join_6.c1=join_7.c1
|
||||||
|
GROUP BY
|
||||||
|
join_3.c1,
|
||||||
|
join_2.c1,
|
||||||
|
join_7.c1,
|
||||||
|
join_1.c1,
|
||||||
|
join_0.c1;
|
||||||
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||||
|
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||||
|
Warnings:
|
||||||
|
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
|
||||||
|
SHOW WARNINGS;
|
||||||
|
Level Code Message
|
||||||
|
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
|
@@ -84,7 +84,7 @@ UNIQUE KEY e_n (email,name)
|
|||||||
EXPLAIN SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
EXPLAIN SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 SIMPLE t1 system PRIMARY,kid NULL NULL NULL 0 const row not found
|
1 SIMPLE t1 system PRIMARY,kid NULL NULL NULL 0 const row not found
|
||||||
1 SIMPLE t2 index NULL e_n 104 NULL 200
|
1 SIMPLE t2 index NULL e_n 104 NULL 10
|
||||||
SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
SELECT SQL_CALC_FOUND_ROWS DISTINCT email FROM t2 LEFT JOIN t1 ON kid = t2.id WHERE t1.id IS NULL LIMIT 10;
|
||||||
email
|
email
|
||||||
email1
|
email1
|
||||||
|
@@ -5670,7 +5670,7 @@ drop function if exists pi;
|
|||||||
create function pi() returns varchar(50)
|
create function pi() returns varchar(50)
|
||||||
return "pie, my favorite desert.";
|
return "pie, my favorite desert.";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'pi' has the same name as a native function
|
Note 1583 This function 'pi' has the same name as a native function
|
||||||
SET @save_sql_mode=@@sql_mode;
|
SET @save_sql_mode=@@sql_mode;
|
||||||
SET SQL_MODE='IGNORE_SPACE';
|
SET SQL_MODE='IGNORE_SPACE';
|
||||||
select pi(), pi ();
|
select pi(), pi ();
|
||||||
@@ -5719,15 +5719,15 @@ use test;
|
|||||||
create function `database`() returns varchar(50)
|
create function `database`() returns varchar(50)
|
||||||
return "Stored function database";
|
return "Stored function database";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'database' has the same name as a native function
|
Note 1583 This function 'database' has the same name as a native function
|
||||||
create function `current_user`() returns varchar(50)
|
create function `current_user`() returns varchar(50)
|
||||||
return "Stored function current_user";
|
return "Stored function current_user";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'current_user' has the same name as a native function
|
Note 1583 This function 'current_user' has the same name as a native function
|
||||||
create function md5(x varchar(50)) returns varchar(50)
|
create function md5(x varchar(50)) returns varchar(50)
|
||||||
return "Stored function md5";
|
return "Stored function md5";
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'md5' has the same name as a native function
|
Note 1583 This function 'md5' has the same name as a native function
|
||||||
SET SQL_MODE='IGNORE_SPACE';
|
SET SQL_MODE='IGNORE_SPACE';
|
||||||
select database(), database ();
|
select database(), database ();
|
||||||
database() database ()
|
database() database ()
|
||||||
|
@@ -7,11 +7,11 @@ return 1;
|
|||||||
create function x() returns int
|
create function x() returns int
|
||||||
return 2;
|
return 2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'x' has the same name as a native function
|
Note 1583 This function 'x' has the same name as a native function
|
||||||
create function y() returns int
|
create function y() returns int
|
||||||
return 3;
|
return 3;
|
||||||
Warnings:
|
Warnings:
|
||||||
Note 1582 This function 'y' has the same name as a native function
|
Note 1583 This function 'y' has the same name as a native function
|
||||||
select a();
|
select a();
|
||||||
a()
|
a()
|
||||||
1
|
1
|
||||||
|
@@ -16,12 +16,11 @@ unlock tables;
|
|||||||
lock tables t1 read;
|
lock tables t1 read;
|
||||||
update t1 set n = 3;
|
update t1 set n = 3;
|
||||||
unlock tables;
|
unlock tables;
|
||||||
show status like 'Table_locks_waited%';
|
show status like 'Table_locks_waited';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Table_locks_waited 1
|
Table_locks_waited 1
|
||||||
select * from information_schema.session_status where variable_name like 'Table_locks_waited%';
|
Immediate
|
||||||
VARIABLE_NAME VARIABLE_VALUE
|
17
|
||||||
TABLE_LOCKS_WAITED 1
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
select 1;
|
select 1;
|
||||||
1
|
1
|
||||||
|
@@ -3419,7 +3419,7 @@ EXPLAIN
|
|||||||
SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
|
SELECT * FROM t1 WHERE (a,b) = ANY (SELECT a, max(b) FROM t1 GROUP BY a);
|
||||||
id select_type table type possible_keys key key_len ref rows Extra
|
id select_type table type possible_keys key key_len ref rows Extra
|
||||||
1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
|
1 PRIMARY t1 ALL NULL NULL NULL NULL 9 Using where
|
||||||
2 DEPENDENT SUBQUERY t1 index NULL a 8 NULL 9 Using filesort
|
2 DEPENDENT SUBQUERY t1 index NULL a 8 NULL 1 Using filesort
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
create table t1( f1 int,f2 int);
|
create table t1( f1 int,f2 int);
|
||||||
insert into t1 values (1,1),(2,2);
|
insert into t1 values (1,1),(2,2);
|
||||||
|
@@ -618,6 +618,30 @@ bit_field int_field
|
|||||||
2
|
2
|
||||||
handler t1 close;
|
handler t1 close;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (b BIT(2), a VARCHAR(5));
|
||||||
|
INSERT INTO t1 (b, a) VALUES (1, "x"), (3, "zz"), (0, "y"), (3, "z");
|
||||||
|
SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
|
||||||
|
b+0 COUNT(DISTINCT a)
|
||||||
|
0 1
|
||||||
|
1 1
|
||||||
|
3 2
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a CHAR(5), b BIT(2));
|
||||||
|
INSERT INTO t1 (b, a) VALUES (1, "x"), (3, "zz"), (0, "y"), (3, "z");
|
||||||
|
SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
|
||||||
|
b+0 COUNT(DISTINCT a)
|
||||||
|
0 1
|
||||||
|
1 1
|
||||||
|
3 2
|
||||||
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a INT, b BIT(2));
|
||||||
|
INSERT INTO t1 (b, a) VALUES (1, 1), (3, 2), (0, 3), (3, 4);
|
||||||
|
SELECT b+0, COUNT(DISTINCT a) FROM t1 GROUP BY b;
|
||||||
|
b+0 COUNT(DISTINCT a)
|
||||||
|
0 1
|
||||||
|
1 1
|
||||||
|
3 2
|
||||||
|
DROP TABLE t1;
|
||||||
End of 5.0 tests
|
End of 5.0 tests
|
||||||
create table t1(a bit(7));
|
create table t1(a bit(7));
|
||||||
insert into t1 values(0x40);
|
insert into t1 values(0x40);
|
||||||
|
@@ -334,4 +334,28 @@ Qcache_queries_in_cache 0
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
drop function metaphon;
|
drop function metaphon;
|
||||||
set GLOBAL query_cache_size=default;
|
set GLOBAL query_cache_size=default;
|
||||||
|
CREATE TABLE const_len_bug (
|
||||||
|
str_const varchar(4000),
|
||||||
|
result1 varchar(4000),
|
||||||
|
result2 varchar(4000)
|
||||||
|
);
|
||||||
|
CREATE TRIGGER check_const_len_trigger BEFORE INSERT ON const_len_bug FOR EACH ROW BEGIN
|
||||||
|
set NEW.str_const = 'bar';
|
||||||
|
set NEW.result2 = check_const_len(NEW.str_const);
|
||||||
|
END |
|
||||||
|
CREATE PROCEDURE check_const_len_sp (IN str_const VARCHAR(4000))
|
||||||
|
BEGIN
|
||||||
|
DECLARE result VARCHAR(4000);
|
||||||
|
SET result = check_const_len(str_const);
|
||||||
|
insert into const_len_bug values(str_const, result, "");
|
||||||
|
END |
|
||||||
|
CREATE FUNCTION check_const_len RETURNS string SONAME "UDF_EXAMPLE_LIB";
|
||||||
|
CALL check_const_len_sp("foo");
|
||||||
|
SELECT * from const_len_bug;
|
||||||
|
str_const result1 result2
|
||||||
|
bar Correct length Correct length
|
||||||
|
DROP FUNCTION check_const_len;
|
||||||
|
DROP PROCEDURE check_const_len_sp;
|
||||||
|
DROP TRIGGER check_const_len_trigger;
|
||||||
|
DROP TABLE const_len_bug;
|
||||||
End of 5.0 tests.
|
End of 5.0 tests.
|
||||||
|
@@ -647,32 +647,32 @@ select extractValue('<a>a','/a');
|
|||||||
extractValue('<a>a','/a')
|
extractValue('<a>a','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 5: unexpected END-OF-INPUT'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 5: unexpected END-OF-INPUT'
|
||||||
select extractValue('<a>a<','/a');
|
select extractValue('<a>a<','/a');
|
||||||
extractValue('<a>a<','/a')
|
extractValue('<a>a<','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 6: END-OF-INPUT unexpected (ident or '/' wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 6: END-OF-INPUT unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<a>a</','/a');
|
select extractValue('<a>a</','/a');
|
||||||
extractValue('<a>a</','/a')
|
extractValue('<a>a</','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 7: END-OF-INPUT unexpected (ident wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 7: END-OF-INPUT unexpected (ident wanted)'
|
||||||
select extractValue('<a>a</a','/a');
|
select extractValue('<a>a</a','/a');
|
||||||
extractValue('<a>a</a','/a')
|
extractValue('<a>a</a','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 8: END-OF-INPUT unexpected ('>' wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 8: END-OF-INPUT unexpected ('>' wanted)'
|
||||||
select extractValue('<a>a</a></b>','/a');
|
select extractValue('<a>a</a></b>','/a');
|
||||||
extractValue('<a>a</a></b>','/a')
|
extractValue('<a>a</a></b>','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 12: '</b>' unexpected (END-OF-INPUT wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 12: '</b>' unexpected (END-OF-INPUT wanted)'
|
||||||
select extractValue('<a b=>a</a>','/a');
|
select extractValue('<a b=>a</a>','/a');
|
||||||
extractValue('<a b=>a</a>','/a')
|
extractValue('<a b=>a</a>','/a')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 7: '>' unexpected (ident or string wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 7: '>' unexpected (ident or string wanted)'
|
||||||
select extractValue('<e>1</e>','position()');
|
select extractValue('<e>1</e>','position()');
|
||||||
ERROR HY000: XPATH syntax error: ''
|
ERROR HY000: XPATH syntax error: ''
|
||||||
select extractValue('<e>1</e>','last()');
|
select extractValue('<e>1</e>','last()');
|
||||||
@@ -723,17 +723,17 @@ select extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*
|
|||||||
extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*')
|
extractValue('<zot><tim0><01>10:39:15</01><02>140</02></tim0></zot>','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 13: unknown token unexpected (ident or '/' wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 13: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<.>test</.>','//*');
|
select extractValue('<.>test</.>','//*');
|
||||||
extractValue('<.>test</.>','//*')
|
extractValue('<.>test</.>','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<->test</->','//*');
|
select extractValue('<->test</->','//*');
|
||||||
extractValue('<->test</->','//*')
|
extractValue('<->test</->','//*')
|
||||||
NULL
|
NULL
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1522 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
Warning 1523 Incorrect XML value: 'parse error at line 1 pos 2: unknown token unexpected (ident or '/' wanted)'
|
||||||
select extractValue('<:>test</:>','//*');
|
select extractValue('<:>test</:>','//*');
|
||||||
extractValue('<:>test</:>','//*')
|
extractValue('<:>test</:>','//*')
|
||||||
test
|
test
|
||||||
|
@@ -135,4 +135,37 @@ show status like "binlog_cache_disk_use";
|
|||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_disk_use 1
|
Binlog_cache_disk_use 1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
CREATE TABLE `t1` (
|
||||||
|
`a` int(11) NOT NULL auto_increment,
|
||||||
|
`b` int(11) default NULL,
|
||||||
|
PRIMARY KEY (`a`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
|
||||||
|
CREATE TABLE `t2` (
|
||||||
|
`a` int(11) NOT NULL auto_increment,
|
||||||
|
`b` int(11) default NULL,
|
||||||
|
PRIMARY KEY (`a`)
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=latin1 ;
|
||||||
|
insert into t1 values (1,1),(2,2);
|
||||||
|
insert into t2 values (1,1),(4,4);
|
||||||
|
reset master;
|
||||||
|
UPDATE t2,t1 SET t2.a=t1.a+2;
|
||||||
|
ERROR 23000: Duplicate entry '3' for key 'PRIMARY'
|
||||||
|
select * from t2 /* must be (3,1), (4,4) */;
|
||||||
|
a b
|
||||||
|
1 1
|
||||||
|
4 4
|
||||||
|
show master status /* there must no UPDATE in binlog */;
|
||||||
|
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||||
|
master-bin.000001 106
|
||||||
|
delete from t1;
|
||||||
|
delete from t2;
|
||||||
|
insert into t1 values (1,2),(3,4),(4,4);
|
||||||
|
insert into t2 values (1,2),(3,4),(4,4);
|
||||||
|
reset master;
|
||||||
|
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
||||||
|
ERROR 23000: Duplicate entry '4' for key 'PRIMARY'
|
||||||
|
show master status /* there must be no UPDATE query event */;
|
||||||
|
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||||
|
master-bin.000001 106
|
||||||
|
drop table t1, t2;
|
||||||
End of tests
|
End of tests
|
||||||
|
@@ -130,4 +130,43 @@ show status like "binlog_cache_use";
|
|||||||
show status like "binlog_cache_disk_use";
|
show status like "binlog_cache_disk_use";
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#27716 multi-update did partially and has not binlogged
|
||||||
|
#
|
||||||
|
|
||||||
|
CREATE TABLE `t1` (
|
||||||
|
`a` int(11) NOT NULL auto_increment,
|
||||||
|
`b` int(11) default NULL,
|
||||||
|
PRIMARY KEY (`a`)
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ;
|
||||||
|
|
||||||
|
CREATE TABLE `t2` (
|
||||||
|
`a` int(11) NOT NULL auto_increment,
|
||||||
|
`b` int(11) default NULL,
|
||||||
|
PRIMARY KEY (`a`)
|
||||||
|
) ENGINE=INNODB DEFAULT CHARSET=latin1 ;
|
||||||
|
|
||||||
|
# A. testing multi_update::send_eof() execution branch
|
||||||
|
insert into t1 values (1,1),(2,2);
|
||||||
|
insert into t2 values (1,1),(4,4);
|
||||||
|
reset master;
|
||||||
|
--error ER_DUP_ENTRY
|
||||||
|
UPDATE t2,t1 SET t2.a=t1.a+2;
|
||||||
|
# check
|
||||||
|
select * from t2 /* must be (3,1), (4,4) */;
|
||||||
|
show master status /* there must no UPDATE in binlog */;
|
||||||
|
|
||||||
|
# B. testing multi_update::send_error() execution branch
|
||||||
|
delete from t1;
|
||||||
|
delete from t2;
|
||||||
|
insert into t1 values (1,2),(3,4),(4,4);
|
||||||
|
insert into t2 values (1,2),(3,4),(4,4);
|
||||||
|
reset master;
|
||||||
|
--error ER_DUP_ENTRY
|
||||||
|
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
||||||
|
show master status /* there must be no UPDATE query event */;
|
||||||
|
|
||||||
|
# cleanup bug#27716
|
||||||
|
drop table t1, t2;
|
||||||
|
|
||||||
--echo End of tests
|
--echo End of tests
|
||||||
|
107
mysql-test/suite/funcs_1/datadict/datadict_priv.inc
Normal file
107
mysql-test/suite/funcs_1/datadict/datadict_priv.inc
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
############## suite/funcs_1/datadict/datadict_priv.inc ################
|
||||||
|
# #
|
||||||
|
# DDL and DML operations on information_schema tables #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08 hhunger Implement this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
# Last update: #
|
||||||
|
# 2007-08-14 mleich Some cleanup #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# These variables have to be set before sourcing this file.
|
||||||
|
#
|
||||||
|
# information_schema table to be tested
|
||||||
|
# let $table= processlist;
|
||||||
|
#
|
||||||
|
# columns of the information_schema table e.g. to use in a select.
|
||||||
|
# let $columns= ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO;
|
||||||
|
#
|
||||||
|
# Where clause for an update.
|
||||||
|
# let $update_where= WHERE id=1 ;
|
||||||
|
#
|
||||||
|
# Column to be used in the SET of an update.
|
||||||
|
# let $set_column= user='any_user' ;
|
||||||
|
#
|
||||||
|
# Where clause of a delete.
|
||||||
|
# let $delete_where= WHERE id=1 ;
|
||||||
|
#
|
||||||
|
# Column to be dropped.
|
||||||
|
# let $drop_column= user;
|
||||||
|
#
|
||||||
|
# Column to be indexed
|
||||||
|
# let $index_col= user;
|
||||||
|
|
||||||
|
|
||||||
|
# data access
|
||||||
|
|
||||||
|
eval CREATE TEMPORARY TABLE test.t_$table AS SELECT * FROM $table;
|
||||||
|
|
||||||
|
eval UPDATE test.t_$table SET user='horst' $update_where ;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval INSERT INTO $table SELECT * FROM test.t_$table;
|
||||||
|
|
||||||
|
# bug#30208: CREATE TABLE ...LIKE does not accept dbname.tablename:unknown database
|
||||||
|
eval DROP TABLE test.t_$table;
|
||||||
|
|
||||||
|
--error ER_VIEW_NONUPD_CHECK
|
||||||
|
eval CREATE VIEW test.v_$table ($columns) AS SELECT * FROM $table WITH CHECK OPTION;
|
||||||
|
|
||||||
|
eval CREATE VIEW test.v_$table ($columns) AS SELECT * FROM $table;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval UPDATE test.v_$TABLE SET TIME=NOW() WHERE id = 1;
|
||||||
|
|
||||||
|
eval DROP VIEW test.v_$table;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval UPDATE $table SET $set_column $update_where;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval DELETE FROM $table $delete_where;
|
||||||
|
|
||||||
|
# change privileges
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval REVOKE ALL ON $table FROM current_user;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval GRANT INSERT,UPDATE ON $table TO current_user;
|
||||||
|
|
||||||
|
SHOW GRANTS;
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
# table access
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval CREATE INDEX i_$table ON $table ($index_col);
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval DROP TABLE $table;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval ALTER TABLE $table DROP COLUMN $drop_column;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval ALTER TABLE $table ADD COLUMN (my_column INT);
|
||||||
|
|
||||||
|
--error ER_UNKNOWN_TABLE
|
||||||
|
eval RENAME TABLE $table TO new_$table;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
eval RENAME TABLE $table TO files;
|
||||||
|
|
||||||
|
--error ER_UNKNOWN_TABLE
|
||||||
|
eval CREATE TABLE new_$table AS SELECT * FROM $table;
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------
|
||||||
|
# database access
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
DROP DATABASE information_schema;
|
||||||
|
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
RENAME DATABASE information_schema TO info_schema;
|
432
mysql-test/suite/funcs_1/datadict/processlist_priv.inc
Normal file
432
mysql-test/suite/funcs_1/datadict/processlist_priv.inc
Normal file
@@ -0,0 +1,432 @@
|
|||||||
|
############ suite/funcs_1/datadict/processlist_priv.inc ###############
|
||||||
|
# #
|
||||||
|
# Testing of privileges around #
|
||||||
|
# SELECT ... PROCESSLIST/SHOW PROCESSLIST #
|
||||||
|
# #
|
||||||
|
# Note(mleich): #
|
||||||
|
# There is a significant risk to get an unstable test because of #
|
||||||
|
# timing issues. #
|
||||||
|
# Example1: #
|
||||||
|
# 1. Disconnect connection X #
|
||||||
|
# 2. Switch to connection Y #
|
||||||
|
# 3. SHOW PROCESSLIST might present a record like #
|
||||||
|
# <ID> <user> <host> <db> Quit 0 cleaning up NULL #
|
||||||
|
# or even a row where connection X is without #
|
||||||
|
# "Quit" or "cleaning up". #
|
||||||
|
# That means our SHOW PROCESSLIST can come too early. #
|
||||||
|
# Solution: #
|
||||||
|
# Close the connections at the end of the test. #
|
||||||
|
# Example2: #
|
||||||
|
# 1. connection X: SHOW PROCESSLIST/GRANT ... etc. #
|
||||||
|
# 2. Switch to connection Y #
|
||||||
|
# 3. SHOW PROCESSLIST might present a record like #
|
||||||
|
# <ID> <user> <host> <db> Query TIME cleaning up <command> #
|
||||||
|
# <ID> <user> <host> <db> Query TIME writing to net <command> #
|
||||||
|
# Problems happens more often in case of slow filesystem! #
|
||||||
|
# First Solution: #
|
||||||
|
# Insert a dummy SQL command where the cleanup is most probably #
|
||||||
|
# fast before switching to another connection and running #
|
||||||
|
# SHOW/SELECT PROCESSLIST. #
|
||||||
|
# Suppress writing to protocol by assignment to $variable. #
|
||||||
|
# let $my_var= `SELECT 1`; #
|
||||||
|
# Even the 'SELECT 1' was in some cases in state #
|
||||||
|
# "writing to net". #
|
||||||
|
# Final Solution: #
|
||||||
|
# --real_sleep 0.3 #
|
||||||
|
# This value was at least on my box sufficient. #
|
||||||
|
# Please inform us if this test fails so that we can adjust #
|
||||||
|
# the sleep time better or switch to poll routines. #
|
||||||
|
# #
|
||||||
|
# Storage engine variants of this test do not make sense. #
|
||||||
|
# - I_S tables use the MEMORY storage engine whenever possible. #
|
||||||
|
# - There are some I_S table which need column data types which #
|
||||||
|
# are not supported by MEMORY. Example: LONGTEXT/BLOB #
|
||||||
|
# MyISAM will be used for such tables. #
|
||||||
|
# The column PROCESSLIST.INFO is of data type LONGTEXT #
|
||||||
|
# ----> MyISAM #
|
||||||
|
# - There is no impact of the GLOBAL(server) or SESSION default #
|
||||||
|
# storage engine setting on the engine used for I_S tables. #
|
||||||
|
# That means we cannot get NDB or InnoDB instead. #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08 hhunger Implement this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
# Last update: #
|
||||||
|
# 2007-08-14 mleich Corrections #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# The following variables are used in "datadict_priv.inc" and here.
|
||||||
|
#
|
||||||
|
# information_schema table to be tested
|
||||||
|
let $table= processlist;
|
||||||
|
#
|
||||||
|
# columns of the information_schema table e.g. to use in a select.
|
||||||
|
let $columns= ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO;
|
||||||
|
#
|
||||||
|
# Where clause for an update.
|
||||||
|
let $update_where= WHERE id=1 ;
|
||||||
|
#
|
||||||
|
# Column to be used in the SET of an update.
|
||||||
|
let $set_column= user='any_user' ;
|
||||||
|
#
|
||||||
|
# Where clause of a delete.
|
||||||
|
let $delete_where= WHERE id=1 ;
|
||||||
|
#
|
||||||
|
# Column to be dropped.
|
||||||
|
let $drop_column= user;
|
||||||
|
#
|
||||||
|
# Column to be indexed
|
||||||
|
let $index_col= user;
|
||||||
|
|
||||||
|
USE information_schema;
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 1 Prepare test.
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 1.1 Create two user
|
||||||
|
--echo ####################################################################################
|
||||||
|
# access to info tables as normal user
|
||||||
|
--disable_abort_on_error
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
||||||
|
--enable_abort_on_error
|
||||||
|
CREATE USER ddicttestuser1@'localhost';
|
||||||
|
CREATE USER ddicttestuser2@'localhost';
|
||||||
|
SET PASSWORD FOR ddicttestuser1@'localhost' = PASSWORD('ddictpass');
|
||||||
|
SET PASSWORD FOR ddicttestuser2@'localhost' = PASSWORD('ddictpass');
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 1.2 Establish connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
connect (con100,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo ####################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 2 connection default(user=root with default privileges):
|
||||||
|
--echo SHOW/SELECT shows all processes/threads.
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
eval SHOW CREATE TABLE $table;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SHOW $table;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SELECT * FROM $table $select_where ORDER BY id;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SELECT $columns FROM $table $select_where ORDER BY id;
|
||||||
|
--source suite/funcs_1/datadict/datadict_priv.inc
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 3 Switch to connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
connection con100;
|
||||||
|
--echo SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
--echo ####################################################################################
|
||||||
|
eval SHOW CREATE TABLE $table;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SHOW $table;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SELECT * FROM $table $select_where ORDER BY id;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
eval SELECT $columns FROM $table $select_where ORDER BY id;
|
||||||
|
--source suite/funcs_1/datadict/datadict_priv.inc
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 4 Grant PROCESS privilege to ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
GRANT PROCESS ON *.* TO ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 4.1 Existing connection con100 (ddicttestuser1)
|
||||||
|
--echo The user ddicttestuser1 has the PROCESS privilege, but the connection was
|
||||||
|
--echo established before PROCESS was granted.
|
||||||
|
--echo SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection con100;
|
||||||
|
SHOW GRANTS;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 4.2 New connection con101 (ddicttestuser1 with PROCESS privilege)
|
||||||
|
--echo SHOW/SELECT shows all processes/threads.
|
||||||
|
--echo ####################################################################################
|
||||||
|
connect (con101,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
SHOW GRANTS;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 5 Grant PROCESS privilege to anonymous user.
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
GRANT PROCESS ON *.* TO ''@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 5.1 Establish connection (anonymous1,localhost,'',,information_schema)
|
||||||
|
--echo anonymous user with PROCESS privilege
|
||||||
|
--echo SHOW/SELECT shows all processes/threads.
|
||||||
|
--echo ####################################################################################
|
||||||
|
connect (anonymous1,localhost,'',,information_schema);
|
||||||
|
SHOW GRANTS;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 6 Revoke PROCESS privilege from ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
REVOKE PROCESS ON *.* FROM ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 6.1 New connection con102 (ddicttestuser1 has no more PROCESS privilege)
|
||||||
|
connect (con102,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo Again (compared to state before GRANT PROCESS) only the processes of
|
||||||
|
--echo ddicttestuser1 are visible.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 7 Revoke PROCESS privilege from anonymous user + disconnect ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
REVOKE PROCESS ON *.* FROM ''@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 7.1 New connection (anonymous2,localhost,'',,information_schema)
|
||||||
|
connect (anonymous2,localhost,'',,information_schema);
|
||||||
|
--echo The anonymous user has no more the PROCESS privilege
|
||||||
|
--echo Again only the processes of the anonymous user are visible.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR ''@'localhost';
|
||||||
|
if ($fixed_bug_30395)
|
||||||
|
{
|
||||||
|
# Bug#30395 strange results after REVOKE PROCESS ON *.* FROM ...
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
}
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 8 Grant SUPER (does not imply PROCESS) privilege to ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 8.1 New connection con103 (ddicttestuser1 with SUPER privilege)
|
||||||
|
connect (con103,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo Only the processes of ddicttestuser1 user are visible.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 9 Revoke SUPER privilege from user ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
REVOKE SUPER ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 9.1 New connection con104 (ddicttestuser1 without SUPER privilege)
|
||||||
|
connect (con104,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo ddicttestuser1 has no more the SUPER privilege.
|
||||||
|
--echo Only the processes of ddicttestuser1 are visible.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 10 Grant SUPER privilege with grant option to user ddicttestuser1.
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 10.1 New connection con105 (ddicttestuser1 with SUPER privilege and GRANT OPTION)
|
||||||
|
connect (con105,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo Try to grant PROCESS privilege to user ddicttestuser2 without having it.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
--error ER_ACCESS_DENIED_ERROR
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 10.2 Grant SUPER and PROCESS privilege with grant option to user ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
GRANT SUPER,PROCESS ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 10.3 New connection con106 (ddicttestuser1 with SUPER,PROCESS WITH GRANT OPTION)
|
||||||
|
connect (con106,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo Grant PROCESS privilege to user ddicttestuser2
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 10.4 New connection con200 (ddicttestuser2 with PROCESS privilege)
|
||||||
|
connect (con200,localhost,ddicttestuser2,ddictpass,information_schema);
|
||||||
|
--echo ddicttestuser2 has now the PROCESS privilege and sees all connections
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser2'@'localhost';
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 11 User ddicttestuser1 revokes PROCESS privilege from user ddicttestuser2
|
||||||
|
--echo connection ddicttestuser1;
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection con106;
|
||||||
|
REVOKE PROCESS ON *.* FROM 'ddicttestuser2'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 11.1 New connection con201 (ddicttestuser2)
|
||||||
|
connect (con201,localhost,ddicttestuser2,ddictpass,information_schema);
|
||||||
|
--echo ddicttestuser2 has no more the PROCESS privilege and can only see own connects
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 11.2 Revoke SUPER,PROCESS,GRANT OPTION privilege from user ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
REVOKE SUPER,PROCESS,GRANT OPTION ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 11.3 New connection con107 (ddicttestuser1)
|
||||||
|
connect (con107,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo ddicttestuser1 has no more the PROCESS privilege and can only see own connects
|
||||||
|
--echo He is also unable to GRANT the PROCESS privilege to ddicttestuser2
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
--error ER_ACCESS_DENIED_ERROR
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 12 Revoke the SELECT privilege from user ddicttestuser1
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
REVOKE SELECT ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 12.1 New connection con108 (ddicttestuser1)
|
||||||
|
connect (con108,localhost,ddicttestuser1,ddictpass,information_schema);
|
||||||
|
--echo ddicttestuser1 has neither PROCESS nor SELECT privilege
|
||||||
|
--echo Manual says: Each MySQL user has the right to access these tables, but can see
|
||||||
|
--echo only the rows ...
|
||||||
|
--echo Therefore the missing SELECT privilege does not affect SELECTs on PROCESSLIST.
|
||||||
|
--echo ####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SHOW processlist;
|
||||||
|
--replace_column 6 TIME
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo 12.2 Revoke only the SELECT privilege on the information_schema from ddicttestuser1.
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
--error ER_DBACCESS_DENIED_ERROR
|
||||||
|
REVOKE SELECT ON information_schema.* FROM 'ddicttestuser3'@'localhost';
|
||||||
|
--real_sleep 0.3
|
||||||
|
|
||||||
|
|
||||||
|
--echo ####################################################################################
|
||||||
|
--echo connection default (user=root)
|
||||||
|
--echo Cleanup: close connections, DROP USER etc.
|
||||||
|
--echo ####################################################################################
|
||||||
|
connection default;
|
||||||
|
disconnect con100;
|
||||||
|
disconnect con101;
|
||||||
|
disconnect con102;
|
||||||
|
disconnect con103;
|
||||||
|
disconnect con104;
|
||||||
|
disconnect con105;
|
||||||
|
disconnect con106;
|
||||||
|
disconnect con107;
|
||||||
|
disconnect con108;
|
||||||
|
disconnect con200;
|
||||||
|
disconnect con201;
|
||||||
|
disconnect anonymous1;
|
||||||
|
disconnect anonymous2;
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
333
mysql-test/suite/funcs_1/datadict/processlist_val.inc
Normal file
333
mysql-test/suite/funcs_1/datadict/processlist_val.inc
Normal file
File diff suppressed because one or more lines are too long
@@ -55,7 +55,7 @@ f106 year(3) not null default 2000,
|
|||||||
f107 year(4) not null default 2000,
|
f107 year(4) not null default 2000,
|
||||||
f108 enum("1enum","2enum") not null default "1enum",
|
f108 enum("1enum","2enum") not null default "1enum",
|
||||||
f109 set("1set","2set") not null default "1set"
|
f109 set("1set","2set") not null default "1set"
|
||||||
) engine = innodb;
|
) engine = ndb;
|
||||||
|
|
||||||
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
|
||||||
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
|
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb2.txt' into table tb2 ;
|
||||||
|
469
mysql-test/suite/funcs_1/r/a_processlist_priv_no_prot.result
Normal file
469
mysql-test/suite/funcs_1/r/a_processlist_priv_no_prot.result
Normal file
@@ -0,0 +1,469 @@
|
|||||||
|
USE information_schema;
|
||||||
|
####################################################################################
|
||||||
|
1 Prepare test.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
####################################################################################
|
||||||
|
1.1 Create two user
|
||||||
|
####################################################################################
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
ERROR HY000: Operation DROP USER failed for 'ddicttestuser1'@'localhost'
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
||||||
|
ERROR HY000: Operation DROP USER failed for 'ddicttestuser2'@'localhost'
|
||||||
|
CREATE USER ddicttestuser1@'localhost';
|
||||||
|
CREATE USER ddicttestuser2@'localhost';
|
||||||
|
SET PASSWORD FOR ddicttestuser1@'localhost' = PASSWORD('ddictpass');
|
||||||
|
SET PASSWORD FOR ddicttestuser2@'localhost' = PASSWORD('ddictpass');
|
||||||
|
####################################################################################
|
||||||
|
1.2 Establish connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
####################################################################################
|
||||||
|
####################################################################################
|
||||||
|
2 connection default(user=root with default privileges):
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW CREATE TABLE processlist;
|
||||||
|
Table Create Table
|
||||||
|
PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
|
||||||
|
`ID` bigint(4) NOT NULL DEFAULT '0',
|
||||||
|
`USER` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`HOST` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`DB` varchar(64) DEFAULT NULL,
|
||||||
|
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`TIME` bigint(7) NOT NULL DEFAULT '0',
|
||||||
|
`STATE` varchar(64) DEFAULT NULL,
|
||||||
|
`INFO` longtext
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
1 root localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
SELECT * FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
1 root localhost information_schema Query TIME preparing SELECT * FROM processlist ORDER BY id
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
1 root localhost information_schema Query TIME preparing SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
CREATE TEMPORARY TABLE test.t_processlist AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.t_processlist SET user='horst' WHERE id=1 ;
|
||||||
|
INSERT INTO processlist SELECT * FROM test.t_processlist;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE test.t_processlist;
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist WITH CHECK OPTION;
|
||||||
|
ERROR HY000: CHECK OPTION on non-updatable view 'test.v_processlist'
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.v_processlist SET TIME=NOW() WHERE id = 1;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP VIEW test.v_processlist;
|
||||||
|
UPDATE processlist SET user='any_user' WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DELETE FROM processlist WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
REVOKE ALL ON processlist FROM current_user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
GRANT INSERT,UPDATE ON processlist TO current_user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for root@localhost
|
||||||
|
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||||
|
CREATE INDEX i_processlist ON processlist (user);
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE processlist;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist DROP COLUMN user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist ADD COLUMN (my_column INT);
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
RENAME TABLE processlist TO new_processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
RENAME TABLE processlist TO files;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
CREATE TABLE new_processlist AS SELECT * FROM processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
DROP DATABASE information_schema;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
RENAME DATABASE information_schema TO info_schema;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
3 Switch to connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
####################################################################################
|
||||||
|
SHOW CREATE TABLE processlist;
|
||||||
|
Table Create Table
|
||||||
|
PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
|
||||||
|
`ID` bigint(4) NOT NULL DEFAULT '0',
|
||||||
|
`USER` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`HOST` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`DB` varchar(64) DEFAULT NULL,
|
||||||
|
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`TIME` bigint(7) NOT NULL DEFAULT '0',
|
||||||
|
`STATE` varchar(64) DEFAULT NULL,
|
||||||
|
`INFO` longtext
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
2 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM processlist ORDER BY id
|
||||||
|
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
2 ddicttestuser1 localhost information_schema Query TIME preparing SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id
|
||||||
|
CREATE TEMPORARY TABLE test.t_processlist AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.t_processlist SET user='horst' WHERE id=1 ;
|
||||||
|
INSERT INTO processlist SELECT * FROM test.t_processlist;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE test.t_processlist;
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist WITH CHECK OPTION;
|
||||||
|
ERROR HY000: CHECK OPTION on non-updatable view 'test.v_processlist'
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.v_processlist SET TIME=NOW() WHERE id = 1;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP VIEW test.v_processlist;
|
||||||
|
UPDATE processlist SET user='any_user' WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DELETE FROM processlist WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
REVOKE ALL ON processlist FROM current_user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
GRANT INSERT,UPDATE ON processlist TO current_user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
CREATE INDEX i_processlist ON processlist (user);
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE processlist;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist DROP COLUMN user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist ADD COLUMN (my_column INT);
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
RENAME TABLE processlist TO new_processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
RENAME TABLE processlist TO files;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
CREATE TABLE new_processlist AS SELECT * FROM processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
DROP DATABASE information_schema;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
RENAME DATABASE information_schema TO info_schema;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
4 Grant PROCESS privilege to ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT PROCESS ON *.* TO ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
####################################################################################
|
||||||
|
4.1 Existing connection con100 (ddicttestuser1)
|
||||||
|
The user ddicttestuser1 has the PROCESS privilege, but the connection was
|
||||||
|
established before PROCESS was granted.
|
||||||
|
SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
2 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
####################################################################################
|
||||||
|
4.2 New connection con101 (ddicttestuser1 with PROCESS privilege)
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
3 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
5 Grant PROCESS privilege to anonymous user.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT PROCESS ON *.* TO ''@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
5.1 Establish connection (anonymous1,localhost,'',,information_schema)
|
||||||
|
anonymous user with PROCESS privilege
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for @localhost
|
||||||
|
GRANT PROCESS ON *.* TO ''@'localhost'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
4 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
6 Revoke PROCESS privilege from ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
####################################################################################
|
||||||
|
6.1 New connection con102 (ddicttestuser1 has no more PROCESS privilege)
|
||||||
|
Again (compared to state before GRANT PROCESS) only the processes of
|
||||||
|
ddicttestuser1 are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
5 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
7 Revoke PROCESS privilege from anonymous user + disconnect ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM ''@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
7.1 New connection (anonymous2,localhost,'',,information_schema)
|
||||||
|
The anonymous user has no more the PROCESS privilege
|
||||||
|
Again only the processes of the anonymous user are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR ''@'localhost';
|
||||||
|
Grants for @localhost
|
||||||
|
GRANT USAGE ON *.* TO ''@'localhost'
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
6 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
4 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
8 Grant SUPER (does not imply PROCESS) privilege to ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
8.1 New connection con103 (ddicttestuser1 with SUPER privilege)
|
||||||
|
Only the processes of ddicttestuser1 user are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
7 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
9 Revoke SUPER privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SUPER ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
9.1 New connection con104 (ddicttestuser1 without SUPER privilege)
|
||||||
|
ddicttestuser1 has no more the SUPER privilege.
|
||||||
|
Only the processes of ddicttestuser1 are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
8 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
10 Grant SUPER privilege with grant option to user ddicttestuser1.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
####################################################################################
|
||||||
|
10.1 New connection con105 (ddicttestuser1 with SUPER privilege and GRANT OPTION)
|
||||||
|
Try to grant PROCESS privilege to user ddicttestuser2 without having it.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1' WITH GRANT OPTION
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
ERROR 28000: Access denied for user 'ddicttestuser1'@'localhost' (using password: YES)
|
||||||
|
####################################################################################
|
||||||
|
10.2 Grant SUPER and PROCESS privilege with grant option to user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER,PROCESS ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
####################################################################################
|
||||||
|
10.3 New connection con106 (ddicttestuser1 with SUPER,PROCESS WITH GRANT OPTION)
|
||||||
|
Grant PROCESS privilege to user ddicttestuser2
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS, SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1' WITH GRANT OPTION
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
10.4 New connection con200 (ddicttestuser2 with PROCESS privilege)
|
||||||
|
ddicttestuser2 has now the PROCESS privilege and sees all connections
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser2'@'localhost';
|
||||||
|
Grants for ddicttestuser2@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
6 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser2 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
11 ddicttestuser2 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
6 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
1 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
11 User ddicttestuser1 revokes PROCESS privilege from user ddicttestuser2
|
||||||
|
connection ddicttestuser1;
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM 'ddicttestuser2'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
11.1 New connection con201 (ddicttestuser2)
|
||||||
|
ddicttestuser2 has no more the PROCESS privilege and can only see own connects
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser2@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser2'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
11 ddicttestuser2 localhost information_schema Sleep TIME NULL
|
||||||
|
12 ddicttestuser2 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
12 ddicttestuser2 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
11 ddicttestuser2 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
11.2 Revoke SUPER,PROCESS,GRANT OPTION privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SUPER,PROCESS,GRANT OPTION ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
11.3 New connection con107 (ddicttestuser1)
|
||||||
|
ddicttestuser1 has no more the PROCESS privilege and can only see own connects
|
||||||
|
He is also unable to GRANT the PROCESS privilege to ddicttestuser2
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
ERROR 28000: Access denied for user 'ddicttestuser1'@'localhost' (using password: YES)
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
13 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
13 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
12 Revoke the SELECT privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SELECT ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
12.1 New connection con108 (ddicttestuser1)
|
||||||
|
ddicttestuser1 has neither PROCESS nor SELECT privilege
|
||||||
|
Manual says: Each MySQL user has the right to access these tables, but can see
|
||||||
|
only the rows ...
|
||||||
|
Therefore the missing SELECT privilege does not affect SELECTs on PROCESSLIST.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
13 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
14 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
14 ddicttestuser1 localhost information_schema Query TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
13 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
2 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
12.2 Revoke only the SELECT privilege on the information_schema from ddicttestuser1.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SELECT ON information_schema.* FROM 'ddicttestuser3'@'localhost';
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
connection default (user=root)
|
||||||
|
Cleanup: close connections, DROP USER etc.
|
||||||
|
####################################################################################
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
174
mysql-test/suite/funcs_1/r/a_processlist_val_no_prot.result
Normal file
174
mysql-test/suite/funcs_1/r/a_processlist_val_no_prot.result
Normal file
File diff suppressed because one or more lines are too long
469
mysql-test/suite/funcs_1/r/b_processlist_priv_ps.result
Normal file
469
mysql-test/suite/funcs_1/r/b_processlist_priv_ps.result
Normal file
@@ -0,0 +1,469 @@
|
|||||||
|
USE information_schema;
|
||||||
|
####################################################################################
|
||||||
|
1 Prepare test.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
####################################################################################
|
||||||
|
1.1 Create two user
|
||||||
|
####################################################################################
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
ERROR HY000: Operation DROP USER failed for 'ddicttestuser1'@'localhost'
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
||||||
|
ERROR HY000: Operation DROP USER failed for 'ddicttestuser2'@'localhost'
|
||||||
|
CREATE USER ddicttestuser1@'localhost';
|
||||||
|
CREATE USER ddicttestuser2@'localhost';
|
||||||
|
SET PASSWORD FOR ddicttestuser1@'localhost' = PASSWORD('ddictpass');
|
||||||
|
SET PASSWORD FOR ddicttestuser2@'localhost' = PASSWORD('ddictpass');
|
||||||
|
####################################################################################
|
||||||
|
1.2 Establish connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
####################################################################################
|
||||||
|
####################################################################################
|
||||||
|
2 connection default(user=root with default privileges):
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW CREATE TABLE processlist;
|
||||||
|
Table Create Table
|
||||||
|
PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
|
||||||
|
`ID` bigint(4) NOT NULL DEFAULT '0',
|
||||||
|
`USER` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`HOST` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`DB` varchar(64) DEFAULT NULL,
|
||||||
|
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`TIME` bigint(7) NOT NULL DEFAULT '0',
|
||||||
|
`STATE` varchar(64) DEFAULT NULL,
|
||||||
|
`INFO` longtext
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
3 root localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
SELECT * FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
3 root localhost information_schema Execute TIME preparing SELECT * FROM processlist ORDER BY id
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
3 root localhost information_schema Execute TIME preparing SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
CREATE TEMPORARY TABLE test.t_processlist AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.t_processlist SET user='horst' WHERE id=1 ;
|
||||||
|
INSERT INTO processlist SELECT * FROM test.t_processlist;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE test.t_processlist;
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist WITH CHECK OPTION;
|
||||||
|
ERROR HY000: CHECK OPTION on non-updatable view 'test.v_processlist'
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.v_processlist SET TIME=NOW() WHERE id = 1;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP VIEW test.v_processlist;
|
||||||
|
UPDATE processlist SET user='any_user' WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DELETE FROM processlist WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
REVOKE ALL ON processlist FROM current_user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
GRANT INSERT,UPDATE ON processlist TO current_user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for root@localhost
|
||||||
|
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||||
|
CREATE INDEX i_processlist ON processlist (user);
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE processlist;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist DROP COLUMN user;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist ADD COLUMN (my_column INT);
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
RENAME TABLE processlist TO new_processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
RENAME TABLE processlist TO files;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
CREATE TABLE new_processlist AS SELECT * FROM processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
DROP DATABASE information_schema;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
RENAME DATABASE information_schema TO info_schema;
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
3 Switch to connection con100 (user=ddicttestuser1 with no PROCESS privilege):
|
||||||
|
SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
####################################################################################
|
||||||
|
SHOW CREATE TABLE processlist;
|
||||||
|
Table Create Table
|
||||||
|
PROCESSLIST CREATE TEMPORARY TABLE `PROCESSLIST` (
|
||||||
|
`ID` bigint(4) NOT NULL DEFAULT '0',
|
||||||
|
`USER` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`HOST` varchar(64) NOT NULL DEFAULT '',
|
||||||
|
`DB` varchar(64) DEFAULT NULL,
|
||||||
|
`COMMAND` varchar(16) NOT NULL DEFAULT '',
|
||||||
|
`TIME` bigint(7) NOT NULL DEFAULT '0',
|
||||||
|
`STATE` varchar(64) DEFAULT NULL,
|
||||||
|
`INFO` longtext
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
4 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM processlist ORDER BY id
|
||||||
|
SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
4 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO FROM processlist ORDER BY id
|
||||||
|
CREATE TEMPORARY TABLE test.t_processlist AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.t_processlist SET user='horst' WHERE id=1 ;
|
||||||
|
INSERT INTO processlist SELECT * FROM test.t_processlist;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE test.t_processlist;
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist WITH CHECK OPTION;
|
||||||
|
ERROR HY000: CHECK OPTION on non-updatable view 'test.v_processlist'
|
||||||
|
CREATE VIEW test.v_processlist (ID, USER, HOST, DB, COMMAND, TIME, STATE, INFO) AS SELECT * FROM processlist;
|
||||||
|
UPDATE test.v_processlist SET TIME=NOW() WHERE id = 1;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP VIEW test.v_processlist;
|
||||||
|
UPDATE processlist SET user='any_user' WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DELETE FROM processlist WHERE id=1 ;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
REVOKE ALL ON processlist FROM current_user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
GRANT INSERT,UPDATE ON processlist TO current_user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
CREATE INDEX i_processlist ON processlist (user);
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
DROP TABLE processlist;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist DROP COLUMN user;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
ALTER TABLE processlist ADD COLUMN (my_column INT);
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
RENAME TABLE processlist TO new_processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
RENAME TABLE processlist TO files;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
CREATE TABLE new_processlist AS SELECT * FROM processlist;
|
||||||
|
ERROR 42S02: Unknown table 'new_processlist' in information_schema
|
||||||
|
DROP DATABASE information_schema;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
RENAME DATABASE information_schema TO info_schema;
|
||||||
|
ERROR 42000: Access denied for user 'ddicttestuser1'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
4 Grant PROCESS privilege to ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT PROCESS ON *.* TO ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
####################################################################################
|
||||||
|
4.1 Existing connection con100 (ddicttestuser1)
|
||||||
|
The user ddicttestuser1 has the PROCESS privilege, but the connection was
|
||||||
|
established before PROCESS was granted.
|
||||||
|
SHOW/SELECT shows only the processes (1) of the user.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
4 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
####################################################################################
|
||||||
|
4.2 New connection con101 (ddicttestuser1 with PROCESS privilege)
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
5 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
5 Grant PROCESS privilege to anonymous user.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT PROCESS ON *.* TO ''@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
5.1 Establish connection (anonymous1,localhost,'',,information_schema)
|
||||||
|
anonymous user with PROCESS privilege
|
||||||
|
SHOW/SELECT shows all processes/threads.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for @localhost
|
||||||
|
GRANT PROCESS ON *.* TO ''@'localhost'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
6 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
6 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
6 Revoke PROCESS privilege from ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM ddicttestuser1@'localhost' IDENTIFIED BY 'ddictpass';
|
||||||
|
####################################################################################
|
||||||
|
6.1 New connection con102 (ddicttestuser1 has no more PROCESS privilege)
|
||||||
|
Again (compared to state before GRANT PROCESS) only the processes of
|
||||||
|
ddicttestuser1 are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
7 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
7 Revoke PROCESS privilege from anonymous user + disconnect ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM ''@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
7.1 New connection (anonymous2,localhost,'',,information_schema)
|
||||||
|
The anonymous user has no more the PROCESS privilege
|
||||||
|
Again only the processes of the anonymous user are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR ''@'localhost';
|
||||||
|
Grants for @localhost
|
||||||
|
GRANT USAGE ON *.* TO ''@'localhost'
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
8 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
6 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
8 Grant SUPER (does not imply PROCESS) privilege to ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
8.1 New connection con103 (ddicttestuser1 with SUPER privilege)
|
||||||
|
Only the processes of ddicttestuser1 user are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
9 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
9 Revoke SUPER privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SUPER ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
9.1 New connection con104 (ddicttestuser1 without SUPER privilege)
|
||||||
|
ddicttestuser1 has no more the SUPER privilege.
|
||||||
|
Only the processes of ddicttestuser1 are visible.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
10 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
10 Grant SUPER privilege with grant option to user ddicttestuser1.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
####################################################################################
|
||||||
|
10.1 New connection con105 (ddicttestuser1 with SUPER privilege and GRANT OPTION)
|
||||||
|
Try to grant PROCESS privilege to user ddicttestuser2 without having it.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1' WITH GRANT OPTION
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
ERROR 28000: Access denied for user 'ddicttestuser1'@'localhost' (using password: YES)
|
||||||
|
####################################################################################
|
||||||
|
10.2 Grant SUPER and PROCESS privilege with grant option to user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
GRANT SUPER,PROCESS ON *.* TO 'ddicttestuser1'@'localhost' WITH GRANT OPTION;
|
||||||
|
####################################################################################
|
||||||
|
10.3 New connection con106 (ddicttestuser1 with SUPER,PROCESS WITH GRANT OPTION)
|
||||||
|
Grant PROCESS privilege to user ddicttestuser2
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT PROCESS, SUPER ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1' WITH GRANT OPTION
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
10.4 New connection con200 (ddicttestuser2 with PROCESS privilege)
|
||||||
|
ddicttestuser2 has now the PROCESS privilege and sees all connections
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser2'@'localhost';
|
||||||
|
Grants for ddicttestuser2@localhost
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
6 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
13 ddicttestuser2 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
13 ddicttestuser2 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
8 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
6 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
3 root localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
11 User ddicttestuser1 revokes PROCESS privilege from user ddicttestuser2
|
||||||
|
connection ddicttestuser1;
|
||||||
|
####################################################################################
|
||||||
|
REVOKE PROCESS ON *.* FROM 'ddicttestuser2'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
11.1 New connection con201 (ddicttestuser2)
|
||||||
|
ddicttestuser2 has no more the PROCESS privilege and can only see own connects
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS;
|
||||||
|
Grants for ddicttestuser2@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser2'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
13 ddicttestuser2 localhost information_schema Sleep TIME NULL
|
||||||
|
14 ddicttestuser2 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
14 ddicttestuser2 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
13 ddicttestuser2 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
11.2 Revoke SUPER,PROCESS,GRANT OPTION privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SUPER,PROCESS,GRANT OPTION ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
11.3 New connection con107 (ddicttestuser1)
|
||||||
|
ddicttestuser1 has no more the PROCESS privilege and can only see own connects
|
||||||
|
He is also unable to GRANT the PROCESS privilege to ddicttestuser2
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
GRANT PROCESS ON *.* TO 'ddicttestuser2'@'localhost';
|
||||||
|
ERROR 28000: Access denied for user 'ddicttestuser1'@'localhost' (using password: YES)
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
15 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
15 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
12 Revoke the SELECT privilege from user ddicttestuser1
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SELECT ON *.* FROM 'ddicttestuser1'@'localhost';
|
||||||
|
####################################################################################
|
||||||
|
12.1 New connection con108 (ddicttestuser1)
|
||||||
|
ddicttestuser1 has neither PROCESS nor SELECT privilege
|
||||||
|
Manual says: Each MySQL user has the right to access these tables, but can see
|
||||||
|
only the rows ...
|
||||||
|
Therefore the missing SELECT privilege does not affect SELECTs on PROCESSLIST.
|
||||||
|
####################################################################################
|
||||||
|
SHOW GRANTS FOR 'ddicttestuser1'@'localhost';
|
||||||
|
Grants for ddicttestuser1@localhost
|
||||||
|
GRANT USAGE ON *.* TO 'ddicttestuser1'@'localhost' IDENTIFIED BY PASSWORD '*22DA61451703738F203CDB9DB041ACBA1F4760B1'
|
||||||
|
SHOW processlist;
|
||||||
|
Id User Host db Command Time State Info
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
15 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
16 ddicttestuser1 localhost information_schema Query TIME NULL SHOW processlist
|
||||||
|
SELECT * FROM information_schema.processlist;
|
||||||
|
ID USER HOST DB COMMAND TIME STATE INFO
|
||||||
|
16 ddicttestuser1 localhost information_schema Execute TIME preparing SELECT * FROM information_schema.processlist
|
||||||
|
15 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
12 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
11 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
10 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
9 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
7 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
5 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
4 ddicttestuser1 localhost information_schema Sleep TIME NULL
|
||||||
|
####################################################################################
|
||||||
|
12.2 Revoke only the SELECT privilege on the information_schema from ddicttestuser1.
|
||||||
|
connection default (user=root)
|
||||||
|
####################################################################################
|
||||||
|
REVOKE SELECT ON information_schema.* FROM 'ddicttestuser3'@'localhost';
|
||||||
|
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||||
|
####################################################################################
|
||||||
|
connection default (user=root)
|
||||||
|
Cleanup: close connections, DROP USER etc.
|
||||||
|
####################################################################################
|
||||||
|
DROP USER ddicttestuser1@'localhost';
|
||||||
|
DROP USER ddicttestuser2@'localhost';
|
174
mysql-test/suite/funcs_1/r/b_processlist_val_ps.result
Normal file
174
mysql-test/suite/funcs_1/r/b_processlist_val_ps.result
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -75,7 +75,7 @@ Note 1265 Data truncated for column 'f45' at row 1
|
|||||||
Note 1265 Data truncated for column 'f47' at row 1
|
Note 1265 Data truncated for column 'f47' at row 1
|
||||||
Note 1265 Data truncated for column 'f49' at row 1
|
Note 1265 Data truncated for column 'f49' at row 1
|
||||||
Note 1265 Data truncated for column 'f51' at row 1
|
Note 1265 Data truncated for column 'f51' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb1.txt' into table tb1 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb1.txt' into table tb1 ;
|
||||||
|
|
||||||
NOT YET IMPLEMENTED: cursor tests
|
NOT YET IMPLEMENTED: cursor tests
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -90,7 +90,7 @@ INSERT INTO result VALUES (@cur_val_sql_mode, 'value not restored');
|
|||||||
END if;
|
END if;
|
||||||
END//
|
END//
|
||||||
SHOW CREATE PROCEDURE sp1;
|
SHOW CREATE PROCEDURE sp1;
|
||||||
Procedure sql_mode Create Procedure
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
sp1 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`()
|
sp1 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER CREATE DEFINER=`root`@`localhost` PROCEDURE `sp1`()
|
||||||
BEGIN
|
BEGIN
|
||||||
declare a tinyint;
|
declare a tinyint;
|
||||||
@@ -104,7 +104,7 @@ INSERT INTO result VALUES (@cur_val_sql_mode, 'value restored');
|
|||||||
ELSE
|
ELSE
|
||||||
INSERT INTO result VALUES (@cur_val_sql_mode, 'value not restored');
|
INSERT INTO result VALUES (@cur_val_sql_mode, 'value not restored');
|
||||||
END if;
|
END if;
|
||||||
END
|
END latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
set @@sql_mode='';
|
set @@sql_mode='';
|
||||||
SHOW VARIABLES LIKE 'sql_mode';
|
SHOW VARIABLES LIKE 'sql_mode';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
@@ -143,12 +143,12 @@ SET @@sql_mode='MAXDB';
|
|||||||
SHOW VARIABLES LIKE 'sql_mode';
|
SHOW VARIABLES LIKE 'sql_mode';
|
||||||
END//
|
END//
|
||||||
SHOW CREATE PROCEDURE sp2;
|
SHOW CREATE PROCEDURE sp2;
|
||||||
Procedure sql_mode Create Procedure
|
Procedure sql_mode Create Procedure character_set_client collation_connection Database Collation
|
||||||
sp2 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER CREATE DEFINER=`root`@`localhost` PROCEDURE `sp2`()
|
sp2 STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER CREATE DEFINER=`root`@`localhost` PROCEDURE `sp2`()
|
||||||
BEGIN
|
BEGIN
|
||||||
SET @@sql_mode='MAXDB';
|
SET @@sql_mode='MAXDB';
|
||||||
SHOW VARIABLES LIKE 'sql_mode';
|
SHOW VARIABLES LIKE 'sql_mode';
|
||||||
END
|
END latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
... show value prior calling procedure
|
... show value prior calling procedure
|
||||||
SHOW VARIABLES LIKE 'sql_mode';
|
SHOW VARIABLES LIKE 'sql_mode';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
|
@@ -122,6 +122,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT
|
ROUTINE_COMMENT
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME fn_2
|
SPECIFIC_NAME fn_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -146,6 +149,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT created with INVOKER
|
ROUTINE_COMMENT created with INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_1
|
SPECIFIC_NAME sp_1
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -168,6 +174,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT
|
ROUTINE_COMMENT
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_2
|
SPECIFIC_NAME sp_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -190,6 +199,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT created with INVOKER
|
ROUTINE_COMMENT created with INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_1;
|
SHOW CREATE FUNCTION fn_1;
|
||||||
Function fn_1
|
Function fn_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -199,6 +211,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_2;
|
SHOW CREATE FUNCTION fn_2;
|
||||||
Function fn_2
|
Function fn_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -210,6 +225,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_1;
|
SHOW CREATE PROCEDURE sp_1;
|
||||||
Procedure sp_1
|
Procedure sp_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -217,6 +235,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_1`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_2;
|
SHOW CREATE PROCEDURE sp_2;
|
||||||
Procedure sp_2
|
Procedure sp_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -226,6 +247,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_2`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW FUNCTION STATUS LIKE 'fn_%';
|
SHOW FUNCTION STATUS LIKE 'fn_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_1
|
Name fn_1
|
||||||
@@ -235,6 +259,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment
|
Comment
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_2
|
Name fn_2
|
||||||
Type FUNCTION
|
Type FUNCTION
|
||||||
@@ -243,6 +270,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment created with INVOKER
|
Comment created with INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_1
|
Name sp_1
|
||||||
@@ -252,6 +282,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment
|
Comment
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_2
|
Name sp_2
|
||||||
Type PROCEDURE
|
Type PROCEDURE
|
||||||
@@ -260,6 +293,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment created with INVOKER
|
Comment created with INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
|
|
||||||
... now change some stuff:
|
... now change some stuff:
|
||||||
--------------------------
|
--------------------------
|
||||||
@@ -304,6 +340,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT new comment, FN changed to INVOKER
|
ROUTINE_COMMENT new comment, FN changed to INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME fn_2
|
SPECIFIC_NAME fn_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -328,6 +367,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT FN changed to DEFINER
|
ROUTINE_COMMENT FN changed to DEFINER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_1
|
SPECIFIC_NAME sp_1
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -350,6 +392,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT new comment, SP changed to INVOKER
|
ROUTINE_COMMENT new comment, SP changed to INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_2
|
SPECIFIC_NAME sp_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -372,6 +417,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT SP changed to DEFINER
|
ROUTINE_COMMENT SP changed to DEFINER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_1;
|
SHOW CREATE FUNCTION fn_1;
|
||||||
Function fn_1
|
Function fn_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -384,6 +432,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_2;
|
SHOW CREATE FUNCTION fn_2;
|
||||||
Function fn_2
|
Function fn_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -395,6 +446,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_1;
|
SHOW CREATE PROCEDURE sp_1;
|
||||||
Procedure sp_1
|
Procedure sp_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -404,6 +458,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_1`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_2;
|
SHOW CREATE PROCEDURE sp_2;
|
||||||
Procedure sp_2
|
Procedure sp_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -413,6 +470,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_2`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW FUNCTION STATUS LIKE 'fn_%';
|
SHOW FUNCTION STATUS LIKE 'fn_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_1
|
Name fn_1
|
||||||
@@ -422,6 +482,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment new comment, FN changed to INVOKER
|
Comment new comment, FN changed to INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_2
|
Name fn_2
|
||||||
Type FUNCTION
|
Type FUNCTION
|
||||||
@@ -430,6 +493,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment FN changed to DEFINER
|
Comment FN changed to DEFINER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_1
|
Name sp_1
|
||||||
@@ -439,6 +505,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment new comment, SP changed to INVOKER
|
Comment new comment, SP changed to INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_2
|
Name sp_2
|
||||||
Type PROCEDURE
|
Type PROCEDURE
|
||||||
@@ -447,6 +516,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment SP changed to DEFINER
|
Comment SP changed to DEFINER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
|
|
||||||
... change back to default and check result:
|
... change back to default and check result:
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
@@ -479,6 +551,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT new comment, FN changed to INVOKER
|
ROUTINE_COMMENT new comment, FN changed to INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME fn_2
|
SPECIFIC_NAME fn_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -503,6 +578,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT FN changed to DEFINER
|
ROUTINE_COMMENT FN changed to DEFINER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_1
|
SPECIFIC_NAME sp_1
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -525,6 +603,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT new comment, SP changed to INVOKER
|
ROUTINE_COMMENT new comment, SP changed to INVOKER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SPECIFIC_NAME sp_2
|
SPECIFIC_NAME sp_2
|
||||||
ROUTINE_CATALOG NULL
|
ROUTINE_CATALOG NULL
|
||||||
ROUTINE_SCHEMA db_storedproc
|
ROUTINE_SCHEMA db_storedproc
|
||||||
@@ -547,6 +628,9 @@ LAST_ALTERED <created>
|
|||||||
SQL_MODE
|
SQL_MODE
|
||||||
ROUTINE_COMMENT SP changed to DEFINER
|
ROUTINE_COMMENT SP changed to DEFINER
|
||||||
DEFINER root@localhost
|
DEFINER root@localhost
|
||||||
|
CHARACTER_SET_CLIENT latin1
|
||||||
|
COLLATION_CONNECTION latin1_swedish_ci
|
||||||
|
DATABASE_COLLATION latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_1;
|
SHOW CREATE FUNCTION fn_1;
|
||||||
Function fn_1
|
Function fn_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -559,6 +643,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE FUNCTION fn_2;
|
SHOW CREATE FUNCTION fn_2;
|
||||||
Function fn_2
|
Function fn_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -569,6 +656,9 @@ set @x=i1;
|
|||||||
set @y=@x;
|
set @y=@x;
|
||||||
return i4;
|
return i4;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_1;
|
SHOW CREATE PROCEDURE sp_1;
|
||||||
Procedure sp_1
|
Procedure sp_1
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -578,6 +668,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_1`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW CREATE PROCEDURE sp_2;
|
SHOW CREATE PROCEDURE sp_2;
|
||||||
Procedure sp_2
|
Procedure sp_2
|
||||||
sql_mode
|
sql_mode
|
||||||
@@ -587,6 +680,9 @@ Create Procedure CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_2`(i1 int)
|
|||||||
BEGIN
|
BEGIN
|
||||||
set @x=i1;
|
set @x=i1;
|
||||||
END
|
END
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW FUNCTION STATUS LIKE 'fn_%';
|
SHOW FUNCTION STATUS LIKE 'fn_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_1
|
Name fn_1
|
||||||
@@ -596,6 +692,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment new comment, FN changed to INVOKER
|
Comment new comment, FN changed to INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name fn_2
|
Name fn_2
|
||||||
Type FUNCTION
|
Type FUNCTION
|
||||||
@@ -604,6 +703,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment FN changed to DEFINER
|
Comment FN changed to DEFINER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
SHOW PROCEDURE STATUS LIKE 'sp_%';
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_1
|
Name sp_1
|
||||||
@@ -613,6 +715,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type INVOKER
|
Security_type INVOKER
|
||||||
Comment new comment, SP changed to INVOKER
|
Comment new comment, SP changed to INVOKER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
Db db_storedproc
|
Db db_storedproc
|
||||||
Name sp_2
|
Name sp_2
|
||||||
Type PROCEDURE
|
Type PROCEDURE
|
||||||
@@ -621,6 +726,9 @@ Modified <modified>
|
|||||||
Created <created>
|
Created <created>
|
||||||
Security_type DEFINER
|
Security_type DEFINER
|
||||||
Comment SP changed to DEFINER
|
Comment SP changed to DEFINER
|
||||||
|
character_set_client latin1
|
||||||
|
collation_connection latin1_swedish_ci
|
||||||
|
Database Collation latin1_swedish_ci
|
||||||
|
|
||||||
... cleanup
|
... cleanup
|
||||||
-----------
|
-----------
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase: 3.5.1.1:
|
Testcase: 3.5.1.1:
|
||||||
@@ -243,7 +243,7 @@ create table t1 (f1 integer) engine = ndb;
|
|||||||
use test;
|
use test;
|
||||||
CREATE TRIGGER trig_db.trg6_2 AFTER INSERT on tb3
|
CREATE TRIGGER trig_db.trg6_2 AFTER INSERT on tb3
|
||||||
for each row set @ret_trg6_2 = 5;
|
for each row set @ret_trg6_2 = 5;
|
||||||
ERROR HY000: Trigger in wrong schema
|
ERROR 42S02: Table 'trig_db.tb3' doesn't exist
|
||||||
use trig_db;
|
use trig_db;
|
||||||
CREATE TRIGGER trg6_3 AFTER INSERT on test.tb3
|
CREATE TRIGGER trg6_3 AFTER INSERT on test.tb3
|
||||||
for each row set @ret_trg6_3 = 18;
|
for each row set @ret_trg6_3 = 18;
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase 3.5.3:
|
Testcase 3.5.3:
|
||||||
|
@@ -263,7 +263,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
root@localhost
|
root@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
grant select, insert, update on priv_db.t1 to test_yesprivs@localhost;
|
grant select, insert, update on priv_db.t1 to test_yesprivs@localhost;
|
||||||
show grants for test_yesprivs@localhost;
|
show grants for test_yesprivs@localhost;
|
||||||
Grants for test_yesprivs@localhost
|
Grants for test_yesprivs@localhost
|
||||||
@@ -296,7 +296,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
root@localhost
|
root@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
show tables;
|
show tables;
|
||||||
Tables_in_priv_db
|
Tables_in_priv_db
|
||||||
t1
|
t1
|
||||||
@@ -317,7 +317,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
test_yesprivs@localhost
|
test_yesprivs@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
create trigger trg1_2 before INSERT on t1 for each row
|
create trigger trg1_2 before INSERT on t1 for each row
|
||||||
set new.f1 = 'trig 1_2-yes';
|
set new.f1 = 'trig 1_2-yes';
|
||||||
select current_user;
|
select current_user;
|
||||||
@@ -453,9 +453,9 @@ ERROR 42000: TRIGGER command denied to user 'test_yesprivs'@'localhost' for tabl
|
|||||||
create trigger trg1_4 before UPDATE on t1 for each row
|
create trigger trg1_4 before UPDATE on t1 for each row
|
||||||
set new.f1 = 'trig 1_4-yes';
|
set new.f1 = 'trig 1_4-yes';
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
trg1_3 INSERT t1 set new.f1 = 'trig 1_3-yes' BEFORE NULL test_yesprivs@localhost
|
trg1_3 INSERT t1 set new.f1 = 'trig 1_3-yes' BEFORE NULL test_yesprivs@localhost latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
trg1_4 UPDATE t1 set new.f1 = 'trig 1_4-yes' BEFORE NULL test_yesprivs@localhost
|
trg1_4 UPDATE t1 set new.f1 = 'trig 1_4-yes' BEFORE NULL test_yesprivs@localhost latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
select current_user;
|
select current_user;
|
||||||
current_user
|
current_user
|
||||||
test_noprivs@localhost
|
test_noprivs@localhost
|
||||||
@@ -570,11 +570,11 @@ current_user
|
|||||||
test_yesprivs@localhost
|
test_yesprivs@localhost
|
||||||
use priv_db;
|
use priv_db;
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
trg1_1 INSERT t1 set new.f1 = 'trig 1_1-yes' BEFORE NULL test_yesprivs@localhost
|
trg1_1 INSERT t1 set new.f1 = 'trig 1_1-yes' BEFORE NULL test_yesprivs@localhost latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
select * from information_schema.triggers;
|
select * from information_schema.triggers;
|
||||||
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER
|
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
NULL priv_db trg1_1 INSERT NULL priv_db t1 0 NULL set new.f1 = 'trig 1_1-yes' ROW BEFORE NULL NULL OLD NEW NULL test_yesprivs@localhost
|
NULL priv_db trg1_1 INSERT NULL priv_db t1 0 NULL set new.f1 = 'trig 1_1-yes' ROW BEFORE NULL NULL OLD NEW NULL test_yesprivs@localhost latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
drop trigger trg1_1;
|
drop trigger trg1_1;
|
||||||
ERROR 42000: TRIGGER command denied to user 'test_yesprivs'@'localhost' for table 't1'
|
ERROR 42000: TRIGGER command denied to user 'test_yesprivs'@'localhost' for table 't1'
|
||||||
select current_user;
|
select current_user;
|
||||||
@@ -863,7 +863,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
root@localhost
|
root@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
grant TRIGGER on priv1_db.t1 to test_yesprivs@localhost;
|
grant TRIGGER on priv1_db.t1 to test_yesprivs@localhost;
|
||||||
show grants for test_yesprivs@localhost;
|
show grants for test_yesprivs@localhost;
|
||||||
Grants for test_yesprivs@localhost
|
Grants for test_yesprivs@localhost
|
||||||
@@ -878,7 +878,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
test_yesprivs@localhost
|
test_yesprivs@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
create trigger trg1_2 before INSERT on t1 for each row
|
create trigger trg1_2 before INSERT on t1 for each row
|
||||||
set new.f1 = 'trig 1_2-yes';
|
set new.f1 = 'trig 1_2-yes';
|
||||||
create trigger trg2_1 before INSERT on t2 for each row
|
create trigger trg2_1 before INSERT on t2 for each row
|
||||||
@@ -990,7 +990,7 @@ select current_user;
|
|||||||
current_user
|
current_user
|
||||||
root@localhost
|
root@localhost
|
||||||
show triggers;
|
show triggers;
|
||||||
Trigger Event Table Statement Timing Created sql_mode Definer
|
Trigger Event Table Statement Timing Created sql_mode Definer character_set_client collation_connection Database Collation
|
||||||
grant select, insert, update ,trigger
|
grant select, insert, update ,trigger
|
||||||
on priv_db.t1 to test_yesprivs@localhost
|
on priv_db.t1 to test_yesprivs@localhost
|
||||||
with grant option;
|
with grant option;
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase: 3.5:
|
Testcase: 3.5:
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase: 3.5:
|
Testcase: 3.5:
|
||||||
@@ -493,9 +493,8 @@ BEGIN
|
|||||||
WHILE @counter1 < new.f136
|
WHILE @counter1 < new.f136
|
||||||
SET @counter1 = @counter1 + 1;
|
SET @counter1 = @counter1 + 1;
|
||||||
END//
|
END//
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHILE @counter1 < new.f136
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET @counter1 = @counter1 + 1;
|
||||||
SET @counter1 = @counter1 + 1;
|
END' at line 4
|
||||||
END' at line 3
|
|
||||||
delete from tb3 where f122='Test 3.5.8.5-while';
|
delete from tb3 where f122='Test 3.5.8.5-while';
|
||||||
drop trigger trg7;
|
drop trigger trg7;
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase 3.5.9.1/2:
|
Testcase 3.5.9.1/2:
|
||||||
|
@@ -65,7 +65,7 @@ Warnings:
|
|||||||
Note 1265 Data truncated for column 'f150' at row 1
|
Note 1265 Data truncated for column 'f150' at row 1
|
||||||
Note 1265 Data truncated for column 'f151' at row 1
|
Note 1265 Data truncated for column 'f151' at row 1
|
||||||
Note 1265 Data truncated for column 'f152' at row 1
|
Note 1265 Data truncated for column 'f152' at row 1
|
||||||
Error 1466 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
load data infile 'MYSQL_TEST_DIR/suite/funcs_1/data/ndb_tb3.txt' into table tb3 ;
|
||||||
|
|
||||||
Testcase 3.5.10.1/2/3:
|
Testcase 3.5.10.1/2/3:
|
||||||
|
File diff suppressed because it is too large
Load Diff
36
mysql-test/suite/funcs_1/t/a_processlist_priv_no_prot.test
Normal file
36
mysql-test/suite/funcs_1/t/a_processlist_priv_no_prot.test
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
########## suite/funcs_1/t/a_processlist_priv_no_prot.test #############
|
||||||
|
# #
|
||||||
|
# Testing of privileges around #
|
||||||
|
# SELECT ... PROCESSLIST/SHOW PROCESSLIST #
|
||||||
|
# #
|
||||||
|
# The prepared statement variant of this test is #
|
||||||
|
# suite/funcs_1/t/b_processlist_priv_ps.test. #
|
||||||
|
# #
|
||||||
|
# There is important documentation within #
|
||||||
|
# suite/funcs_1/datadict/processlist_priv.inc #
|
||||||
|
# #
|
||||||
|
# Note(mleich): #
|
||||||
|
# The name "a_process..." with the unusual prefix "a_" is #
|
||||||
|
# caused by the fact that this test should run as first test, that #
|
||||||
|
# means direct after server startup. Otherwise the connection IDs #
|
||||||
|
# within the processlist would differ. #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08-14 mleich Create this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# One subtest is skipped because of
|
||||||
|
# Bug#30395 strange results after REVOKE PROCESS ON *.* FROM ...
|
||||||
|
let $fixed_bug_30395= 0;
|
||||||
|
|
||||||
|
# The file with expected results fits only to a run without
|
||||||
|
# ps-protocol/sp-protocol/cursor-protocol/view-protocol.
|
||||||
|
if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL
|
||||||
|
+ $VIEW_PROTOCOL > 0`)
|
||||||
|
{
|
||||||
|
--skip Test requires: ps-protocol/sp-protocol/cursor-protocol/view-protocol disabled
|
||||||
|
}
|
||||||
|
|
||||||
|
--source suite/funcs_1/datadict/processlist_priv.inc
|
31
mysql-test/suite/funcs_1/t/a_processlist_val_no_prot.test
Normal file
31
mysql-test/suite/funcs_1/t/a_processlist_val_no_prot.test
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
########### suite/funcs_1/t/a_processlist_val_no_prot.test #############
|
||||||
|
# #
|
||||||
|
# Testing of values within INFORMATION_SCHEMA.PROCESSLIST #
|
||||||
|
# #
|
||||||
|
# The prepared statement variant of this test is #
|
||||||
|
# suite/funcs_1/t/b_processlist_val_ps.test. #
|
||||||
|
# #
|
||||||
|
# There is important documentation within #
|
||||||
|
# suite/funcs_1/datadict/processlist_val.inc #
|
||||||
|
# #
|
||||||
|
# Note(mleich): #
|
||||||
|
# The name "a_process..." with the unusual prefix "a_" is #
|
||||||
|
# caused by the fact that this test should run as second test, that #
|
||||||
|
# means direct after server startup and a_processlist_priv_no_prot. #
|
||||||
|
# Otherwise the connection IDs within the processlist would differ. #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08-09 mleich Implement this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# The file with expected results fits only to a run without
|
||||||
|
# ps-protocol/sp-protocol/cursor-protocol/view-protocol.
|
||||||
|
if (`SELECT $PS_PROTOCOL + $SP_PROTOCOL + $CURSOR_PROTOCOL
|
||||||
|
+ $VIEW_PROTOCOL > 0`)
|
||||||
|
{
|
||||||
|
--skip Test requires: ps-protocol/sp-protocol/cursor-protocol/view-protocol disabled
|
||||||
|
}
|
||||||
|
|
||||||
|
--source suite/funcs_1/datadict/processlist_val.inc
|
35
mysql-test/suite/funcs_1/t/b_processlist_priv_ps.test
Normal file
35
mysql-test/suite/funcs_1/t/b_processlist_priv_ps.test
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
########### suite/funcs_1/t/b_processlist_priv_ps.test #################
|
||||||
|
# #
|
||||||
|
# Testing of privileges around #
|
||||||
|
# SELECT ... PROCESSLIST/SHOW PROCESSLIST #
|
||||||
|
# #
|
||||||
|
# The no (ps/sp/view/cursor) protocol variant of this test is #
|
||||||
|
# suite/funcs_1/t/a_processlist_priv_no_prot.test. #
|
||||||
|
# #
|
||||||
|
# There is important documentation within #
|
||||||
|
# suite/funcs_1/datadict/processlist_priv.inc #
|
||||||
|
# #
|
||||||
|
# Note(mleich): #
|
||||||
|
# The name "b_process..." with the unusual prefix "b_" is #
|
||||||
|
# caused by the fact that this test should run as first test, that #
|
||||||
|
# means direct after server startup. Otherwise the connection IDs #
|
||||||
|
# within the processlist would differ. #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08-14 mleich Create this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# One subtest is skipped because of
|
||||||
|
# Bug#30395 strange results after REVOKE PROCESS ON *.* FROM ...
|
||||||
|
let $fixed_bug_30395= 0;
|
||||||
|
|
||||||
|
# The file with expected results fits only to a run with "--ps-protocol".
|
||||||
|
if (`SELECT $SP_PROTOCOL + $CURSOR_PROTOCOL + $VIEW_PROTOCOL > 0
|
||||||
|
OR $PS_PROTOCOL = 0`)
|
||||||
|
{
|
||||||
|
--skip Test requires: ps-protocol enabled, other protocols disabled
|
||||||
|
}
|
||||||
|
|
||||||
|
--source suite/funcs_1/datadict/processlist_priv.inc
|
30
mysql-test/suite/funcs_1/t/b_processlist_val_ps.test
Normal file
30
mysql-test/suite/funcs_1/t/b_processlist_val_ps.test
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
############## suite/funcs_1/t/b_processlist_val_ps.test ###############
|
||||||
|
# #
|
||||||
|
# Testing of values within INFORMATION_SCHEMA.PROCESSLIST #
|
||||||
|
# #
|
||||||
|
# The no (ps/sp/view/cursor) protocol variant of this test is #
|
||||||
|
# suite/funcs_1/t/a_processlist_val_no_prot.test. #
|
||||||
|
# #
|
||||||
|
# There is important documentation within #
|
||||||
|
# suite/funcs_1/datadict/processlist_val.inc #
|
||||||
|
# #
|
||||||
|
# Note(mleich): #
|
||||||
|
# The name "b_process..." with the unusual prefix "b_" is #
|
||||||
|
# caused by the fact that this test should run as second test, that #
|
||||||
|
# means direct after server startup and b_processlist_priv_ps. #
|
||||||
|
# Otherwise the connection IDs within the processlist would differ. #
|
||||||
|
# #
|
||||||
|
# Creation: #
|
||||||
|
# 2007-08-09 mleich Implement this test as part of #
|
||||||
|
# WL#3982 Test information_schema.processlist #
|
||||||
|
# #
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
# The file with expected results fits only to a run with "--ps-protocol".
|
||||||
|
if (`SELECT $SP_PROTOCOL + $CURSOR_PROTOCOL + $VIEW_PROTOCOL > 0
|
||||||
|
OR $PS_PROTOCOL = 0`)
|
||||||
|
{
|
||||||
|
--skip Test requires: ps-protocol enabled, other protocols disabled
|
||||||
|
}
|
||||||
|
|
||||||
|
--source suite/funcs_1/datadict/processlist_val.inc
|
@@ -145,33 +145,33 @@ Insert into t1 values (500,9866);
|
|||||||
--enable_warnings
|
--enable_warnings
|
||||||
CREATE VIEW v1 AS select f59,f60,f61
|
CREATE VIEW v1 AS select f59,f60,f61
|
||||||
FROM test.tb2 where f59=250;
|
FROM test.tb2 where f59=250;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f60,f61 limit 0,10;
|
||||||
|
|
||||||
#(02)
|
#(02)
|
||||||
Drop view if exists v1 ;
|
Drop view if exists v1 ;
|
||||||
CREATE VIEW v1 AS select f59,f60,f61
|
CREATE VIEW v1 AS select f59,f60,f61
|
||||||
FROM test.tb2 limit 100;
|
FROM test.tb2 limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59,f60,f61 limit 0,10;
|
||||||
|
|
||||||
#(03)
|
#(03)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59,f60,f61
|
CREATE or REPLACE VIEW v1 AS select f59,f60,f61
|
||||||
FROM test.tb2 limit 4,3;
|
FROM test.tb2 limit 4,3;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59,f60,f61 limit 0,10;
|
||||||
|
|
||||||
#(04)
|
#(04)
|
||||||
CREATE or REPLACE VIEW v1 AS select distinct f59
|
CREATE or REPLACE VIEW v1 AS select distinct f59
|
||||||
FROM test.tb2 limit 4,3;
|
FROM test.tb2 limit 4,3;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(05)
|
#(05)
|
||||||
ALTER VIEW v1 AS select f59
|
ALTER VIEW v1 AS select f59
|
||||||
FROM test.tb2 limit 6,2;
|
FROM test.tb2 limit 6,2;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(06)
|
#(06)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59
|
CREATE or REPLACE VIEW v1 AS select f59
|
||||||
from tb2 order by f59 limit 100;
|
from tb2 order by f59 limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(07)
|
#(07)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59
|
CREATE or REPLACE VIEW v1 AS select f59
|
||||||
@@ -186,32 +186,32 @@ Insert into t1 values (500,9866);
|
|||||||
#(09)
|
#(09)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59
|
CREATE or REPLACE VIEW v1 AS select f59
|
||||||
from tb2 group by f59 limit 100;
|
from tb2 group by f59 limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(10)
|
#(10)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59
|
CREATE or REPLACE VIEW v1 AS select f59
|
||||||
from tb2 group by f59 asc limit 100;
|
from tb2 group by f59 asc limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(11)
|
#(11)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59
|
CREATE or REPLACE VIEW v1 AS select f59
|
||||||
from tb2 group by f59 desc limit 100;
|
from tb2 group by f59 desc limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(12)
|
#(12)
|
||||||
CREATE or REPLACE VIEW v1 AS (select f59 from tb2)
|
CREATE or REPLACE VIEW v1 AS (select f59 from tb2)
|
||||||
union (select f59 from t1) limit 100;
|
union (select f59 from t1) limit 100;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(13)
|
#(13)
|
||||||
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
|
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
|
||||||
UNION DISTINCT(select f59 FROM t1) ;
|
UNION DISTINCT(select f59 FROM t1) ;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(14)
|
#(14)
|
||||||
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
|
CREATE or REPLACE VIEW v1 AS (select f59 FROM tb2)
|
||||||
UNION ALL(select f59 FROM t1) ;
|
UNION ALL(select f59 FROM t1) ;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
#(15)
|
#(15)
|
||||||
if ($have_bug_11589)
|
if ($have_bug_11589)
|
||||||
@@ -220,24 +220,24 @@ if ($have_bug_11589)
|
|||||||
}
|
}
|
||||||
CREATE or REPLACE VIEW v1 AS select *
|
CREATE or REPLACE VIEW v1 AS select *
|
||||||
FROM test.tb2 WITH LOCAL CHECK OPTION ;
|
FROM test.tb2 WITH LOCAL CHECK OPTION ;
|
||||||
select * FROM v1 limit 0,50;
|
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,50;
|
||||||
|
|
||||||
#(16)
|
#(16)
|
||||||
CREATE or REPLACE VIEW v1 AS select *
|
CREATE or REPLACE VIEW v1 AS select *
|
||||||
FROM test.tb2 WITH CASCADED CHECK OPTION ;
|
FROM test.tb2 WITH CASCADED CHECK OPTION ;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f59,f60,f61,f62,f63,f64 limit 0,10;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
|
||||||
#(17)
|
#(17)
|
||||||
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
|
CREATE OR REPLACE VIEW v1 AS SELECT F59, F60
|
||||||
FROM test.tb2 WITH CASCADED CHECK OPTION;
|
FROM test.tb2 WITH CASCADED CHECK OPTION;
|
||||||
SELECT * FROM v1 limit 0,10;
|
SELECT * FROM v1 order by f59,f60 limit 0,10;
|
||||||
|
|
||||||
|
|
||||||
#(18)
|
#(18)
|
||||||
CREATE or REPLACE VIEW v1 AS select f59, f60
|
CREATE or REPLACE VIEW v1 AS select f59, f60
|
||||||
from test.tb2 where f59=3330 ;
|
from test.tb2 where f59=3330 ;
|
||||||
select * FROM v1 limit 0,10;
|
select * FROM v1 order by f60 limit 0,10;
|
||||||
|
|
||||||
DROP VIEW v1 ;
|
DROP VIEW v1 ;
|
||||||
DROP TABLE t1 ;
|
DROP TABLE t1 ;
|
||||||
@@ -816,18 +816,18 @@ AS SELECT * FROM t1 limit 2;
|
|||||||
SHOW CREATE VIEW test.v1;
|
SHOW CREATE VIEW test.v1;
|
||||||
SELECT * FROM test.v1;
|
SELECT * FROM test.v1;
|
||||||
# Switch the base table
|
# Switch the base table
|
||||||
CREATE OR REPLACE VIEW test.v1 AS SELECT * FROM tb2 limit 2;
|
CREATE OR REPLACE VIEW test.v1 AS SELECT * FROM tb2 order by f59 limit 2;
|
||||||
SHOW CREATE VIEW test.v1;
|
SHOW CREATE VIEW test.v1;
|
||||||
if ($have_bug_11589)
|
if ($have_bug_11589)
|
||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
}
|
}
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59,f60,f61,f62,f63,f64,f65;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
# Switch the SELECT but not the base table
|
# Switch the SELECT but not the base table
|
||||||
CREATE OR REPLACE VIEW test.v1 AS SELECT F59 FROM tb2 limit 10,100;
|
CREATE OR REPLACE VIEW test.v1 AS SELECT F59 FROM tb2 limit 10,100;
|
||||||
SHOW CREATE VIEW test.v1;
|
SHOW CREATE VIEW test.v1;
|
||||||
SELECT * FROM test.v1;
|
SELECT * FROM test.v1 order by F59;
|
||||||
Drop table test.t1 ;
|
Drop table test.t1 ;
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
|
|
||||||
@@ -1020,7 +1020,7 @@ let $message= Testcase 3.3.1.21 ;
|
|||||||
DROP VIEW IF EXISTS v1;
|
DROP VIEW IF EXISTS v1;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
CREATE VIEW test.v1( F59, F60 ) AS SELECT F59, F60 From tb2 LIMIT 2;
|
CREATE VIEW test.v1( F59, F60 ) AS SELECT F59, F60 From tb2 LIMIT 2;
|
||||||
SELECT * FROM test.v1;
|
SELECT * FROM test.v1 order by F59, F60 desc;
|
||||||
Drop view if exists test.v1 ;
|
Drop view if exists test.v1 ;
|
||||||
|
|
||||||
|
|
||||||
@@ -1175,7 +1175,7 @@ Drop VIEW IF EXISTS test.v1_1 ;
|
|||||||
--enable_warnings
|
--enable_warnings
|
||||||
Create view test.v1 AS Select * from test.tb2 limit 2 ;
|
Create view test.v1 AS Select * from test.tb2 limit 2 ;
|
||||||
Create view test.v1_1 AS Select F59 from test.v1 ;
|
Create view test.v1_1 AS Select F59 from test.v1 ;
|
||||||
Select * from test.v1_1 limit 20 ;
|
Select * from test.v1_1 order by F59 limit 20 ;
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
Drop view test.v1_1 ;
|
Drop view test.v1_1 ;
|
||||||
|
|
||||||
@@ -1197,7 +1197,7 @@ if ($have_bug_11589)
|
|||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
}
|
}
|
||||||
Select * from v1 ;
|
Select * from v1 order by f59,f60,f61,f62,f63,f64,f65;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
Select * from test2.v2 ;
|
Select * from test2.v2 ;
|
||||||
Drop view if exists test2.v1 ;
|
Drop view if exists test2.v1 ;
|
||||||
@@ -1287,7 +1287,7 @@ CREATE VIEW test.v1
|
|||||||
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
|
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
|
||||||
FROM test.v1_firstview INNER JOIN test.v1_secondview
|
FROM test.v1_firstview INNER JOIN test.v1_secondview
|
||||||
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
|
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
|
||||||
SELECT * FROM test.v1 limit 0,10;
|
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
|
||||||
Drop view if exists test.v1_firstview ;
|
Drop view if exists test.v1_firstview ;
|
||||||
Drop view if exists test.v1_secondview ;
|
Drop view if exists test.v1_secondview ;
|
||||||
Drop view if exists test.v1 ;
|
Drop view if exists test.v1 ;
|
||||||
@@ -1314,7 +1314,7 @@ CREATE VIEW v1
|
|||||||
AS SELECT test.v1_firstview.F59, test.v1_firstview.F60
|
AS SELECT test.v1_firstview.F59, test.v1_firstview.F60
|
||||||
FROM test.v1_firstview INNER JOIN test.v1_secondview
|
FROM test.v1_firstview INNER JOIN test.v1_secondview
|
||||||
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
|
ON test.v1_firstview.f59 = test.v1_secondview.f59 ;
|
||||||
SELECT * FROM v1 limit 0,10;
|
SELECT * FROM v1 order by f59,f60 limit 0,10;
|
||||||
Drop view v1 ;
|
Drop view v1 ;
|
||||||
Drop view test.v1_firstview ;
|
Drop view test.v1_firstview ;
|
||||||
Drop view test.v1_secondview ;
|
Drop view test.v1_secondview ;
|
||||||
@@ -1339,7 +1339,7 @@ CREATE VIEW test.v1
|
|||||||
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
|
AS SELECT test.v1_firstview.f59, test.v1_firstview.f60
|
||||||
FROM test.v1_firstview INNER JOIN test.tb2
|
FROM test.v1_firstview INNER JOIN test.tb2
|
||||||
ON test.v1_firstview.f59 = test.tb2.f59;
|
ON test.v1_firstview.f59 = test.tb2.f59;
|
||||||
SELECT * FROM test.v1 limit 0,10;
|
SELECT * FROM test.v1 order by f59,f60 limit 0,10;
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
Drop view test.v1_firstview;
|
Drop view test.v1_firstview;
|
||||||
|
|
||||||
@@ -1360,7 +1360,7 @@ CREATE VIEW v1_firstview AS SELECT * FROM test.tb2 ;
|
|||||||
CREATE VIEW v1
|
CREATE VIEW v1
|
||||||
AS SELECT v1_firstview.f59, v1_firstview.f60
|
AS SELECT v1_firstview.f59, v1_firstview.f60
|
||||||
FROM v1_firstview INNER JOIN test.tb2 ON v1_firstview.f59 = test.tb2.f59 ;
|
FROM v1_firstview INNER JOIN test.tb2 ON v1_firstview.f59 = test.tb2.f59 ;
|
||||||
SELECT * FROM v1 limit 0,10;
|
SELECT * FROM v1 order by f59,f60 limit 0,10;
|
||||||
|
|
||||||
Drop database test2 ;
|
Drop database test2 ;
|
||||||
|
|
||||||
@@ -1385,7 +1385,7 @@ Drop view if exists test.v1_1 ;
|
|||||||
Drop view if exists test.v1_main ;
|
Drop view if exists test.v1_main ;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
Create view test.v1 as Select f59, f60 FROM test.tb2;
|
Create view test.v1 as Select f59, f60 FROM test.tb2;
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59,f60 limit 0,10;
|
||||||
|
|
||||||
Create table t1(f59 int, f60 int);
|
Create table t1(f59 int, f60 int);
|
||||||
Insert into t1 values (90,507) ;
|
Insert into t1 values (90,507) ;
|
||||||
@@ -1396,7 +1396,7 @@ Select * from v1_1 ;
|
|||||||
Create view v1_main
|
Create view v1_main
|
||||||
as SELECT test.tb2.f59 FROM test.tb2 JOIN test.v1
|
as SELECT test.tb2.f59 FROM test.tb2 JOIN test.v1
|
||||||
ON test.tb2.f59 = test.v1.f59;
|
ON test.tb2.f59 = test.v1.f59;
|
||||||
Select * from v1_main limit 0,10;
|
Select * from v1_main order by f59 limit 0,10;
|
||||||
|
|
||||||
Drop table t1;
|
Drop table t1;
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
@@ -1505,7 +1505,7 @@ Drop view if exists test1.v1_1 ;
|
|||||||
Drop database if exists test3 ;
|
Drop database if exists test3 ;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
Create view test.v1 as Select f59, f60 FROM test.tb2 limit 20 ;
|
Create view test.v1 as Select f59, f60 FROM test.tb2 limit 20 ;
|
||||||
Select * from test.v1 ;
|
Select * from test.v1 order by f59,f60;
|
||||||
|
|
||||||
Create table test1.t1 (f59 int,f60 int) ;
|
Create table test1.t1 (f59 int,f60 int) ;
|
||||||
Insert into test1.t1 values (199,507) ;
|
Insert into test1.t1 values (199,507) ;
|
||||||
@@ -1550,7 +1550,7 @@ Drop view if exists test.v1 ;
|
|||||||
CREATE VIEW test.v1
|
CREATE VIEW test.v1
|
||||||
AS Select f59 from (Select * FROM tb2 limit 20) tx ;
|
AS Select f59 from (Select * FROM tb2 limit 20) tx ;
|
||||||
--error 1146
|
--error 1146
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59 ;
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
Drop view if exists test.v1 ;
|
Drop view if exists test.v1 ;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
@@ -1709,7 +1709,7 @@ CREATE VIEW test.v1 AS SELECT * FROM test.tb2 where f59 = 04;
|
|||||||
--enable_info
|
--enable_info
|
||||||
UPDATE test.v1 SET f59 = 30 where F59 = 04 ;
|
UPDATE test.v1 SET f59 = 30 where F59 = 04 ;
|
||||||
--disable_info
|
--disable_info
|
||||||
SELECT * FROM test.v1 where f59 = 30 ;
|
SELECT * FROM test.v1 where f59 = 30 order by f59;
|
||||||
if ($have_bug_11589)
|
if ($have_bug_11589)
|
||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
@@ -1726,7 +1726,7 @@ if ($have_bug_11589)
|
|||||||
}
|
}
|
||||||
SELECT * FROM tb2 where f59 = 100 ;
|
SELECT * FROM tb2 where f59 = 100 ;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59 ;
|
||||||
|
|
||||||
drop view if exists test.v1 ;
|
drop view if exists test.v1 ;
|
||||||
|
|
||||||
@@ -1821,7 +1821,7 @@ FROM test.tb2 where f59 = 195 WITH CHECK OPTION ;
|
|||||||
|
|
||||||
--error 1369
|
--error 1369
|
||||||
UPDATE test.v1 SET f59 = 198 where f59=195 ;
|
UPDATE test.v1 SET f59 = 198 where f59=195 ;
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59 ;
|
||||||
|
|
||||||
drop view if exists test.v1 ;
|
drop view if exists test.v1 ;
|
||||||
|
|
||||||
@@ -1846,7 +1846,7 @@ CREATE VIEW test.v2 as SELECT * FROM test.v1 ;
|
|||||||
# This UPDATE violates the definition of VIEW test.v1.
|
# This UPDATE violates the definition of VIEW test.v1.
|
||||||
--error 1369
|
--error 1369
|
||||||
UPDATE test.v1 SET F59 = 919 where f59 = 0987 ;
|
UPDATE test.v1 SET F59 = 919 where f59 = 0987 ;
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59 ;
|
||||||
|
|
||||||
# ML: This UPDATE violates the definition of VIEW test.v1, but this
|
# ML: This UPDATE violates the definition of VIEW test.v1, but this
|
||||||
# does not count, because the UPDATE runs on test.v2, which
|
# does not count, because the UPDATE runs on test.v2, which
|
||||||
@@ -2299,7 +2299,7 @@ if ($have_bug_11589)
|
|||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
}
|
}
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by f59 ;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
drop view test.v1 ;
|
drop view test.v1 ;
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -2310,7 +2310,7 @@ drop view test.v1 ;
|
|||||||
# AS SELECT col1, col3 FROM <table name>.
|
# AS SELECT col1, col3 FROM <table name>.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
CREATE VIEW test.v1 AS SELECT F59,F61 FROM test.tb2 limit 50 ;
|
CREATE VIEW test.v1 AS SELECT F59,F61 FROM test.tb2 limit 50 ;
|
||||||
SELECT * FROM test.v1 ;
|
SELECT * FROM test.v1 order by F59, F61 ;
|
||||||
drop view test.v1 ;
|
drop view test.v1 ;
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Testcase 3.3.1.52: Ensure that a view that is a subset of every column and
|
# Testcase 3.3.1.52: Ensure that a view that is a subset of every column and
|
||||||
@@ -2319,12 +2319,12 @@ drop view test.v1 ;
|
|||||||
# that is semantically equivalent to CREATE VIEW <view name>
|
# that is semantically equivalent to CREATE VIEW <view name>
|
||||||
# AS SELECT * FROM <table name> WHERE ....
|
# AS SELECT * FROM <table name> WHERE ....
|
||||||
###############################################################################
|
###############################################################################
|
||||||
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 limit 20 ;
|
CREATE VIEW test.v1 AS SELECT * FROM test.tb2 order by f59, f60, f61 limit 20 ;
|
||||||
if ($have_bug_11589)
|
if ($have_bug_11589)
|
||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
}
|
}
|
||||||
SELECT * FROM test.v1;
|
SELECT * FROM test.v1 order by f59,f60,f61 ;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
drop view test.v1 ;
|
drop view test.v1 ;
|
||||||
###############################################################################
|
###############################################################################
|
||||||
@@ -2335,7 +2335,7 @@ drop view test.v1 ;
|
|||||||
# <view name> AS SELECT col1, col3 FROM <table name> WHERE ..
|
# <view name> AS SELECT col1, col3 FROM <table name> WHERE ..
|
||||||
###############################################################################
|
###############################################################################
|
||||||
CREATE VIEW test.v1 AS SELECT F59,f61 FROM test.tb2 limit 20 ;
|
CREATE VIEW test.v1 AS SELECT F59,f61 FROM test.tb2 limit 20 ;
|
||||||
SELECT * FROM test.v1 limit 50;
|
SELECT * FROM test.v1 order by f59,f61 desc limit 50;
|
||||||
drop view test.v1 ;
|
drop view test.v1 ;
|
||||||
|
|
||||||
|
|
||||||
@@ -2363,7 +2363,7 @@ Insert into t2 values (2,2000) ;
|
|||||||
Insert into t2 values (31,97) ;
|
Insert into t2 values (31,97) ;
|
||||||
Create view test.v1 as select t1.f59, t1.f60
|
Create view test.v1 as select t1.f59, t1.f60
|
||||||
from t1,t2 where t1.f59=t2.f59 ;
|
from t1,t2 where t1.f59=t2.f59 ;
|
||||||
Select * from test.v1 limit 50 ;
|
Select * from test.v1 order by f59 limit 50 ;
|
||||||
|
|
||||||
drop table test.t1 ;
|
drop table test.t1 ;
|
||||||
drop table test.t2 ;
|
drop table test.t2 ;
|
||||||
@@ -2457,7 +2457,7 @@ create or replace view test.v1 as
|
|||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
from t1 inner join t2 where t1.f59 = t2.f59 ;
|
from t1 inner join t2 where t1.f59 = t2.f59 ;
|
||||||
select * from test.v1;
|
select * from test.v1 order by t1_f59 ;
|
||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
from t1 inner join t2 where t1.f59 = t2.f59;
|
from t1 inner join t2 where t1.f59 = t2.f59;
|
||||||
@@ -2466,7 +2466,7 @@ from t1 inner join t2 where t1.f59 = t2.f59;
|
|||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
||||||
FROM t2 cross join t1;
|
FROM t2 cross join t1;
|
||||||
Select * from v1;
|
Select * from v1 order by t1_f59,t2_f59;
|
||||||
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
Select t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
||||||
FROM t2 cross join t1;
|
FROM t2 cross join t1;
|
||||||
|
|
||||||
@@ -2474,7 +2474,7 @@ FROM t2 cross join t1;
|
|||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
||||||
FROM t2,t1;
|
FROM t2,t1;
|
||||||
Select * from v1;
|
Select * from v1 order by t1_f59,t2_f59;
|
||||||
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
Select straight_join t1.f59 AS t1_f59, t2.f59 AS t2_f59
|
||||||
FROM t2,t1;
|
FROM t2,t1;
|
||||||
|
|
||||||
@@ -2482,7 +2482,7 @@ FROM t2,t1;
|
|||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select f59, f60, f61, a, b
|
Select f59, f60, f61, a, b
|
||||||
FROM t2 natural join t1;
|
FROM t2 natural join t1;
|
||||||
Select * from v1;
|
Select * from v1 order by f59;
|
||||||
Select f59, f60, f61, a, b
|
Select f59, f60, f61, a, b
|
||||||
FROM t2 natural join t1;
|
FROM t2 natural join t1;
|
||||||
|
|
||||||
@@ -2491,7 +2491,7 @@ Create or replace view test.v1 as
|
|||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
FROM t2 left outer join t1 on t2.f59=t1.f59;
|
FROM t2 left outer join t1 on t2.f59=t1.f59;
|
||||||
Select * from v1;
|
Select * from v1 order by t1_f59;
|
||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
FROM t2 left outer join t1 on t2.f59=t1.f59;
|
FROM t2 left outer join t1 on t2.f59=t1.f59;
|
||||||
@@ -2500,7 +2500,7 @@ FROM t2 left outer join t1 on t2.f59=t1.f59;
|
|||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select f59, f60, f61, t1.a, t2.b
|
Select f59, f60, f61, t1.a, t2.b
|
||||||
FROM t2 natural left outer join t1;
|
FROM t2 natural left outer join t1;
|
||||||
Select * from v1;
|
Select * from v1 order by f59;
|
||||||
Select f59, f60, f61, t1.a, t2.b
|
Select f59, f60, f61, t1.a, t2.b
|
||||||
FROM t2 natural left outer join t1;
|
FROM t2 natural left outer join t1;
|
||||||
|
|
||||||
@@ -2509,7 +2509,7 @@ Create or replace view test.v1 as
|
|||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
FROM t2 right outer join t1 on t2.f59=t1.f59;
|
FROM t2 right outer join t1 on t2.f59=t1.f59;
|
||||||
Select * from v1;
|
Select * from v1 order by t1_f59;
|
||||||
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
Select t1.f59 t1_f59, t2.f59 t2_f59, t1.f60 t1_f60, t2.f60 t2_f60,
|
||||||
t1.f61 t1_f61, t2.f61 t2_f61
|
t1.f61 t1_f61, t2.f61 t2_f61
|
||||||
FROM t2 right outer join t1 on t2.f59=t1.f59;
|
FROM t2 right outer join t1 on t2.f59=t1.f59;
|
||||||
@@ -2518,7 +2518,7 @@ FROM t2 right outer join t1 on t2.f59=t1.f59;
|
|||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select f59, f60, a, b
|
Select f59, f60, a, b
|
||||||
FROM t2 natural right outer join t1;
|
FROM t2 natural right outer join t1;
|
||||||
Select * from v1;
|
Select * from v1 order by f59 desc;
|
||||||
Select f59, f60, a, b
|
Select f59, f60, a, b
|
||||||
FROM t2 natural right outer join t1;
|
FROM t2 natural right outer join t1;
|
||||||
|
|
||||||
@@ -2551,7 +2551,7 @@ Insert into t1 values (901,801,401) ;
|
|||||||
|
|
||||||
Create or replace view test.v1 as
|
Create or replace view test.v1 as
|
||||||
Select tb2.f59 FROM tb2 LEFT JOIN t1 on tb2.f59 = t1.f59 ;
|
Select tb2.f59 FROM tb2 LEFT JOIN t1 on tb2.f59 = t1.f59 ;
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
Drop view if exists test.v1 ;
|
Drop view if exists test.v1 ;
|
||||||
|
|
||||||
# Testcase 3.3.1.A2 ;
|
# Testcase 3.3.1.A2 ;
|
||||||
@@ -2566,7 +2566,7 @@ Insert into t1 values (201,201,201) ;
|
|||||||
|
|
||||||
Create or replace view test.v1
|
Create or replace view test.v1
|
||||||
as Select tb2.f59 FROM tb2 INNER JOIN t1 on tb2.f59 = t1.f59 ;
|
as Select tb2.f59 FROM tb2 INNER JOIN t1 on tb2.f59 = t1.f59 ;
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
Drop view if exists test.v1 ;
|
Drop view if exists test.v1 ;
|
||||||
|
|
||||||
# Testcase 3.3.1.A3 ;
|
# Testcase 3.3.1.A3 ;
|
||||||
@@ -2581,7 +2581,7 @@ Insert into t1 values (21,21,21) ;
|
|||||||
|
|
||||||
Create or replace view test.v1
|
Create or replace view test.v1
|
||||||
as Select tb2.f59 FROM tb2 CROSS JOIN t1 on tb2.f59 = t1.f59 ;
|
as Select tb2.f59 FROM tb2 CROSS JOIN t1 on tb2.f59 = t1.f59 ;
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
|
|
||||||
@@ -2607,15 +2607,15 @@ Insert into t1 values (91,81,41) ;
|
|||||||
|
|
||||||
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
||||||
Union ALL (Select f59 from t1 where f59=17 );
|
Union ALL (Select f59 from t1 where f59=17 );
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
||||||
Union (Select f59 from t1 where f59=17 );
|
Union (Select f59 from t1 where f59=17 );
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
Create or replace view test.v1 as (Select f59 FROM tb2 where f59=17 )
|
||||||
Union Distinct (Select f59 from t1 where f60=17 );
|
Union Distinct (Select f59 from t1 where f60=17 );
|
||||||
Select * from test.v1 limit 0,10;
|
Select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
|
|
||||||
@@ -2631,25 +2631,25 @@ insert into t1 values (901,801,401);
|
|||||||
|
|
||||||
create or replace view test.v1 as
|
create or replace view test.v1 as
|
||||||
select tb2.f59 from tb2 join t1 on tb2.f59 = t1.f59;
|
select tb2.f59 from tb2 join t1 on tb2.f59 = t1.f59;
|
||||||
select * from test.v1 limit 0,10;
|
select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
create or replace view test.v1 as
|
create or replace view test.v1 as
|
||||||
(select f59 from tb2 where f59=107 )
|
(select f59 from tb2 where f59=107 )
|
||||||
union all
|
union all
|
||||||
(select f59 from t1 where f59=107 );
|
(select f59 from t1 where f59=107 );
|
||||||
select * from test.v1 limit 0,10;
|
select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
create or replace view test.v1 as
|
create or replace view test.v1 as
|
||||||
(select f59 from tb2 where f59=107 )
|
(select f59 from tb2 where f59=107 )
|
||||||
union
|
union
|
||||||
(select f59 from t1 where f59=107 );
|
(select f59 from t1 where f59=107 );
|
||||||
select * from test.v1 limit 0,10;
|
select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
create or replace view test.v1 as
|
create or replace view test.v1 as
|
||||||
(select f59 from tb2 where f59=107 )
|
(select f59 from tb2 where f59=107 )
|
||||||
union distinct
|
union distinct
|
||||||
(select f59 from t1 where f59=107 );
|
(select f59 from t1 where f59=107 );
|
||||||
select * from test.v1 limit 0,10;
|
select * from test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
drop view if exists test.v1 ;
|
drop view if exists test.v1 ;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
@@ -2668,7 +2668,7 @@ Drop view if exists test.v1 ;
|
|||||||
CREATE VIEW test.v1 AS SELECT F59
|
CREATE VIEW test.v1 AS SELECT F59
|
||||||
FROM test.tb2 where test.tb2.F59 = 109;
|
FROM test.tb2 where test.tb2.F59 = 109;
|
||||||
|
|
||||||
SELECT * FROM test.v1 limit 0,10;
|
SELECT * FROM test.v1 order by f59 limit 0,10;
|
||||||
|
|
||||||
ALTER VIEW test.v1 AS SELECT *
|
ALTER VIEW test.v1 AS SELECT *
|
||||||
FROM test.tb2 WHERE test.tb2.f59 = 242 ;
|
FROM test.tb2 WHERE test.tb2.f59 = 242 ;
|
||||||
@@ -2676,7 +2676,7 @@ if ($have_bug_11589)
|
|||||||
{
|
{
|
||||||
--disable_ps_protocol
|
--disable_ps_protocol
|
||||||
}
|
}
|
||||||
SELECT * FROM test.v1 limit 0,10;
|
SELECT * FROM test.v1 order by f59 limit 0,10;
|
||||||
--enable_ps_protocol
|
--enable_ps_protocol
|
||||||
|
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
@@ -2899,10 +2899,14 @@ eval EXPLAIN SELECT * FROM test3.v$toplevel;
|
|||||||
# and OBN's box performs excessive paging.
|
# and OBN's box performs excessive paging.
|
||||||
# (RAM: OBN ~384MB RAM, ML 1 GB)
|
# (RAM: OBN ~384MB RAM, ML 1 GB)
|
||||||
#++++++++++++++++++++++++++++++++++++++++++++++
|
#++++++++++++++++++++++++++++++++++++++++++++++
|
||||||
let $message= FIXME - Setting join_limit to 30 - hangs for higher values;
|
let $message= FIXME - Setting join_limit to 28 - hangs for higher values;
|
||||||
--source include/show_msg.inc
|
--source include/show_msg.inc
|
||||||
|
# OBN - Reduced from 30 in 5.1.21 to avoid hitting the ndbcluster limit
|
||||||
|
# of "ERROR HY000:RROR HY000: Got temporary error 4006 'Connect failure
|
||||||
|
# - out of connection objects (increase MaxNoOfConcurrentTransactions)'
|
||||||
|
# from NDBCLUSTER " to early;
|
||||||
#SET @join_limit = 61;
|
#SET @join_limit = 61;
|
||||||
SET @join_limit = 30;
|
SET @join_limit = 28; # OBN - see above
|
||||||
SET @max_level = @join_limit - 1;
|
SET @max_level = @join_limit - 1;
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
|
||||||
@@ -3233,7 +3237,7 @@ CREATE VIEW test.v1 AS SELECT f59,f60,f61 FROM tb2 where f59 = 789 ;
|
|||||||
DELETE FROM test.v1 where f59 = 789 ;
|
DELETE FROM test.v1 where f59 = 789 ;
|
||||||
--disable_info
|
--disable_info
|
||||||
SELECT * FROM tb2 where f59 = 789 ;
|
SELECT * FROM tb2 where f59 = 789 ;
|
||||||
SELECT f59,f60 FROM test.v1 where f59 = 789;
|
SELECT f59,f60 FROM test.v1 where f59 = 789 order by f60 ;
|
||||||
|
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
|
|
||||||
@@ -3256,7 +3260,7 @@ DELETE FROM test.v1 where f59 = 711 ;
|
|||||||
--disable_info
|
--disable_info
|
||||||
|
|
||||||
SELECT * FROM tb2 where f59 = 711 ;
|
SELECT * FROM tb2 where f59 = 711 ;
|
||||||
SELECT f59,f60 FROM test.v1 where f59 = 711;
|
SELECT f59,f60 FROM test.v1 where f59 = 711 order by f60 ;
|
||||||
|
|
||||||
Drop view test.v1 ;
|
Drop view test.v1 ;
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@ SET NAMES armscii8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET armscii8 COLLATE armscii8_bin) ENGINE=NDB CHARACTER SET armscii8 COLLATE armscii8_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET armscii8 COLLATE armscii8_bin) ENGINE=NDB CHARACTER SET armscii8 COLLATE armscii8_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # armscii8_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # armscii8_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -233,7 +233,7 @@ SET NAMES armscii8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET armscii8 COLLATE armscii8_general_ci) ENGINE=NDB CHARACTER SET armscii8 COLLATE armscii8_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET armscii8 COLLATE armscii8_general_ci) ENGINE=NDB CHARACTER SET armscii8 COLLATE armscii8_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # armscii8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # armscii8_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -463,7 +463,7 @@ SET NAMES ascii;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ascii COLLATE ascii_bin) ENGINE=NDB CHARACTER SET ascii COLLATE ascii_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ascii COLLATE ascii_bin) ENGINE=NDB CHARACTER SET ascii COLLATE ascii_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # ascii_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # ascii_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -693,7 +693,7 @@ SET NAMES ascii;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ascii COLLATE ascii_general_ci) ENGINE=NDB CHARACTER SET ascii COLLATE ascii_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ascii COLLATE ascii_general_ci) ENGINE=NDB CHARACTER SET ascii COLLATE ascii_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # ascii_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # ascii_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -923,7 +923,7 @@ SET NAMES big5;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET big5 COLLATE big5_bin) ENGINE=NDB CHARACTER SET big5 COLLATE big5_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET big5 COLLATE big5_bin) ENGINE=NDB CHARACTER SET big5 COLLATE big5_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # big5_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # big5_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -1027,7 +1027,7 @@ SET NAMES big5;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET big5 COLLATE big5_chinese_ci) ENGINE=NDB CHARACTER SET big5 COLLATE big5_chinese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET big5 COLLATE big5_chinese_ci) ENGINE=NDB CHARACTER SET big5 COLLATE big5_chinese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # big5_chinese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # big5_chinese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -1131,7 +1131,7 @@ SET NAMES binary;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET binary) ENGINE=NDB CHARACTER SET binary;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET binary) ENGINE=NDB CHARACTER SET binary;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # binary # # #
|
t1 ndbcluster # # # # # # # # # # # # binary # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -1361,7 +1361,7 @@ SET NAMES cp1250;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_bin) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_bin) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1250_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1250_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -1591,7 +1591,7 @@ SET NAMES cp1250;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_croatian_ci) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_croatian_ci) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_croatian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1250_croatian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1250_croatian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -1821,7 +1821,7 @@ SET NAMES cp1250;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_czech_cs) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_czech_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_czech_cs) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_czech_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1250_czech_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1250_czech_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
7F 1
|
7F 1
|
||||||
@@ -2051,7 +2051,7 @@ SET NAMES cp1250;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_general_ci) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1250 COLLATE cp1250_general_ci) ENGINE=NDB CHARACTER SET cp1250 COLLATE cp1250_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1250_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1250_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
A0 1
|
A0 1
|
||||||
@@ -2281,7 +2281,7 @@ SET NAMES cp1251;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_bin) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_bin) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1251_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1251_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -2511,7 +2511,7 @@ SET NAMES cp1251;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_bulgarian_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_bulgarian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_bulgarian_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_bulgarian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1251_bulgarian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1251_bulgarian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -2741,7 +2741,7 @@ SET NAMES cp1251;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_general_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_general_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1251_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1251_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -2971,7 +2971,7 @@ SET NAMES cp1251;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_general_cs) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_general_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_general_cs) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_general_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1251_general_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1251_general_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -3201,7 +3201,7 @@ SET NAMES cp1251;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci) ENGINE=NDB CHARACTER SET cp1251 COLLATE cp1251_ukrainian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1251_ukrainian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1251_ukrainian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
60 1
|
60 1
|
||||||
@@ -3431,7 +3431,7 @@ SET NAMES cp1256;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1256 COLLATE cp1256_bin) ENGINE=NDB CHARACTER SET cp1256 COLLATE cp1256_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1256 COLLATE cp1256_bin) ENGINE=NDB CHARACTER SET cp1256 COLLATE cp1256_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1256_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1256_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -3661,7 +3661,7 @@ SET NAMES cp1256;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1256 COLLATE cp1256_general_ci) ENGINE=NDB CHARACTER SET cp1256 COLLATE cp1256_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1256 COLLATE cp1256_general_ci) ENGINE=NDB CHARACTER SET cp1256 COLLATE cp1256_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1256_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1256_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -3891,7 +3891,7 @@ SET NAMES cp1257;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_bin) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_bin) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1257_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1257_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -4121,7 +4121,7 @@ SET NAMES cp1257;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_general_ci) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_general_ci) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1257_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1257_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -4351,7 +4351,7 @@ SET NAMES cp1257;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_lithuanian_ci) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_lithuanian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp1257 COLLATE cp1257_lithuanian_ci) ENGINE=NDB CHARACTER SET cp1257 COLLATE cp1257_lithuanian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp1257_lithuanian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp1257_lithuanian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -4581,7 +4581,7 @@ SET NAMES cp850;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp850 COLLATE cp850_bin) ENGINE=NDB CHARACTER SET cp850 COLLATE cp850_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp850 COLLATE cp850_bin) ENGINE=NDB CHARACTER SET cp850 COLLATE cp850_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp850_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp850_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -4811,7 +4811,7 @@ SET NAMES cp850;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp850 COLLATE cp850_general_ci) ENGINE=NDB CHARACTER SET cp850 COLLATE cp850_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp850 COLLATE cp850_general_ci) ENGINE=NDB CHARACTER SET cp850 COLLATE cp850_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp850_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp850_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -5041,7 +5041,7 @@ SET NAMES cp852;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp852 COLLATE cp852_bin) ENGINE=NDB CHARACTER SET cp852 COLLATE cp852_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp852 COLLATE cp852_bin) ENGINE=NDB CHARACTER SET cp852 COLLATE cp852_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp852_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp852_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -5271,7 +5271,7 @@ SET NAMES cp852;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp852 COLLATE cp852_general_ci) ENGINE=NDB CHARACTER SET cp852 COLLATE cp852_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp852 COLLATE cp852_general_ci) ENGINE=NDB CHARACTER SET cp852 COLLATE cp852_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp852_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp852_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -5501,7 +5501,7 @@ SET NAMES cp866;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp866 COLLATE cp866_bin) ENGINE=NDB CHARACTER SET cp866 COLLATE cp866_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp866 COLLATE cp866_bin) ENGINE=NDB CHARACTER SET cp866 COLLATE cp866_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp866_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp866_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -5731,7 +5731,7 @@ SET NAMES cp866;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp866 COLLATE cp866_general_ci) ENGINE=NDB CHARACTER SET cp866 COLLATE cp866_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp866 COLLATE cp866_general_ci) ENGINE=NDB CHARACTER SET cp866 COLLATE cp866_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp866_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp866_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -5961,7 +5961,7 @@ SET NAMES cp932;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp932 COLLATE cp932_bin) ENGINE=NDB CHARACTER SET cp932 COLLATE cp932_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp932 COLLATE cp932_bin) ENGINE=NDB CHARACTER SET cp932 COLLATE cp932_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp932_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # cp932_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6128,7 +6128,7 @@ SET NAMES cp932;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp932 COLLATE cp932_japanese_ci) ENGINE=NDB CHARACTER SET cp932 COLLATE cp932_japanese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET cp932 COLLATE cp932_japanese_ci) ENGINE=NDB CHARACTER SET cp932 COLLATE cp932_japanese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # cp932_japanese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # cp932_japanese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6295,7 +6295,7 @@ SET NAMES dec8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET dec8 COLLATE dec8_bin) ENGINE=NDB CHARACTER SET dec8 COLLATE dec8_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET dec8 COLLATE dec8_bin) ENGINE=NDB CHARACTER SET dec8 COLLATE dec8_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # dec8_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # dec8_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6525,7 +6525,7 @@ SET NAMES dec8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET dec8 COLLATE dec8_swedish_ci) ENGINE=NDB CHARACTER SET dec8 COLLATE dec8_swedish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET dec8 COLLATE dec8_swedish_ci) ENGINE=NDB CHARACTER SET dec8 COLLATE dec8_swedish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # dec8_swedish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # dec8_swedish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6755,7 +6755,7 @@ SET NAMES eucjpms;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET eucjpms COLLATE eucjpms_bin) ENGINE=NDB CHARACTER SET eucjpms COLLATE eucjpms_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET eucjpms COLLATE eucjpms_bin) ENGINE=NDB CHARACTER SET eucjpms COLLATE eucjpms_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # eucjpms_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # eucjpms_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6859,7 +6859,7 @@ SET NAMES eucjpms;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET eucjpms COLLATE eucjpms_japanese_ci) ENGINE=NDB CHARACTER SET eucjpms COLLATE eucjpms_japanese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET eucjpms COLLATE eucjpms_japanese_ci) ENGINE=NDB CHARACTER SET eucjpms COLLATE eucjpms_japanese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # eucjpms_japanese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # eucjpms_japanese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -6963,7 +6963,7 @@ SET NAMES euckr;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET euckr COLLATE euckr_bin) ENGINE=NDB CHARACTER SET euckr COLLATE euckr_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET euckr COLLATE euckr_bin) ENGINE=NDB CHARACTER SET euckr COLLATE euckr_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # euckr_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # euckr_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7067,7 +7067,7 @@ SET NAMES euckr;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET euckr COLLATE euckr_korean_ci) ENGINE=NDB CHARACTER SET euckr COLLATE euckr_korean_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET euckr COLLATE euckr_korean_ci) ENGINE=NDB CHARACTER SET euckr COLLATE euckr_korean_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # euckr_korean_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # euckr_korean_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7171,7 +7171,7 @@ SET NAMES gb2312;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gb2312 COLLATE gb2312_bin) ENGINE=NDB CHARACTER SET gb2312 COLLATE gb2312_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gb2312 COLLATE gb2312_bin) ENGINE=NDB CHARACTER SET gb2312 COLLATE gb2312_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # gb2312_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # gb2312_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7275,7 +7275,7 @@ SET NAMES gb2312;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci) ENGINE=NDB CHARACTER SET gb2312 COLLATE gb2312_chinese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gb2312 COLLATE gb2312_chinese_ci) ENGINE=NDB CHARACTER SET gb2312 COLLATE gb2312_chinese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # gb2312_chinese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # gb2312_chinese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7379,7 +7379,7 @@ SET NAMES gbk;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gbk COLLATE gbk_bin) ENGINE=NDB CHARACTER SET gbk COLLATE gbk_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gbk COLLATE gbk_bin) ENGINE=NDB CHARACTER SET gbk COLLATE gbk_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # gbk_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # gbk_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7483,7 +7483,7 @@ SET NAMES gbk;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gbk COLLATE gbk_chinese_ci) ENGINE=NDB CHARACTER SET gbk COLLATE gbk_chinese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET gbk COLLATE gbk_chinese_ci) ENGINE=NDB CHARACTER SET gbk COLLATE gbk_chinese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # gbk_chinese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # gbk_chinese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7587,7 +7587,7 @@ SET NAMES geostd8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET geostd8 COLLATE geostd8_bin) ENGINE=NDB CHARACTER SET geostd8 COLLATE geostd8_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET geostd8 COLLATE geostd8_bin) ENGINE=NDB CHARACTER SET geostd8 COLLATE geostd8_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # geostd8_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # geostd8_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -7817,7 +7817,7 @@ SET NAMES geostd8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET geostd8 COLLATE geostd8_general_ci) ENGINE=NDB CHARACTER SET geostd8 COLLATE geostd8_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET geostd8 COLLATE geostd8_general_ci) ENGINE=NDB CHARACTER SET geostd8 COLLATE geostd8_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # geostd8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # geostd8_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -8047,7 +8047,7 @@ SET NAMES greek;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET greek COLLATE greek_bin) ENGINE=NDB CHARACTER SET greek COLLATE greek_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET greek COLLATE greek_bin) ENGINE=NDB CHARACTER SET greek COLLATE greek_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # greek_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # greek_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -8277,7 +8277,7 @@ SET NAMES greek;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET greek COLLATE greek_general_ci) ENGINE=NDB CHARACTER SET greek COLLATE greek_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET greek COLLATE greek_general_ci) ENGINE=NDB CHARACTER SET greek COLLATE greek_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # greek_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # greek_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -8507,7 +8507,7 @@ SET NAMES hebrew;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hebrew COLLATE hebrew_bin) ENGINE=NDB CHARACTER SET hebrew COLLATE hebrew_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hebrew COLLATE hebrew_bin) ENGINE=NDB CHARACTER SET hebrew COLLATE hebrew_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # hebrew_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # hebrew_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -8737,7 +8737,7 @@ SET NAMES hebrew;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hebrew COLLATE hebrew_general_ci) ENGINE=NDB CHARACTER SET hebrew COLLATE hebrew_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hebrew COLLATE hebrew_general_ci) ENGINE=NDB CHARACTER SET hebrew COLLATE hebrew_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # hebrew_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # hebrew_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -8967,7 +8967,7 @@ SET NAMES hp8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hp8 COLLATE hp8_bin) ENGINE=NDB CHARACTER SET hp8 COLLATE hp8_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hp8 COLLATE hp8_bin) ENGINE=NDB CHARACTER SET hp8 COLLATE hp8_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # hp8_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # hp8_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -9197,7 +9197,7 @@ SET NAMES hp8;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hp8 COLLATE hp8_english_ci) ENGINE=NDB CHARACTER SET hp8 COLLATE hp8_english_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET hp8 COLLATE hp8_english_ci) ENGINE=NDB CHARACTER SET hp8 COLLATE hp8_english_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # hp8_english_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # hp8_english_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -9427,7 +9427,7 @@ SET NAMES keybcs2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET keybcs2 COLLATE keybcs2_bin) ENGINE=NDB CHARACTER SET keybcs2 COLLATE keybcs2_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET keybcs2 COLLATE keybcs2_bin) ENGINE=NDB CHARACTER SET keybcs2 COLLATE keybcs2_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # keybcs2_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # keybcs2_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -9657,7 +9657,7 @@ SET NAMES keybcs2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET keybcs2 COLLATE keybcs2_general_ci) ENGINE=NDB CHARACTER SET keybcs2 COLLATE keybcs2_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET keybcs2 COLLATE keybcs2_general_ci) ENGINE=NDB CHARACTER SET keybcs2 COLLATE keybcs2_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # keybcs2_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # keybcs2_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -9887,7 +9887,7 @@ SET NAMES koi8r;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8r COLLATE koi8r_bin) ENGINE=NDB CHARACTER SET koi8r COLLATE koi8r_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8r COLLATE koi8r_bin) ENGINE=NDB CHARACTER SET koi8r COLLATE koi8r_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # koi8r_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # koi8r_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -10117,7 +10117,7 @@ SET NAMES koi8r;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8r COLLATE koi8r_general_ci) ENGINE=NDB CHARACTER SET koi8r COLLATE koi8r_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8r COLLATE koi8r_general_ci) ENGINE=NDB CHARACTER SET koi8r COLLATE koi8r_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # koi8r_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # koi8r_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -10347,7 +10347,7 @@ SET NAMES koi8u;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8u COLLATE koi8u_bin) ENGINE=NDB CHARACTER SET koi8u COLLATE koi8u_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8u COLLATE koi8u_bin) ENGINE=NDB CHARACTER SET koi8u COLLATE koi8u_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # koi8u_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # koi8u_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -10577,7 +10577,7 @@ SET NAMES koi8u;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8u COLLATE koi8u_general_ci) ENGINE=NDB CHARACTER SET koi8u COLLATE koi8u_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET koi8u COLLATE koi8u_general_ci) ENGINE=NDB CHARACTER SET koi8u COLLATE koi8u_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # koi8u_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # koi8u_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
60 1
|
60 1
|
||||||
@@ -10807,7 +10807,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_bin) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_bin) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -11037,7 +11037,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_danish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_danish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_danish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_danish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_danish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_danish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -11267,7 +11267,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_general_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_general_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -11497,7 +11497,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_general_cs) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_general_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_general_cs) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_general_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_general_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_general_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -11727,7 +11727,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_german1_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_german1_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_german1_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_german1_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_german1_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_german1_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -11957,7 +11957,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_german2_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_german2_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_german2_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_german2_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_german2_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_german2_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -12187,7 +12187,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_spanish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_spanish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_spanish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_spanish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_spanish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_spanish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -12417,7 +12417,7 @@ SET NAMES latin1;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_swedish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin1 COLLATE latin1_swedish_ci) ENGINE=NDB CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin1_swedish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin1_swedish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -12647,7 +12647,7 @@ SET NAMES latin2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_bin) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_bin) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin2_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # latin2_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -12877,7 +12877,7 @@ SET NAMES latin2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_croatian_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_croatian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_croatian_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_croatian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin2_croatian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin2_croatian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -13107,7 +13107,7 @@ SET NAMES latin2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_czech_cs) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_czech_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_czech_cs) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_czech_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin2_czech_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # latin2_czech_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
2E 1
|
2E 1
|
||||||
@@ -13337,7 +13337,7 @@ SET NAMES latin2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_general_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_general_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin2_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin2_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -13567,7 +13567,7 @@ SET NAMES latin2;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_hungarian_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_hungarian_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin2 COLLATE latin2_hungarian_ci) ENGINE=NDB CHARACTER SET latin2 COLLATE latin2_hungarian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin2_hungarian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin2_hungarian_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
7F 1
|
7F 1
|
||||||
@@ -13797,7 +13797,7 @@ SET NAMES latin5;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin5 COLLATE latin5_bin) ENGINE=NDB CHARACTER SET latin5 COLLATE latin5_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin5 COLLATE latin5_bin) ENGINE=NDB CHARACTER SET latin5 COLLATE latin5_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin5_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # latin5_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -14027,7 +14027,7 @@ SET NAMES latin5;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin5 COLLATE latin5_turkish_ci) ENGINE=NDB CHARACTER SET latin5 COLLATE latin5_turkish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin5 COLLATE latin5_turkish_ci) ENGINE=NDB CHARACTER SET latin5 COLLATE latin5_turkish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin5_turkish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin5_turkish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -14257,7 +14257,7 @@ SET NAMES latin7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_bin) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_bin) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin7_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # latin7_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -14487,7 +14487,7 @@ SET NAMES latin7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_estonian_cs) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_estonian_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_estonian_cs) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_estonian_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin7_estonian_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # latin7_estonian_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
80 1
|
80 1
|
||||||
@@ -14717,7 +14717,7 @@ SET NAMES latin7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_general_ci) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_general_ci) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin7_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # latin7_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
7F 1
|
7F 1
|
||||||
@@ -14947,7 +14947,7 @@ SET NAMES latin7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_general_cs) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_general_cs;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET latin7 COLLATE latin7_general_cs) ENGINE=NDB CHARACTER SET latin7 COLLATE latin7_general_cs;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # latin7_general_cs # # #
|
t1 ndbcluster # # # # # # # # # # # # latin7_general_cs # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
7F 1
|
7F 1
|
||||||
@@ -15177,7 +15177,7 @@ SET NAMES macce;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macce COLLATE macce_bin) ENGINE=NDB CHARACTER SET macce COLLATE macce_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macce COLLATE macce_bin) ENGINE=NDB CHARACTER SET macce COLLATE macce_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # macce_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # macce_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -15407,7 +15407,7 @@ SET NAMES macce;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macce COLLATE macce_general_ci) ENGINE=NDB CHARACTER SET macce COLLATE macce_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macce COLLATE macce_general_ci) ENGINE=NDB CHARACTER SET macce COLLATE macce_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # macce_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # macce_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -15637,7 +15637,7 @@ SET NAMES macroman;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macroman COLLATE macroman_bin) ENGINE=NDB CHARACTER SET macroman COLLATE macroman_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macroman COLLATE macroman_bin) ENGINE=NDB CHARACTER SET macroman COLLATE macroman_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # macroman_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # macroman_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -15867,7 +15867,7 @@ SET NAMES macroman;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macroman COLLATE macroman_general_ci) ENGINE=NDB CHARACTER SET macroman COLLATE macroman_general_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET macroman COLLATE macroman_general_ci) ENGINE=NDB CHARACTER SET macroman COLLATE macroman_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # macroman_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # macroman_general_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -16097,7 +16097,7 @@ SET NAMES sjis;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET sjis COLLATE sjis_bin) ENGINE=NDB CHARACTER SET sjis COLLATE sjis_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET sjis COLLATE sjis_bin) ENGINE=NDB CHARACTER SET sjis COLLATE sjis_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # sjis_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # sjis_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -16264,7 +16264,7 @@ SET NAMES sjis;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET sjis COLLATE sjis_japanese_ci) ENGINE=NDB CHARACTER SET sjis COLLATE sjis_japanese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET sjis COLLATE sjis_japanese_ci) ENGINE=NDB CHARACTER SET sjis COLLATE sjis_japanese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # sjis_japanese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # sjis_japanese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -16431,7 +16431,7 @@ SET NAMES swe7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET swe7 COLLATE swe7_bin) ENGINE=NDB CHARACTER SET swe7 COLLATE swe7_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET swe7 COLLATE swe7_bin) ENGINE=NDB CHARACTER SET swe7 COLLATE swe7_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # swe7_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # swe7_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -16661,7 +16661,7 @@ SET NAMES swe7;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET swe7 COLLATE swe7_swedish_ci) ENGINE=NDB CHARACTER SET swe7 COLLATE swe7_swedish_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET swe7 COLLATE swe7_swedish_ci) ENGINE=NDB CHARACTER SET swe7 COLLATE swe7_swedish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # swe7_swedish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # swe7_swedish_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -16891,7 +16891,7 @@ SET NAMES tis620;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET tis620 COLLATE tis620_bin) ENGINE=NDB CHARACTER SET tis620 COLLATE tis620_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET tis620 COLLATE tis620_bin) ENGINE=NDB CHARACTER SET tis620 COLLATE tis620_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # tis620_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # tis620_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -17121,7 +17121,7 @@ SET NAMES tis620;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET tis620 COLLATE tis620_thai_ci) ENGINE=NDB CHARACTER SET tis620 COLLATE tis620_thai_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET tis620 COLLATE tis620_thai_ci) ENGINE=NDB CHARACTER SET tis620 COLLATE tis620_thai_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # tis620_thai_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # tis620_thai_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -17351,7 +17351,7 @@ SET NAMES ujis;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ujis COLLATE ujis_bin) ENGINE=NDB CHARACTER SET ujis COLLATE ujis_bin;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ujis COLLATE ujis_bin) ENGINE=NDB CHARACTER SET ujis COLLATE ujis_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # ujis_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # ujis_bin # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -17455,7 +17455,7 @@ SET NAMES ujis;
|
|||||||
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ujis COLLATE ujis_japanese_ci) ENGINE=NDB CHARACTER SET ujis COLLATE ujis_japanese_ci;
|
CREATE TABLE test.t1 (a VARCHAR(3) CHARACTER SET ujis COLLATE ujis_japanese_ci) ENGINE=NDB CHARACTER SET ujis COLLATE ujis_japanese_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # ujis_japanese_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # ujis_japanese_ci # # #
|
||||||
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
SELECT HEX(ASCII(a)) AS a_ascii, CHAR_LENGTH(a) AS a_len FROM test.t1 ORDER BY a, ORD(a);
|
||||||
a_ascii a_len
|
a_ascii a_len
|
||||||
21 1
|
21 1
|
||||||
@@ -17562,7 +17562,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_bin;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_bin;
|
||||||
@@ -20103,7 +20103,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_czech_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_czech_ci;
|
||||||
@@ -22644,7 +22644,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_danish_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_danish_ci;
|
||||||
@@ -25185,7 +25185,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_estonian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_estonian_ci;
|
||||||
@@ -27726,7 +27726,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_general_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_general_ci;
|
||||||
@@ -30267,7 +30267,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_hungarian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_hungarian_ci;
|
||||||
@@ -32808,7 +32808,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_icelandic_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_icelandic_ci;
|
||||||
@@ -35349,7 +35349,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_latvian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_latvian_ci;
|
||||||
@@ -37890,7 +37890,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_lithuanian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_lithuanian_ci;
|
||||||
@@ -40431,7 +40431,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_persian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_persian_ci;
|
||||||
@@ -42972,7 +42972,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_polish_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_polish_ci;
|
||||||
@@ -45513,7 +45513,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_roman_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_roman_ci;
|
||||||
@@ -48054,7 +48054,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_romanian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_romanian_ci;
|
||||||
@@ -50595,7 +50595,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_slovak_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_slovak_ci;
|
||||||
@@ -53136,7 +53136,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_slovenian_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_slovenian_ci;
|
||||||
@@ -55677,7 +55677,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_spanish2_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_spanish2_ci;
|
||||||
@@ -58218,7 +58218,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_spanish_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_spanish_ci;
|
||||||
@@ -60759,7 +60759,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_swedish_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_swedish_ci;
|
||||||
@@ -63300,7 +63300,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_turkish_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_turkish_ci;
|
||||||
@@ -65841,7 +65841,7 @@ SET NAMES utf8;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8) ENGINE=NDB CHARACTER SET utf8;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci;
|
ALTER TABLE test.t1 CHANGE a a CHAR(4) CHARACTER SET ucs2 COLLATE ucs2_unicode_ci;
|
||||||
@@ -68381,7 +68381,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_bin) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_bin;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_bin) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_bin;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_bin # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_bin # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -70920,7 +70920,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_czech_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_czech_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_czech_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_czech_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_czech_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_czech_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -73459,7 +73459,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_danish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_danish_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_danish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_danish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_danish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_danish_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -75998,7 +75998,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_estonian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_estonian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_estonian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_estonian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_estonian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_estonian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -78537,7 +78537,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_general_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_general_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_general_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_general_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_general_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_general_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -81076,7 +81076,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_hungarian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_hungarian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_hungarian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_hungarian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_hungarian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_hungarian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -83615,7 +83615,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_icelandic_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_icelandic_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_icelandic_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_icelandic_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_icelandic_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_icelandic_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -86154,7 +86154,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_latvian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_latvian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_latvian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_latvian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_latvian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_latvian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -88693,7 +88693,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_lithuanian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_lithuanian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_lithuanian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_lithuanian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_lithuanian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_lithuanian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -91232,7 +91232,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_persian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_persian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_persian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_persian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_persian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_persian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -93771,7 +93771,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_polish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_polish_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_polish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_polish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_polish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_polish_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -96310,7 +96310,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_roman_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_roman_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_roman_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_roman_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_roman_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_roman_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -98849,7 +98849,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_romanian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_romanian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_romanian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_romanian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_romanian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_romanian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -101388,7 +101388,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_slovak_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_slovak_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_slovak_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_slovak_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_slovak_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_slovak_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -103927,7 +103927,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_slovenian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_slovenian_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_slovenian_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_slovenian_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_slovenian_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_slovenian_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -106466,7 +106466,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_spanish2_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_spanish2_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_spanish2_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_spanish2_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_spanish2_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_spanish2_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -109005,7 +109005,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_spanish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_spanish_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_spanish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_spanish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_spanish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_spanish_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -111544,7 +111544,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_swedish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_swedish_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_swedish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_swedish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_swedish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_swedish_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -114083,7 +114083,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_turkish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_turkish_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_turkish_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_turkish_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_turkish_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_turkish_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
@@ -116622,7 +116622,7 @@ USE test;
|
|||||||
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_unicode_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
CREATE TABLE test.t1 (a CHAR(4) CHARACTER SET utf8 COLLATE utf8_unicode_ci) ENGINE=NDB CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||||
SHOW TABLE STATUS LIKE 't1';
|
SHOW TABLE STATUS LIKE 't1';
|
||||||
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment
|
||||||
t1 NDBCLUSTER # # # # # # # # # # # # utf8_unicode_ci # # #
|
t1 ndbcluster # # # # # # # # # # # # utf8_unicode_ci # # #
|
||||||
LOAD DATA INFILE
|
LOAD DATA INFILE
|
||||||
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
'MYSQL_TEST_DIR/suite/funcs_2/data/charset_utf8.txt' INTO TABLE test.t1;
|
||||||
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
DELETE FROM test.t1 WHERE CHAR_LENGTH(a) <> 1;
|
||||||
|
@@ -8,20 +8,20 @@ INITIAL_SIZE 16M
|
|||||||
UNDO_BUFFER_SIZE = 1M
|
UNDO_BUFFER_SIZE = 1M
|
||||||
ENGINE=MYISAM;
|
ENGINE=MYISAM;
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1475 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1476 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
ALTER LOGFILE GROUP lg1
|
ALTER LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile02.dat'
|
ADD UNDOFILE 'undofile02.dat'
|
||||||
INITIAL_SIZE = 4M
|
INITIAL_SIZE = 4M
|
||||||
ENGINE=XYZ;
|
ENGINE=XYZ;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1286 Unknown table engine 'XYZ'
|
Warning 1286 Unknown table engine 'XYZ'
|
||||||
Error 1475 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1476 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
CREATE TABLESPACE ts1
|
CREATE TABLESPACE ts1
|
||||||
ADD DATAFILE 'datafile.dat'
|
ADD DATAFILE 'datafile.dat'
|
||||||
USE LOGFILE GROUP lg1
|
USE LOGFILE GROUP lg1
|
||||||
INITIAL_SIZE 12M;
|
INITIAL_SIZE 12M;
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1475 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
Error 1476 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
|
||||||
set storage_engine=ndb;
|
set storage_engine=ndb;
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
|
@@ -16,7 +16,7 @@ ERROR HY000: Failed to create LOGFILE GROUP
|
|||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 1514 'Currently there is a limit of one logfile group' from NDB
|
Error 1296 Got error 1514 'Currently there is a limit of one logfile group' from NDB
|
||||||
Error 1525 Failed to create LOGFILE GROUP
|
Error 1526 Failed to create LOGFILE GROUP
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
INITIAL_SIZE 1M
|
INITIAL_SIZE 1M
|
||||||
@@ -222,19 +222,17 @@ ENGINE NDB;
|
|||||||
DROP LOGFILE GROUP lg1
|
DROP LOGFILE GROUP lg1
|
||||||
ENGINE NDB;
|
ENGINE NDB;
|
||||||
**** End = And No = ****
|
**** End = And No = ****
|
||||||
create table t1 (a int primary key) engine = myisam;
|
create logfile group lg1 add undofile 'MYSQLTEST_VARDIR/tmp/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
|
||||||
create logfile group lg1 add undofile 'MYSQLTEST_VARDIR/master-data/test/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;;
|
|
||||||
ERROR HY000: Failed to create UNDOFILE
|
ERROR HY000: Failed to create UNDOFILE
|
||||||
create logfile group lg1
|
create logfile group lg1
|
||||||
add undofile 'undofile.dat'
|
add undofile 'undofile.dat'
|
||||||
initial_size 1M
|
initial_size 1M
|
||||||
undo_buffer_size = 1M
|
undo_buffer_size = 1M
|
||||||
engine=ndb;
|
engine=ndb;
|
||||||
create tablespace ts1 add datafile 'MYSQLTEST_VARDIR/master-data/test/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
|
create tablespace ts1 add datafile 'MYSQLTEST_VARDIR/tmp/t1.frm' use logfile group lg1 initial_size 1M engine ndb;;
|
||||||
ERROR HY000: Failed to create DATAFILE
|
ERROR HY000: Failed to create DATAFILE
|
||||||
drop tablespace ts1
|
drop tablespace ts1
|
||||||
engine ndb;
|
engine ndb;
|
||||||
ERROR HY000: Failed to drop TABLESPACE
|
ERROR HY000: Failed to drop TABLESPACE
|
||||||
drop logfile group lg1
|
drop logfile group lg1
|
||||||
engine ndb;
|
engine ndb;
|
||||||
drop table t1;
|
|
||||||
|
@@ -463,7 +463,7 @@ drop table t1;
|
|||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1476 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
||||||
@@ -1013,7 +1013,7 @@ drop table t1;
|
|||||||
End of 4.1 tests
|
End of 4.1 tests
|
||||||
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
CREATE TABLE t1 (name VARCHAR(100), square GEOMETRY);
|
||||||
Warnings:
|
Warnings:
|
||||||
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
Error 1476 Table storage engine 'ndbcluster' does not support the create option 'Binlog of table with BLOB attribute and no PK'
|
||||||
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
INSERT INTO t1 VALUES("center", GeomFromText('POLYGON (( 0 0, 0 2, 2 2, 2 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
INSERT INTO t1 VALUES("small", GeomFromText('POLYGON (( 0 0, 0 1, 1 1, 1 0, 0 0))'));
|
||||||
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
INSERT INTO t1 VALUES("big", GeomFromText('POLYGON (( 0 0, 0 3, 3 3, 3 0, 0 0))'));
|
||||||
|
@@ -8,7 +8,7 @@ ENGINE=NDB;
|
|||||||
ERROR HY000: Can't create table 'test.t1' (errno: 138)
|
ERROR HY000: Can't create table 'test.t1' (errno: 138)
|
||||||
SHOW WARNINGS;
|
SHOW WARNINGS;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1475 Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
|
Error 1476 Table storage engine 'ndbcluster' does not support the create option 'Row format FIXED incompatible with variable sized attribute'
|
||||||
Error 1005 Can't create table 'test.t1' (errno: 138)
|
Error 1005 Can't create table 'test.t1' (errno: 138)
|
||||||
CREATE TABLE t1
|
CREATE TABLE t1
|
||||||
( a INT KEY,
|
( a INT KEY,
|
||||||
|
@@ -11,7 +11,7 @@ ERROR HY000: Failed to create LOGFILE GROUP
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1525 Failed to create LOGFILE GROUP
|
Error 1526 Failed to create LOGFILE GROUP
|
||||||
create table t1 (a int key, b int unique, c int) engine ndb;
|
create table t1 (a int key, b int unique, c int) engine ndb;
|
||||||
CREATE LOGFILE GROUP lg1
|
CREATE LOGFILE GROUP lg1
|
||||||
ADD UNDOFILE 'undofile.dat'
|
ADD UNDOFILE 'undofile.dat'
|
||||||
@@ -27,14 +27,14 @@ ERROR HY000: Failed to create TABLESPACE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1525 Failed to create TABLESPACE
|
Error 1526 Failed to create TABLESPACE
|
||||||
DROP LOGFILE GROUP lg1
|
DROP LOGFILE GROUP lg1
|
||||||
ENGINE =NDB;
|
ENGINE =NDB;
|
||||||
ERROR HY000: Failed to drop LOGFILE GROUP
|
ERROR HY000: Failed to drop LOGFILE GROUP
|
||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1526 Failed to drop LOGFILE GROUP
|
Error 1527 Failed to drop LOGFILE GROUP
|
||||||
CREATE TABLESPACE ts1
|
CREATE TABLESPACE ts1
|
||||||
ADD DATAFILE 'datafile.dat'
|
ADD DATAFILE 'datafile.dat'
|
||||||
USE LOGFILE GROUP lg1
|
USE LOGFILE GROUP lg1
|
||||||
@@ -47,7 +47,7 @@ ERROR HY000: Failed to alter: DROP DATAFILE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1530 Failed to alter: DROP DATAFILE
|
Error 1531 Failed to alter: DROP DATAFILE
|
||||||
ALTER TABLESPACE ts1
|
ALTER TABLESPACE ts1
|
||||||
DROP DATAFILE 'datafile.dat'
|
DROP DATAFILE 'datafile.dat'
|
||||||
ENGINE NDB;
|
ENGINE NDB;
|
||||||
@@ -57,7 +57,7 @@ ERROR HY000: Failed to drop TABLESPACE
|
|||||||
show warnings;
|
show warnings;
|
||||||
Level Code Message
|
Level Code Message
|
||||||
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
Error 1296 Got error 299 'Operation not allowed or aborted due to single user mode' from NDB
|
||||||
Error 1526 Failed to drop TABLESPACE
|
Error 1527 Failed to drop TABLESPACE
|
||||||
DROP TABLESPACE ts1
|
DROP TABLESPACE ts1
|
||||||
ENGINE NDB;
|
ENGINE NDB;
|
||||||
DROP LOGFILE GROUP lg1
|
DROP LOGFILE GROUP lg1
|
||||||
|
@@ -333,11 +333,18 @@ ENGINE NDB;
|
|||||||
###
|
###
|
||||||
#
|
#
|
||||||
# bug#16341
|
# bug#16341
|
||||||
create table t1 (a int primary key) engine = myisam;
|
#create table t1 (a int primary key) engine = myisam;
|
||||||
|
# 2007-08-22 Jeb
|
||||||
|
# Removed the use of create table and manually
|
||||||
|
# created the file to cause failure due to
|
||||||
|
# inconsistant results on other OS
|
||||||
|
# see #bug30559
|
||||||
|
|
||||||
|
--exec touch $MYSQLTEST_VARDIR/tmp/t1.frm
|
||||||
|
|
||||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||||
--error ER_CREATE_FILEGROUP_FAILED
|
--error ER_CREATE_FILEGROUP_FAILED
|
||||||
--eval create logfile group lg1 add undofile '$MYSQLTEST_VARDIR/master-data/test/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;
|
--eval create logfile group lg1 add undofile '$MYSQLTEST_VARDIR/tmp/t1.frm' initial_size 1M undo_buffer_size = 1M engine=ndb;
|
||||||
|
|
||||||
create logfile group lg1
|
create logfile group lg1
|
||||||
add undofile 'undofile.dat'
|
add undofile 'undofile.dat'
|
||||||
@@ -347,7 +354,7 @@ engine=ndb;
|
|||||||
|
|
||||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||||
--error ER_CREATE_FILEGROUP_FAILED
|
--error ER_CREATE_FILEGROUP_FAILED
|
||||||
--eval create tablespace ts1 add datafile '$MYSQLTEST_VARDIR/master-data/test/t1.frm' use logfile group lg1 initial_size 1M engine ndb;
|
--eval create tablespace ts1 add datafile '$MYSQLTEST_VARDIR/tmp/t1.frm' use logfile group lg1 initial_size 1M engine ndb;
|
||||||
|
|
||||||
--error ER_DROP_FILEGROUP_FAILED
|
--error ER_DROP_FILEGROUP_FAILED
|
||||||
drop tablespace ts1
|
drop tablespace ts1
|
||||||
@@ -356,8 +363,8 @@ engine ndb;
|
|||||||
drop logfile group lg1
|
drop logfile group lg1
|
||||||
engine ndb;
|
engine ndb;
|
||||||
|
|
||||||
drop table t1;
|
#drop table t1;
|
||||||
|
--exec rm $MYSQLTEST_VARDIR/tmp/t1.frm
|
||||||
|
|
||||||
|
|
||||||
# End 5.1 test
|
# End 5.1 test
|
||||||
|
@@ -83,4 +83,4 @@ sync_slave_with_master;
|
|||||||
# will be created. You will need to go to the mysql-test dir and diff
|
# will be created. You will need to go to the mysql-test dir and diff
|
||||||
# the files your self to see what is not matching
|
# the files your self to see what is not matching
|
||||||
|
|
||||||
--exec diff $MYSQLTEST_VARDIR/tmp/rpl_switch_stm_row_mixed_master.sql $MYSQLTEST_VARDIR/tmp/rpl_switch_stm_row_mixed_slave.sql;
|
--exec diff $MYSQLTEST_VARDIR/tmp/rpl_switch_stm_row_mixed_master.sql $MYSQLTEST_VARDIR/tmp/rpl_switch_stm_row_mixed_slave.sql
|
||||||
|
@@ -51,7 +51,9 @@ DELETE FROM t2 WHERE a = 2;
|
|||||||
|
|
||||||
--echo
|
--echo
|
||||||
--echo ******************** LOAD DATA INFILE ********************
|
--echo ******************** LOAD DATA INFILE ********************
|
||||||
LOAD DATA INFILE '../../suite/rpl/data/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;
|
--exec cp ./suite/rpl/data/rpl_mixed.dat $MYSQLTEST_VARDIR/tmp/
|
||||||
|
LOAD DATA INFILE '../tmp/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;
|
||||||
|
--exec rm $MYSQLTEST_VARDIR/tmp/rpl_mixed.dat
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
--source suite/rpl/include/rpl_mixed_check_select.inc
|
--source suite/rpl/include/rpl_mixed_check_select.inc
|
||||||
--source suite/rpl/include/rpl_mixed_clear_tables.inc
|
--source suite/rpl/include/rpl_mixed_clear_tables.inc
|
||||||
|
@@ -33,6 +33,73 @@ a b c d e
|
|||||||
3 4 QA 2 TEST
|
3 4 QA 2 TEST
|
||||||
*** Drop t1 ***
|
*** Drop t1 ***
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
*** Create t2 on slave ***
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
|
||||||
|
d FLOAT DEFAULT '2.00',
|
||||||
|
e CHAR(5) DEFAULT 'TEST2')
|
||||||
|
ENGINE='InnoDB';
|
||||||
|
*** Create t2 on Master ***
|
||||||
|
CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
|
||||||
|
) ENGINE='InnoDB';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c
|
||||||
|
1 2 Kyle, TEX
|
||||||
|
2 1 JOE AUSTIN
|
||||||
|
3 4 QA TESTING
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c d e
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
*** Drop t2 ***
|
||||||
|
DROP TABLE t2;
|
||||||
*** Create t3 on slave ***
|
*** Create t3 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@@ -57,7 +124,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -69,10 +136,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -88,9 +155,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -119,7 +186,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -131,10 +198,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -150,9 +217,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -181,7 +248,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -193,10 +260,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -212,9 +279,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -242,7 +309,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -254,10 +321,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -273,9 +340,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@@ -354,7 +421,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -366,10 +433,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -385,9 +452,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -415,7 +482,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -427,10 +494,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -446,9 +513,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -605,7 +672,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -617,7 +684,7 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1060
|
Last_Errno 1060
|
||||||
@@ -636,8 +703,8 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1060
|
Last_SQL_Errno 1060
|
||||||
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
@@ -740,7 +807,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -752,10 +819,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -771,9 +838,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -33,6 +33,73 @@ a b c d e
|
|||||||
3 4 QA 2 TEST
|
3 4 QA 2 TEST
|
||||||
*** Drop t1 ***
|
*** Drop t1 ***
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
*** Create t2 on slave ***
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
|
||||||
|
d FLOAT DEFAULT '2.00',
|
||||||
|
e CHAR(5) DEFAULT 'TEST2')
|
||||||
|
ENGINE='MyISAM';
|
||||||
|
*** Create t2 on Master ***
|
||||||
|
CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
|
||||||
|
) ENGINE='MyISAM';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c
|
||||||
|
1 2 Kyle, TEX
|
||||||
|
2 1 JOE AUSTIN
|
||||||
|
3 4 QA TESTING
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c d e
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
*** Drop t2 ***
|
||||||
|
DROP TABLE t2;
|
||||||
*** Create t3 on slave ***
|
*** Create t3 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@@ -57,7 +124,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -69,10 +136,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -88,9 +155,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -119,7 +186,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -131,10 +198,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -150,9 +217,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -181,7 +248,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -193,10 +260,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -212,9 +279,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -242,7 +309,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -254,10 +321,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -273,9 +340,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@@ -354,7 +421,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -366,10 +433,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -385,9 +452,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -415,7 +482,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -427,10 +494,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -446,9 +513,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -605,7 +672,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -617,7 +684,7 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1060
|
Last_Errno 1060
|
||||||
@@ -636,8 +703,8 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1060
|
Last_SQL_Errno 1060
|
||||||
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
@@ -740,7 +807,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -752,10 +819,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -771,9 +838,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -44,7 +44,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1587
|
Last_Errno 1588
|
||||||
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -62,7 +62,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1587
|
Last_SQL_Errno 1588
|
||||||
Last_SQL_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
Last_SQL_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -103,7 +103,7 @@ DELETE FROM t1;
|
|||||||
DELETE FROM t2;
|
DELETE FROM t2;
|
||||||
|
|
||||||
******************** LOAD DATA INFILE ********************
|
******************** LOAD DATA INFILE ********************
|
||||||
LOAD DATA INFILE '../../suite/rpl/data/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;
|
LOAD DATA INFILE '../tmp/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
a b
|
a b
|
||||||
10 line A
|
10 line A
|
||||||
@@ -683,13 +683,13 @@ INSERT INTO t1 VALUES(1, 'test1');
|
|||||||
CREATE EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELETE FROM t1;
|
CREATE EVENT e1 ON SCHEDULE EVERY '1' SECOND COMMENT 'e_second_comment' DO DELETE FROM t1;
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
test_rpl e1 root@localhost SYSTEM RECURRING NULL 1 # # NULL ENABLED 1
|
test_rpl e1 root@localhost SYSTEM RECURRING NULL 1 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
==========SLAVE===========
|
==========SLAVE===========
|
||||||
USE test_rpl;
|
USE test_rpl;
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
test_rpl e1 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1
|
test_rpl e1 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@@ -743,13 +743,13 @@ a b
|
|||||||
ALTER EVENT e1 RENAME TO e2;
|
ALTER EVENT e1 RENAME TO e2;
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
test_rpl e2 root@localhost SYSTEM RECURRING NULL 1 # # NULL ENABLED 1
|
test_rpl e2 root@localhost SYSTEM RECURRING NULL 1 # # NULL ENABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
==========SLAVE===========
|
==========SLAVE===========
|
||||||
USE test_rpl;
|
USE test_rpl;
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
test_rpl e2 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1
|
test_rpl e2 @ SYSTEM RECURRING NULL 1 # # NULL SLAVESIDE_DISABLED 1 latin1 latin1_swedish_ci latin1_swedish_ci
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SELECT COUNT(*) FROM t1;
|
SELECT COUNT(*) FROM t1;
|
||||||
COUNT(*)
|
COUNT(*)
|
||||||
@@ -778,11 +778,11 @@ a b
|
|||||||
DROP EVENT e2;
|
DROP EVENT e2;
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
==========SLAVE===========
|
==========SLAVE===========
|
||||||
USE test_rpl;
|
USE test_rpl;
|
||||||
SHOW EVENTS;
|
SHOW EVENTS;
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
DELETE FROM t1;
|
DELETE FROM t1;
|
||||||
DELETE FROM t2;
|
DELETE FROM t2;
|
||||||
|
|
||||||
@@ -793,32 +793,32 @@ CREATE VIEW v1 AS SELECT * FROM t1 WHERE a = 1;
|
|||||||
CREATE VIEW v2 AS SELECT * FROM t1 WHERE b <> UUID();
|
CREATE VIEW v2 AS SELECT * FROM t1 WHERE b <> UUID();
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
View Create View
|
View Create View character_set_client collation_connection
|
||||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 1)
|
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 1) latin1 latin1_swedish_ci
|
||||||
SELECT * FROM v1;
|
SELECT * FROM v1;
|
||||||
a b
|
a b
|
||||||
1 test1
|
1 test1
|
||||||
==========SLAVE===========
|
==========SLAVE===========
|
||||||
USE test_rpl;
|
USE test_rpl;
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
View Create View
|
View Create View character_set_client collation_connection
|
||||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 1)
|
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 1) latin1 latin1_swedish_ci
|
||||||
SELECT * FROM v1;
|
SELECT * FROM v1;
|
||||||
a b
|
a b
|
||||||
1 test1
|
1 test1
|
||||||
ALTER VIEW v1 AS SELECT * FROM t1 WHERE a = 2;
|
ALTER VIEW v1 AS SELECT * FROM t1 WHERE a = 2;
|
||||||
==========MASTER==========
|
==========MASTER==========
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
View Create View
|
View Create View character_set_client collation_connection
|
||||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 2)
|
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 2) latin1 latin1_swedish_ci
|
||||||
SELECT * FROM v1;
|
SELECT * FROM v1;
|
||||||
a b
|
a b
|
||||||
2 test2
|
2 test2
|
||||||
==========SLAVE===========
|
==========SLAVE===========
|
||||||
USE test_rpl;
|
USE test_rpl;
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
View Create View
|
View Create View character_set_client collation_connection
|
||||||
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 2)
|
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`a` AS `a`,`t1`.`b` AS `b` from `t1` where (`t1`.`a` = 2) latin1 latin1_swedish_ci
|
||||||
SELECT * FROM v1;
|
SELECT * FROM v1;
|
||||||
a b
|
a b
|
||||||
2 test2
|
2 test2
|
||||||
@@ -868,7 +868,7 @@ master-bin.000001 # Xid 1 # #
|
|||||||
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
|
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
master-bin.000001 # Begin_load_query 1 # ;file_id=1;block_len=30
|
master-bin.000001 # Begin_load_query 1 # ;file_id=1;block_len=30
|
||||||
master-bin.000001 # Execute_load_query 1 # use `test_rpl`; LOAD DATA INFILE '../../suite/rpl/data/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;file_id=1
|
master-bin.000001 # Execute_load_query 1 # use `test_rpl`; LOAD DATA INFILE '../tmp/rpl_mixed.dat' INTO TABLE t1 FIELDS TERMINATED BY '|' ;file_id=1
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t1
|
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t1
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
@@ -1004,9 +1004,7 @@ master-bin.000001 # Table_map 1 # table_id: # (test_rpl.t2)
|
|||||||
master-bin.000001 # Write_rows 1 # table_id: #
|
master-bin.000001 # Write_rows 1 # table_id: #
|
||||||
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
|
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
master-bin.000001 # Table_map 1 # table_id: # (test_rpl.t1)
|
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t1
|
||||||
master-bin.000001 # Table_map 1 # table_id: # (test_rpl.t2)
|
|
||||||
master-bin.000001 # Delete_rows 1 # table_id: # flags: STMT_END_F
|
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
|
master-bin.000001 # Query 1 # use `test_rpl`; DELETE FROM t2
|
||||||
master-bin.000001 # Xid 1 # #
|
master-bin.000001 # Xid 1 # #
|
||||||
|
@@ -65,7 +65,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table #
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1590
|
Last_Errno 1591
|
||||||
Last_Error Fatal error: Not enough memory
|
Last_Error Fatal error: Not enough memory
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos 325
|
Exec_Master_Log_Pos 325
|
||||||
@@ -83,7 +83,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno #
|
Last_IO_Errno #
|
||||||
Last_IO_Error #
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1590
|
Last_SQL_Errno 1591
|
||||||
Last_SQL_Error Fatal error: Not enough memory
|
Last_SQL_Error Fatal error: Not enough memory
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
754
mysql-test/suite/rpl/r/rpl_row_colSize.result
Normal file
754
mysql-test/suite/rpl/r/rpl_row_colSize.result
Normal file
@@ -0,0 +1,754 @@
|
|||||||
|
stop slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
reset master;
|
||||||
|
reset slave;
|
||||||
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
start slave;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
**** Testing WL#3228 changes. ****
|
||||||
|
*** Create "wider" table on slave ***
|
||||||
|
Checking MYSQL_TYPE_NEWDECIMAL fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
Warnings:
|
||||||
|
Note 1051 Unknown table 't1'
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a DECIMAL(5,2));
|
||||||
|
CREATE TABLE t1 (a DECIMAL(20, 10));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a DECIMAL(27, 9));
|
||||||
|
CREATE TABLE t1 (a DECIMAL(27, 18));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a NUMERIC(5,2));
|
||||||
|
CREATE TABLE t1 (a NUMERIC(20, 10));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_FLOAT fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a FLOAT(20));
|
||||||
|
CREATE TABLE t1 (a FLOAT(47));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_BIT fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a BIT(5));
|
||||||
|
CREATE TABLE t1 (a BIT(64));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (B'10101');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a BIT(11));
|
||||||
|
CREATE TABLE t1 (a BIT(12));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES (B'10101');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_SET fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a SET('4'));
|
||||||
|
CREATE TABLE t1 (a SET('1','2','3','4','5','6','7','8','9'));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('4');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_STRING fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a CHAR(10));
|
||||||
|
CREATE TABLE t1 (a CHAR(20));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_ENUM fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a ENUM('44','54'));
|
||||||
|
CREATE TABLE t1 (a ENUM(
|
||||||
|
'01','02','03','04','05','06','07','08','09',
|
||||||
|
'11','12','13','14','15','16','17','18','19',
|
||||||
|
'21','22','23','24','25','26','27','28','29',
|
||||||
|
'31','32','33','34','35','36','37','38','39',
|
||||||
|
'41','42','43','44','45','46','47','48','49',
|
||||||
|
'51','52','53','54','55','56','57','58','59',
|
||||||
|
'61','62','63','64','65','66','67','68','69',
|
||||||
|
'71','72','73','74','75','76','77','78','79',
|
||||||
|
'81','82','83','84','85','86','87','88','89',
|
||||||
|
'91','92','93','94','95','96','97','98','99',
|
||||||
|
'101','102','103','104','105','106','107','108','109',
|
||||||
|
'111','112','113','114','115','116','117','118','119',
|
||||||
|
'121','122','123','124','125','126','127','128','129',
|
||||||
|
'131','132','133','134','135','136','137','138','139',
|
||||||
|
'141','142','143','144','145','146','147','148','149',
|
||||||
|
'151','152','153','154','155','156','157','158','159',
|
||||||
|
'161','162','163','164','165','166','167','168','169',
|
||||||
|
'171','172','173','174','175','176','177','178','179',
|
||||||
|
'181','182','183','184','185','186','187','188','189',
|
||||||
|
'191','192','193','194','195','196','197','198','199',
|
||||||
|
'201','202','203','204','205','206','207','208','209',
|
||||||
|
'211','212','213','214','215','216','217','218','219',
|
||||||
|
'221','222','223','224','225','226','227','228','229',
|
||||||
|
'231','232','233','234','235','236','237','238','239',
|
||||||
|
'241','242','243','244','245','246','247','248','249',
|
||||||
|
'251','252','253','254','255','256','257','258','259',
|
||||||
|
'261','262','263','264','265','266','267','268','269',
|
||||||
|
'271','272','273','274','275','276','277','278','279',
|
||||||
|
'281','282','283','284','285','286','287','288','289',
|
||||||
|
'291','292','293','294','295','296','297','298','299'
|
||||||
|
));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('44');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_VARCHAR fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a VARCHAR(100));
|
||||||
|
CREATE TABLE t1 (a VARCHAR(2000));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a VARCHAR(10));
|
||||||
|
CREATE TABLE t1 (a VARCHAR(200));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a VARCHAR(1000));
|
||||||
|
CREATE TABLE t1 (a VARCHAR(2000));
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
Checking MYSQL_TYPE_BLOB fields
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t1 (a TINYBLOB);
|
||||||
|
CREATE TABLE t1 (a LONGBLOB);
|
||||||
|
RESET MASTER;
|
||||||
|
INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||||
|
SELECT COUNT(*) FROM t1;
|
||||||
|
COUNT(*)
|
||||||
|
0
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
*** Cleanup ***
|
||||||
|
DROP TABLE IF EXISTS t1;
|
@@ -214,7 +214,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -232,7 +232,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -257,7 +257,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -275,7 +275,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -300,7 +300,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -318,7 +318,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -214,7 +214,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -232,7 +232,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 3, test.t4 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -257,7 +257,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -275,7 +275,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 1 type mismatch - received type 3, test.t5 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -300,7 +300,7 @@ Replicate_Do_Table
|
|||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -318,7 +318,7 @@ Seconds_Behind_Master #
|
|||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno 0
|
||||||
Last_IO_Error
|
Last_IO_Error
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 3, test.t6 has type 4
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
@@ -105,3 +105,21 @@ t n
|
|||||||
2005-01-01 08:00:00 17
|
2005-01-01 08:00:00 17
|
||||||
drop table t1, t2;
|
drop table t1, t2;
|
||||||
set global time_zone= @my_time_zone;
|
set global time_zone= @my_time_zone;
|
||||||
|
End of 4.1 tests
|
||||||
|
CREATE TABLE t1 (a INT, b TIMESTAMP);
|
||||||
|
INSERT INTO t1 VALUES (1, NOW());
|
||||||
|
SET @@session.time_zone='Japan';
|
||||||
|
UPDATE t1 SET b= '1970-01-01 08:59:59' WHERE a= 1;
|
||||||
|
Warnings:
|
||||||
|
Warning 1264 Out of range value for column 'b' at row 1
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
a b
|
||||||
|
1 0000-00-00 00:00:00
|
||||||
|
SET @@session.time_zone='Japan';
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
a b
|
||||||
|
1 0000-00-00 00:00:00
|
||||||
|
SET @@session.time_zone = default;
|
||||||
|
DROP TABLE t1;
|
||||||
|
SET @@session.time_zone = default;
|
||||||
|
End of 5.0 tests
|
||||||
|
@@ -182,19 +182,19 @@ CREATE TABLE t1(sum INT, price FLOAT(24)) ENGINE=MyISAM;
|
|||||||
affected rows: 0
|
affected rows: 0
|
||||||
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
|
INSERT INTO t1 VALUES(myfunc_int(100), myfunc_double(50.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1589 Statement is not safe to log in statement format.
|
Warning 1590 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
|
INSERT INTO t1 VALUES(myfunc_int(10), myfunc_double(5.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1589 Statement is not safe to log in statement format.
|
Warning 1590 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
|
INSERT INTO t1 VALUES(myfunc_int(200), myfunc_double(25.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1589 Statement is not safe to log in statement format.
|
Warning 1590 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
|
INSERT INTO t1 VALUES(myfunc_int(1), myfunc_double(500.00));
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1589 Statement is not safe to log in statement format.
|
Warning 1590 Statement is not safe to log in statement format.
|
||||||
affected rows: 1
|
affected rows: 1
|
||||||
SELECT * FROM t1 ORDER BY sum;
|
SELECT * FROM t1 ORDER BY sum;
|
||||||
sum price
|
sum price
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
rpl_ddl : BUG#26418 2007-03-01 mleich Slave out of sync after CREATE/DROP TEMPORARY TABLE + ROLLBACK on master
|
rpl_ddl : BUG#26418 2007-03-01 mleich Slave out of sync after CREATE/DROP TEMPORARY TABLE + ROLLBACK on master
|
||||||
rpl_innodb_mixed_ddl : Bug #29363 rpl.rpl_innodb_mixed_* test failures
|
#rpl_innodb_mixed_ddl : Bug #29363 rpl.rpl_innodb_mixed_* test failures
|
||||||
rpl_innodb_mixed_dml : Bug #29363 rpl.rpl_innodb_mixed_* test failures
|
rpl_innodb_mixed_dml : Bug #29363 rpl.rpl_innodb_mixed_* test failures
|
||||||
rpl_invoked_features : BUG#29020 2007-06-21 Lars Non-deterministic test case
|
rpl_invoked_features : BUG#29020 2007-06-21 Lars Non-deterministic test case
|
||||||
rpl_auto_increment_11932 : Bug#29809 2007-07-16 ingo Slave SQL errors in warnings file
|
rpl_auto_increment_11932 : Bug#29809 2007-07-16 ingo Slave SQL errors in warnings file
|
||||||
|
@@ -68,6 +68,7 @@ INSERT INTO `t1`(`f1`) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
|
|||||||
# The slave I/O thread must stop after trying to read the above event
|
# The slave I/O thread must stop after trying to read the above event
|
||||||
connection slave;
|
connection slave;
|
||||||
sleep 2;
|
sleep 2;
|
||||||
|
--source include/wait_for_slave_io_to_stop.inc
|
||||||
SHOW STATUS LIKE 'Slave_running';
|
SHOW STATUS LIKE 'Slave_running';
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
|
@@ -14,6 +14,22 @@ connection slave;
|
|||||||
reset slave;
|
reset slave;
|
||||||
start slave io_thread;
|
start slave io_thread;
|
||||||
# Give the I/O thread time to block.
|
# Give the I/O thread time to block.
|
||||||
|
let $run= 1;
|
||||||
|
let $counter= 300;
|
||||||
|
while ($run)
|
||||||
|
{
|
||||||
|
let $io_state= query_get_value("SHOW SLAVE STATUS", Slave_IO_State, 1);
|
||||||
|
if (`SELECT '$io_state' = 'Waiting for the slave SQL thread to free enough relay log space'`){
|
||||||
|
let $run= 0;
|
||||||
|
}
|
||||||
|
sleep 0.1;
|
||||||
|
if (!$counter){
|
||||||
|
--echo "Failed while waiting for slave IO thread block"
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
dec $counter;
|
||||||
|
}
|
||||||
sleep 2;
|
sleep 2;
|
||||||
# A bug caused the I/O thread to refuse stopping.
|
# A bug caused the I/O thread to refuse stopping.
|
||||||
stop slave io_thread;
|
stop slave io_thread;
|
||||||
|
168
mysql-test/suite/rpl/t/rpl_row_colSize.test
Normal file
168
mysql-test/suite/rpl/t/rpl_row_colSize.test
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
##################################################################
|
||||||
|
# rpl_colSize #
|
||||||
|
# #
|
||||||
|
# This test is designed to test the changes included in WL#3228. #
|
||||||
|
# The changes include the ability to replicate with the master #
|
||||||
|
# having columns that are smaller (shorter) than the slave. #
|
||||||
|
##################################################################
|
||||||
|
|
||||||
|
-- source include/master-slave.inc
|
||||||
|
-- source include/have_binlog_format_row.inc
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
|
||||||
|
--echo **** Testing WL#3228 changes. ****
|
||||||
|
--echo *** Create "wider" table on slave ***
|
||||||
|
sync_slave_with_master;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check each column type to verify error 1532 fires (BUG#22086)
|
||||||
|
# This check covers only those fields that require additional
|
||||||
|
# metadata from the master to be replicated to the slave. These
|
||||||
|
# field types are:
|
||||||
|
# MYSQL_TYPE_NEWDECIMAL:
|
||||||
|
# MYSQL_TYPE_FLOAT:
|
||||||
|
# MYSQL_TYPE_BIT:
|
||||||
|
# MYSQL_TYPE_SET:
|
||||||
|
# MYSQL_TYPE_STRING:
|
||||||
|
# MYSQL_TYPE_ENUM:
|
||||||
|
# MYSQL_TYPE_VARCHAR:
|
||||||
|
# MYSQL_TYPE_BLOB:
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_NEWDECIMAL fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_NEWDECIMAL fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a DECIMAL(20, 10));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a DECIMAL(5,2));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a DECIMAL(27, 18));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a DECIMAL(27, 9));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a NUMERIC(20, 10));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a NUMERIC(5,2));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_FLOAT fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_FLOAT fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a FLOAT(47));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a FLOAT(20));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (901251.90125);
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_BIT fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_BIT fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a BIT(64));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a BIT(5));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (B'10101');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a BIT(12));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a BIT(11));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES (B'10101');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_SET fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_SET fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a SET('1','2','3','4','5','6','7','8','9'));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a SET('4'));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('4');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_STRING fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_STRING fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a CHAR(20));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a CHAR(10));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_ENUM fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_ENUM fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a ENUM(
|
||||||
|
'01','02','03','04','05','06','07','08','09',
|
||||||
|
'11','12','13','14','15','16','17','18','19',
|
||||||
|
'21','22','23','24','25','26','27','28','29',
|
||||||
|
'31','32','33','34','35','36','37','38','39',
|
||||||
|
'41','42','43','44','45','46','47','48','49',
|
||||||
|
'51','52','53','54','55','56','57','58','59',
|
||||||
|
'61','62','63','64','65','66','67','68','69',
|
||||||
|
'71','72','73','74','75','76','77','78','79',
|
||||||
|
'81','82','83','84','85','86','87','88','89',
|
||||||
|
'91','92','93','94','95','96','97','98','99',
|
||||||
|
'101','102','103','104','105','106','107','108','109',
|
||||||
|
'111','112','113','114','115','116','117','118','119',
|
||||||
|
'121','122','123','124','125','126','127','128','129',
|
||||||
|
'131','132','133','134','135','136','137','138','139',
|
||||||
|
'141','142','143','144','145','146','147','148','149',
|
||||||
|
'151','152','153','154','155','156','157','158','159',
|
||||||
|
'161','162','163','164','165','166','167','168','169',
|
||||||
|
'171','172','173','174','175','176','177','178','179',
|
||||||
|
'181','182','183','184','185','186','187','188','189',
|
||||||
|
'191','192','193','194','195','196','197','198','199',
|
||||||
|
'201','202','203','204','205','206','207','208','209',
|
||||||
|
'211','212','213','214','215','216','217','218','219',
|
||||||
|
'221','222','223','224','225','226','227','228','229',
|
||||||
|
'231','232','233','234','235','236','237','238','239',
|
||||||
|
'241','242','243','244','245','246','247','248','249',
|
||||||
|
'251','252','253','254','255','256','257','258','259',
|
||||||
|
'261','262','263','264','265','266','267','268','269',
|
||||||
|
'271','272','273','274','275','276','277','278','279',
|
||||||
|
'281','282','283','284','285','286','287','288','289',
|
||||||
|
'291','292','293','294','295','296','297','298','299'
|
||||||
|
));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a ENUM('44','54'));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('44');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_VARCHAR fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_VARCHAR fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a VARCHAR(2000));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a VARCHAR(100));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a VARCHAR(200));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a VARCHAR(10));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a VARCHAR(2000));
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a VARCHAR(1000));
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test: Checking MYSQL_TYPE_BLOB fields
|
||||||
|
#
|
||||||
|
--echo Checking MYSQL_TYPE_BLOB fields
|
||||||
|
let $test_table_master = CREATE TABLE t1 (a LONGBLOB);
|
||||||
|
let $test_table_slave = CREATE TABLE t1 (a TINYBLOB);
|
||||||
|
let $test_insert = INSERT INTO t1 VALUES ('This is a test.');
|
||||||
|
source include/test_fieldsize.inc;
|
||||||
|
|
||||||
|
--echo *** Cleanup ***
|
||||||
|
connection master;
|
||||||
|
DROP TABLE IF EXISTS t1;
|
||||||
|
sync_slave_with_master;
|
||||||
|
# END 5.1 Test Case
|
||||||
|
|
@@ -140,3 +140,30 @@ sync_slave_with_master;
|
|||||||
# Restore original timezone
|
# Restore original timezone
|
||||||
connection master;
|
connection master;
|
||||||
set global time_zone= @my_time_zone;
|
set global time_zone= @my_time_zone;
|
||||||
|
|
||||||
|
--echo End of 4.1 tests
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #29536: timestamp inconsistent in replication around 1970
|
||||||
|
#
|
||||||
|
connection master;
|
||||||
|
|
||||||
|
CREATE TABLE t1 (a INT, b TIMESTAMP);
|
||||||
|
INSERT INTO t1 VALUES (1, NOW());
|
||||||
|
|
||||||
|
SET @@session.time_zone='Japan';
|
||||||
|
UPDATE t1 SET b= '1970-01-01 08:59:59' WHERE a= 1;
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
|
||||||
|
sync_slave_with_master;
|
||||||
|
SET @@session.time_zone='Japan';
|
||||||
|
# must procdure the same result as the SELECT on the master
|
||||||
|
SELECT * FROM t1 ORDER BY a;
|
||||||
|
|
||||||
|
SET @@session.time_zone = default;
|
||||||
|
connection master;
|
||||||
|
DROP TABLE t1;
|
||||||
|
SET @@session.time_zone = default;
|
||||||
|
|
||||||
|
|
||||||
|
--echo End of 5.0 tests
|
||||||
|
@@ -33,6 +33,73 @@ a b c d e
|
|||||||
3 4 QA NULL NULL
|
3 4 QA NULL NULL
|
||||||
*** Drop t1 ***
|
*** Drop t1 ***
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
*** Create t2 on slave ***
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t2 (a INT, b INT PRIMARY KEY, c CHAR(5),
|
||||||
|
d FLOAT DEFAULT '2.00',
|
||||||
|
e CHAR(5) DEFAULT 'TEST2')
|
||||||
|
ENGINE='NDB';
|
||||||
|
*** Create t2 on Master ***
|
||||||
|
CREATE TABLE t2 (a INT PRIMARY KEY, b INT, c CHAR(10)
|
||||||
|
) ENGINE='NDB';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
INSERT INTO t2 () VALUES(1,2,'Kyle, TEX'),(2,1,'JOE AUSTIN'),(3,4,'QA TESTING');
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c
|
||||||
|
1 2 Kyle, TEX
|
||||||
|
2 1 JOE AUSTIN
|
||||||
|
3 4 QA TESTING
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1533
|
||||||
|
Last_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1533
|
||||||
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
SELECT * FROM t2 ORDER BY a;
|
||||||
|
a b c d e
|
||||||
|
RESET MASTER;
|
||||||
|
START SLAVE;
|
||||||
|
*** Drop t2 ***
|
||||||
|
DROP TABLE t2;
|
||||||
*** Create t3 on slave ***
|
*** Create t3 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
@@ -57,7 +124,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -69,10 +136,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -88,9 +155,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -119,7 +186,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -131,10 +198,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -150,9 +217,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -181,7 +248,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -193,10 +260,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -212,9 +279,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -242,7 +309,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -254,10 +321,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -273,9 +340,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||||
*** Drop t6 ***
|
*** Drop t6 ***
|
||||||
@@ -354,7 +421,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -366,10 +433,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -385,9 +452,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -415,7 +482,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -427,10 +494,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -446,9 +513,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
@@ -605,7 +672,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -617,7 +684,7 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1060
|
Last_Errno 1060
|
||||||
@@ -636,8 +703,8 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1060
|
Last_SQL_Errno 1060
|
||||||
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
@@ -741,7 +808,7 @@ SHOW SLAVE STATUS;
|
|||||||
Slave_IO_State #
|
Slave_IO_State #
|
||||||
Master_Host 127.0.0.1
|
Master_Host 127.0.0.1
|
||||||
Master_User root
|
Master_User root
|
||||||
Master_Port MASTER_PORT
|
Master_Port #
|
||||||
Connect_Retry 1
|
Connect_Retry 1
|
||||||
Master_Log_File master-bin.000001
|
Master_Log_File master-bin.000001
|
||||||
Read_Master_Log_Pos #
|
Read_Master_Log_Pos #
|
||||||
@@ -753,10 +820,10 @@ Slave_SQL_Running No
|
|||||||
Replicate_Do_DB
|
Replicate_Do_DB
|
||||||
Replicate_Ignore_DB
|
Replicate_Ignore_DB
|
||||||
Replicate_Do_Table
|
Replicate_Do_Table
|
||||||
Replicate_Ignore_Table
|
Replicate_Ignore_Table #
|
||||||
Replicate_Wild_Do_Table
|
Replicate_Wild_Do_Table
|
||||||
Replicate_Wild_Ignore_Table
|
Replicate_Wild_Ignore_Table
|
||||||
Last_Errno 1532
|
Last_Errno 1533
|
||||||
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
Skip_Counter 0
|
Skip_Counter 0
|
||||||
Exec_Master_Log_Pos #
|
Exec_Master_Log_Pos #
|
||||||
@@ -772,9 +839,9 @@ Master_SSL_Cipher
|
|||||||
Master_SSL_Key
|
Master_SSL_Key
|
||||||
Seconds_Behind_Master #
|
Seconds_Behind_Master #
|
||||||
Master_SSL_Verify_Server_Cert No
|
Master_SSL_Verify_Server_Cert No
|
||||||
Last_IO_Errno 0
|
Last_IO_Errno #
|
||||||
Last_IO_Error
|
Last_IO_Error #
|
||||||
Last_SQL_Errno 1532
|
Last_SQL_Errno 1533
|
||||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
START SLAVE;
|
START SLAVE;
|
||||||
|
13
mysql-test/t/ctype_ascii.test
Normal file
13
mysql-test/t/ctype_ascii.test
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# Bug #27562: ascii.xml invalid?
|
||||||
|
#
|
||||||
|
set names ascii;
|
||||||
|
select 'e'='`';
|
||||||
|
select 'y'='~';
|
||||||
|
create table t1 (a char(1) character set ascii);
|
||||||
|
insert into t1 (a) values (' '), ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h'), ('i'), ('j'), ('k'), ('l'), ('m'), ('n'), ('o'), ('p'), ('q'), ('r'), ('s'), ('t'), ('u'), ('v'), ('w'), ('x'), ('y'), ('z'), ('A'), ('B'), ('C'), ('D'), ('E'), ('F'), ('G'), ('H'), ('I'), ('J'), ('K'), ('L'), ('M'), ('N'), ('O'), ('P'), ('Q'), ('R'), ('S'), ('T'), ('U'), ('V'), ('W'), ('X'), ('Y'), ('Z'), ('!'), ('@'), ('#'), ('$'), ('%'), ('^'), ('&'), ('*'), ('('), (')'), ('_'), ('+'), ('`'), ('~'), ('1'), ('2'), ('3'), ('4'), ('5'), ('6'), ('7'), ('8'), ('9'), ('0'), ('['), (']'), ('\\'), ('|'), ('}'), ('{'), ('"'), (':'), (''''), (';'), ('/'), ('.'), (','), ('?'), ('>'), ('<'), ('\n'), ('\t'), ('\a'), ('\f'), ('\v');
|
||||||
|
select t1a.a, t1b.a from t1 as t1a, t1 as t1b where t1a.a=t1b.a order by binary t1a.a, binary t1b.a;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
--echo End of 5.0 tests.
|
@@ -152,6 +152,16 @@ select * from t1 where a=_latin1'
|
|||||||
drop table t1;
|
drop table t1;
|
||||||
set names latin1;
|
set names latin1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test the same with ascii
|
||||||
|
#
|
||||||
|
set names ascii;
|
||||||
|
create table t1 (a char(1) character set latin1);
|
||||||
|
insert into t1 values ('a');
|
||||||
|
select * from t1 where a='a';
|
||||||
|
drop table t1;
|
||||||
|
set names latin1;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug#10446 Illegal mix of collations
|
# Bug#10446 Illegal mix of collations
|
||||||
#
|
#
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user