Merge lp:~tsarev/percona-server/5.5_bug_838725_fix into lp:percona-server/5.5

Proposed by Oleg Tsarev
Status: Merged
Merged at revision: 159
Proposed branch: lp:~tsarev/percona-server/5.5_bug_838725_fix
Merge into: lp:percona-server/5.5
Diff against target: 18162 lines (+8788/-8504)
158 files modified
Makefile (+1/-4)
install_tests (+0/-37)
mysql-test/have_response_time_distribution.inc (+0/-4)
mysql-test/have_response_time_distribution.require (+0/-2)
mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result (+0/-28)
mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test (+0/-61)
mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt (+0/-1)
mysql-test/log_connection_error.patch/percona_log_connection_error.result (+0/-15)
mysql-test/log_connection_error.patch/percona_log_connection_error.test (+0/-54)
mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt (+0/-1)
mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result (+0/-31)
mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test (+0/-47)
mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result (+0/-952)
mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test (+0/-642)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result (+0/-14)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test (+0/-19)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result (+0/-132)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test (+0/-16)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result (+0/-58)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test (+0/-64)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result (+0/-12)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test (+0/-15)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result (+0/-12)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test (+0/-15)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result (+0/-15)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test (+0/-19)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result (+0/-9)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test (+0/-15)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result (+0/-19)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test (+0/-19)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result (+0/-18)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test (+0/-20)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result (+0/-7)
mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test (+0/-14)
mysql-test/memory_dynamic_rows.patch/percona_heap_var.result (+0/-194)
mysql-test/memory_dynamic_rows.patch/percona_heap_var.test (+0/-85)
mysql-test/percona_innodb_buffer_pool_shm-master.opt (+0/-1)
mysql-test/percona_innodb_buffer_pool_shm.result (+0/-4)
mysql-test/percona_innodb_buffer_pool_shm.test (+0/-2)
mysql-test/percona_innodb_doublewrite_file-master.opt (+0/-1)
mysql-test/percona_innodb_doublewrite_file.result (+0/-4)
mysql-test/percona_innodb_doublewrite_file.test (+0/-2)
mysql-test/percona_innodb_use_sys_stats_table-master.opt (+0/-1)
mysql-test/percona_innodb_use_sys_stats_table.result (+0/-3)
mysql-test/percona_innodb_use_sys_stats_table.test (+0/-2)
mysql-test/percona_server_variables.inc (+0/-3)
mysql-test/percona_server_variables_debug.result (+0/-372)
mysql-test/percona_server_variables_debug.test (+0/-2)
mysql-test/percona_server_variables_release.result (+0/-369)
mysql-test/percona_server_variables_release.test (+0/-2)
mysql-test/percona_show_temp_tables.result (+0/-58)
mysql-test/percona_show_temp_tables.test (+0/-65)
mysql-test/percona_xtradb_admin_command.result (+0/-6)
mysql-test/percona_xtradb_admin_command.test (+0/-3)
mysql-test/percona_xtradb_bug317074.result (+0/-5)
mysql-test/percona_xtradb_bug317074.test (+0/-47)
mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result (+0/-70)
mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test (+0/-79)
mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc (+0/-7)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc (+0/-95)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup (+0/-88)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result (+0/-866)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.test (+0/-5)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_begin.inc (+0/-12)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_clear.inc (+0/-5)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_crash.result (+0/-21)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_crash.test (+0/-22)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_disable.result (+0/-865)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_disable.test (+0/-3)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_end.inc (+0/-3)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_eval.inc (+0/-7)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_prepared_statements.result (+0/-396)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_prepared_statements.test (+0/-208)
mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments_show.inc (+0/-8)
mysql-test/query_cache_enhance.patch/percona_status_wait_query_cache_mutex.result (+0/-23)
mysql-test/query_cache_enhance.patch/percona_status_wait_query_cache_mutex.test (+0/-31)
mysql-test/response_time_distribution.patch/percona_query_response_time-replication.result (+0/-66)
mysql-test/response_time_distribution.patch/percona_query_response_time-replication.test (+0/-61)
mysql-test/response_time_distribution.patch/percona_query_response_time-stored.result (+0/-306)
mysql-test/response_time_distribution.patch/percona_query_response_time-stored.test (+0/-85)
mysql-test/response_time_distribution.patch/percona_query_response_time.result (+0/-377)
mysql-test/response_time_distribution.patch/percona_query_response_time.test (+0/-71)
mysql-test/response_time_distribution.patch/percona_query_response_time_flush.inc (+0/-1)
mysql-test/response_time_distribution.patch/percona_query_response_time_show.inc (+0/-8)
mysql-test/response_time_distribution.patch/percona_query_response_time_sleep.inc (+0/-19)
mysql-test/show_slave_status_nolock.patch/percona_show_slave_status_nolock.result (+0/-21)
mysql-test/show_slave_status_nolock.patch/percona_show_slave_status_nolock.test (+0/-53)
mysql-test/slow_extended.patch/grep.inc (+0/-16)
mysql-test/slow_extended.patch/percona_bug643149.result (+0/-21)
mysql-test/slow_extended.patch/percona_bug643149.test (+0/-49)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_filter-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_filter.result (+0/-25)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_filter.test (+0/-32)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_sp_statements-cl-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_sp_statements-cl.result (+0/-3)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_sp_statements-cl.test (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity-cl-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity-cl.result (+0/-9)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity-cl.test (+0/-3)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity.result (+0/-9)
mysql-test/slow_extended.patch/percona_slow_extended-log_slow_verbosity.test (+0/-12)
mysql-test/slow_extended.patch/percona_slow_extended-long_query_time-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-long_query_time.result (+0/-24)
mysql-test/slow_extended.patch/percona_slow_extended-long_query_time.test (+0/-23)
mysql-test/slow_extended.patch/percona_slow_extended-microseconds_in_slow_extended-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-microseconds_in_slow_extended.result (+0/-13)
mysql-test/slow_extended.patch/percona_slow_extended-microseconds_in_slow_extended.test (+0/-23)
mysql-test/slow_extended.patch/percona_slow_extended-min_examined_row_limit-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-min_examined_row_limit.result (+0/-25)
mysql-test/slow_extended.patch/percona_slow_extended-min_examined_row_limit.test (+0/-32)
mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats-slave.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats.result (+0/-22)
mysql-test/slow_extended.patch/percona_slow_extended-slave_innodb_stats.test (+0/-51)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time-slave.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time.result (+0/-89)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-and-use_global_long_query_time.test (+0/-107)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements-slave.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements.result (+0/-94)
mysql-test/slow_extended.patch/percona_slow_extended-slave_statements.test (+0/-133)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_microseconds_timestamp-cl-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_microseconds_timestamp-cl.result (+0/-3)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_microseconds_timestamp-cl.test (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_timestamp_always-cl-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_timestamp_always-cl.result (+0/-3)
mysql-test/slow_extended.patch/percona_slow_extended-slow_query_log_timestamp_always-cl.test (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_control-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_control.result (+0/-12)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_control.test (+0/-12)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_long_query_time-master.opt (+0/-1)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_long_query_time.result (+0/-46)
mysql-test/slow_extended.patch/percona_slow_extended-use_global_long_query_time.test (+0/-40)
mysql-test/sql_no_fcache.patch/percona_sql_no_fcache.result (+0/-12)
mysql-test/sql_no_fcache.patch/percona_sql_no_fcache.test (+0/-11)
mysql-test/userstat_bug602047.result (+0/-15)
mysql-test/userstat_bug602047.test (+0/-11)
patches/innodb_admin_command_base.patch (+15/-0)
patches/innodb_buffer_pool_shm.patch (+16/-0)
patches/innodb_deadlock_count.patch (+95/-0)
patches/innodb_separate_doublewrite.patch (+16/-0)
patches/innodb_show_sys_tables.patch (+15/-0)
patches/log_connection_error.patch (+79/-0)
patches/log_warnings_suppress.patch (+88/-0)
patches/memory_dynamic_rows.patch (+2458/-0)
patches/mysql-test.diff (+763/-0)
patches/processlist_row_stats.patch (+165/-0)
patches/query_cache_enhance.patch (+2618/-0)
patches/response_time_distribution.patch (+1033/-0)
patches/series (+1/-0)
patches/show_slave_status_nolock.patch (+81/-0)
patches/show_temp.patch (+129/-0)
patches/slow_extended.patch (+1095/-0)
patches/sql_no_fcache.patch (+29/-0)
patches/userstat.patch (+33/-0)
patches/xtradb_bug317074.patch (+58/-0)
To merge this branch: bzr merge lp:~tsarev/percona-server/5.5_bug_838725_fix
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+73945@code.launchpad.net

This proposal supersedes a proposal from 2011-09-03.

Description of the change

1) move tests from mysql-test/ to patches
2) remove install_tests script and call of script from Makefile

To post a comment you must log in.
Revision history for this message
Oleg Tsarev (tsarev) wrote :

I checked by
bzr update -r 158 && make all && mv Percona-Server-*-* 158
bzr update -r 159 && make all && mv Percona-Server-*-* 159
diff -ruN 158 159

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2011-08-22 17:26:45 +0000
+++ Makefile 2011-09-03 15:21:28 +0000
@@ -22,7 +22,7 @@
22REVS = $(shell bzr log | grep rev | head -1 )22REVS = $(shell bzr log | grep rev | head -1 )
23REV = $(word 2, $(REVS) )23REV = $(word 2, $(REVS) )
2424
25all: main handlersocket maatkit-udf install-lic tests misc25all: main handlersocket maatkit-udf install-lic misc
26 @echo ""26 @echo ""
27 @echo "Percona Server source code is ready"27 @echo "Percona Server source code is ready"
28 @echo "Now change directory to $(PERCONA_SERVER) define variables as show below"28 @echo "Now change directory to $(PERCONA_SERVER) define variables as show below"
@@ -92,9 +92,6 @@
92 @echo "Downloading MySQL sources from $(MASTER_SITE)"92 @echo "Downloading MySQL sources from $(MASTER_SITE)"
93 $(FETCH_CMD) $(MASTER_SITE)/mysql-$(MYSQL_VERSION).tar.gz93 $(FETCH_CMD) $(MASTER_SITE)/mysql-$(MYSQL_VERSION).tar.gz
9494
95tests:
96 PERCONA_SERVER=${PERCONA_SERVER} sh install_tests
97
98misc:95misc:
99 @echo "Installing other files"96 @echo "Installing other files"
100 install -m 644 lrusort.py $(PERCONA_SERVER)/scripts97 install -m 644 lrusort.py $(PERCONA_SERVER)/scripts
10198
=== removed file 'install_tests'
--- install_tests 2011-07-27 11:13:05 +0000
+++ install_tests 1970-01-01 00:00:00 +0000
@@ -1,37 +0,0 @@
1#!/bin/sh
2
3set -u
4
5MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \
6 | cut -d = -f 2)"
7PERCONA_SERVER_VERSION="$(grep ^PERCONA_SERVER_VERSION= "Makefile" \
8 | cut -d = -f 2)"
9PERCONA_SERVER="Percona-Server-${MYSQL_VERSION}-${PERCONA_SERVER_VERSION}"
10
11install_file_type()
12{
13 for file in `ls $1/*.$2 2>/dev/null`; do
14 test -f $file && install -m 644 $file ${PERCONA_SERVER}/mysql-test/$3
15 done;
16}
17do_install_path()
18{
19 install_file_type $1 test t
20 install_file_type $1 opt t
21 install_file_type $1 result r
22 install_file_type $1 require r
23 install_file_type $1 inc include
24}
25install_path()
26{
27 echo "[$3/$4] Installing mysql-test files: $2"
28 test -d $1 && do_install_path $1 $2
29}
30current=0;
31count=`wc -l patches/series`;
32install_path mysql-test "global" $current $count
33for test_name in `cat patches/series`; do
34 current=$((current+1));
35 install_path mysql-test/$test_name $test_name $current $count
36done
37echo "Done"
380
=== removed directory 'mysql-test'
=== removed file 'mysql-test/have_response_time_distribution.inc'
--- mysql-test/have_response_time_distribution.inc 2011-01-17 01:49:51 +0000
+++ mysql-test/have_response_time_distribution.inc 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1-- require r/have_response_time_distribution.require
2disable_query_log;
3show variables like 'have_response_time_distribution';
4enable_query_log;
50
=== removed file 'mysql-test/have_response_time_distribution.require'
--- mysql-test/have_response_time_distribution.require 2011-01-17 01:49:51 +0000
+++ mysql-test/have_response_time_distribution.require 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1Variable_name Value
2have_response_time_distribution YES
30
=== removed directory 'mysql-test/innodb_deadlock_count.patch'
=== removed file 'mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result'
--- mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result 2011-06-22 10:13:43 +0000
+++ mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result 1970-01-01 00:00:00 +0000
@@ -1,28 +0,0 @@
1# Establish connection con1 (user=root)
2# Establish connection con2 (user=root)
3# Establish connection con3 (user=root)
4# Drop test table
5drop table if exists t;
6# Create test table
7create table t(a INT PRIMARY KEY, b INT) engine=InnoDB;
8# Insert two rows to test table
9insert into t values(2,1);
10insert into t values(1,2);
11# Switch to connection con1
12BEGIN;
13SELECT b FROM t WHERE a=1 FOR UPDATE;
14# Switch to connection con2
15BEGIN;
16SELECT b FROM t WHERE a=2 FOR UPDATE;
17# Switch to connection con1
18SELECT b FROM t WHERE a=2 FOR UPDATE;
19# Switch to connection con2
20SELECT b FROM t WHERE a=1 FOR UPDATE;
21# Switch to connection con1
22ROLLBACK;
23# Switch to connection con2
24ROLLBACK;
25# Switch to connection con3
26Deadlocks: 1
27# Drop test table
28drop table t;
290
=== removed file 'mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test'
--- mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test 2011-06-22 10:13:43 +0000
+++ mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test 1970-01-01 00:00:00 +0000
@@ -1,61 +0,0 @@
1--source include/have_innodb.inc
2--echo # Establish connection con1 (user=root)
3connect (con1,localhost,root,,);
4--echo # Establish connection con2 (user=root)
5connect (con2,localhost,root,,);
6--echo # Establish connection con3 (user=root)
7connect (con3,localhost,root,,);
8--echo # Drop test table
9--disable_warnings
10drop table if exists t;
11--enable_warnings
12
13--echo # Create test table
14create table t(a INT PRIMARY KEY, b INT) engine=InnoDB;
15--echo # Insert two rows to test table
16insert into t values(2,1);
17insert into t values(1,2);
18
19#--echo # Save current deadlock count
20let $current = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`;
21
22--disable_result_log
23
24--echo # Switch to connection con1
25connection con1;
26BEGIN; SELECT b FROM t WHERE a=1 FOR UPDATE;
27
28--echo # Switch to connection con2
29connection con2;
30BEGIN; SELECT b FROM t WHERE a=2 FOR UPDATE;
31
32--echo # Switch to connection con1
33connection con1;
34SEND SELECT b FROM t WHERE a=2 FOR UPDATE;
35
36--echo # Switch to connection con2
37connection con2;
38SEND SELECT b FROM t WHERE a=1 FOR UPDATE;
39
40--echo # Switch to connection con1
41connection con1;
42--error 0, ER_LOCK_DEADLOCK
43reap;
44ROLLBACK;
45
46--echo # Switch to connection con2
47connection con2;
48--error 0, ER_LOCK_DEADLOCK
49reap;
50ROLLBACK;
51
52--echo # Switch to connection con3
53connection con3;
54let $result = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`;
55
56--enable_result_log
57
58let $diff = `SELECT $result - $current`;
59echo Deadlocks: $diff;
60--echo # Drop test table
61drop table t;
620
=== removed directory 'mysql-test/log_connection_error.patch'
=== removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt'
--- mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt 2010-12-09 18:30:58 +0000
+++ mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1--log-error
20
=== removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error.result'
--- mysql-test/log_connection_error.patch/percona_log_connection_error.result 2010-12-09 18:30:58 +0000
+++ mysql-test/log_connection_error.patch/percona_log_connection_error.result 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1SET @old_max_connections = @@max_connections;
2SET @old_log_warnings = @@log_warnings;
3SET GLOBAL max_connections=2;
4SET GLOBAL LOG_WARNINGS = 0;
5connect(localhost,root,,test,port,socket);
6ERROR HY000: Too many connections
7SET GLOBAL LOG_WARNINGS = 1;
8connect(localhost,root,,test,port,socket);
9ERROR HY000: Too many connections
10SET GLOBAL LOG_WARNINGS = 0;
11connect(localhost,root,,test,port,socket);
12ERROR HY000: Too many connections
13SET GLOBAL max_connections = @old_max_connections;
14SET GLOBAL log_warnings = @old_log_warnings;
151
160
=== removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error.test'
--- mysql-test/log_connection_error.patch/percona_log_connection_error.test 2011-04-09 15:41:52 +0000
+++ mysql-test/log_connection_error.patch/percona_log_connection_error.test 1970-01-01 00:00:00 +0000
@@ -1,54 +0,0 @@
1--source include/not_embedded.inc
2
3connect (main,localhost,root,,);
4connection main;
5SET @old_max_connections = @@max_connections;
6SET @old_log_warnings = @@log_warnings;
7SET GLOBAL max_connections=2;
8let $port=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'port'`;
9let $socket=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'socket'`;
10
11SET GLOBAL LOG_WARNINGS = 0;
12--connect (conn0,localhost,root,,)
13connection conn0;
14replace_result $port port $socket socket;
15--error 1040
16--connect(conn1,localhost,root,,)
17disconnect conn0;
18SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right
19
20connection main;
21SET GLOBAL LOG_WARNINGS = 1;
22--connect (conn1,localhost,root,,)
23replace_result $port port $socket socket;
24--error 1040
25--connect (conn0,localhost,root,,)
26disconnect conn1;
27SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right
28
29connection main;
30SET GLOBAL LOG_WARNINGS = 0;
31--connect (conn0,localhost,root,,)
32replace_result $port port $socket socket;
33--error 1040
34--connect(conn1,localhost,root,,)
35disconnect conn0;
36SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right
37
38connection main;
39SET GLOBAL max_connections = @old_max_connections;
40SET GLOBAL log_warnings = @old_log_warnings;
41let $log_error_= `SELECT @@GLOBAL.log_error`;
42if(!`select LENGTH('$log_error_')`)
43{
44 # MySQL Server on windows is started with --console and thus
45 # does not know the location of its .err log, use default location
46 let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err;
47}
48# Assign env variable LOG_ERROR
49let LOG_ERROR=$log_error_;
50
51--let grep_file = $log_error
52--let grep_pattern = Too many connections
53--source include/grep.inc
54exec $cmd;
550
=== removed directory 'mysql-test/log_warnings_suppress.patch'
=== removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt'
--- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt 2011-02-21 13:56:22 +0000
+++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1--log-error
20
=== removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result'
--- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result 2011-02-21 13:56:22 +0000
+++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result 1970-01-01 00:00:00 +0000
@@ -1,31 +0,0 @@
1SET @old_log_warnings = @@log_warnings;
2SET @old_log_warnings_suppress = @@log_warnings_suppress;
3DROP TABLE IF EXISTS t1;
4CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20));
5SET GLOBAL log_warnings_suppress='';
6SET GLOBAL LOG_WARNINGS=0;
7SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress';
8Variable_name Value
9log_warnings_suppress
10INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
11Warnings:
12Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
13SET GLOBAL LOG_WARNINGS=1;
14INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
15Warnings:
16Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
17SET GLOBAL log_warnings_suppress='1592';
18SET GLOBAL LOG_WARNINGS=0;
19INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
20Warnings:
21Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
22SET GLOBAL LOG_WARNINGS=1;
23INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
24Warnings:
25Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
26DROP TABLE t1;
27SET GLOBAL log_warnings = @old_log_warnings;
28SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress;
29# Count the number of times the "Unsafe" message was printed
30# to the error log.
31Occurrences: 1
320
=== removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test'
--- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test 2011-02-21 13:56:22 +0000
+++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test 1970-01-01 00:00:00 +0000
@@ -1,47 +0,0 @@
1-- source include/have_log_bin.inc
2-- source include/have_binlog_format_statement.inc
3
4SET @old_log_warnings = @@log_warnings;
5SET @old_log_warnings_suppress = @@log_warnings_suppress;
6
7--disable_warnings
8DROP TABLE IF EXISTS t1;
9--enable_warnings
10CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20));
11SET GLOBAL log_warnings_suppress='';
12SET GLOBAL LOG_WARNINGS=0;
13SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress';
14INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
15SET GLOBAL LOG_WARNINGS=1;
16INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
17SET GLOBAL log_warnings_suppress='1592';
18SET GLOBAL LOG_WARNINGS=0;
19INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
20SET GLOBAL LOG_WARNINGS=1;
21INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
22DROP TABLE t1;
23
24SET GLOBAL log_warnings = @old_log_warnings;
25SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress;
26
27let $log_error_= `SELECT @@GLOBAL.log_error`;
28if(!`select LENGTH('$log_error_')`)
29{
30 # MySQL Server on windows is started with --console and thus
31 # does not know the location of its .err log, use default location
32 let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err;
33}
34# Assign env variable LOG_ERROR
35let LOG_ERROR=$log_error_;
36
37--echo # Count the number of times the "Unsafe" message was printed
38--echo # to the error log.
39
40perl;
41 use strict;
42 my $log_error= $ENV{'LOG_ERROR'} or die "LOG_ERROR not set";
43 open(FILE, "$log_error") or die("Unable to open $log_error: $!\n");
44 my $count = () = grep(/suppress_1592/g,<FILE>);
45 print "Occurrences: $count\n";
46 close(FILE);
47EOF
480
=== removed directory 'mysql-test/memory_dynamic_rows.patch'
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result 1970-01-01 00:00:00 +0000
@@ -1,952 +0,0 @@
1SET @old_default_storage_engine=@@default_storage_engine;
2SET default_storage_engine=MEMORY;
3drop table if exists t1,t2,t3,t4,t5,t6,t7;
4CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000));
5show columns from t1;
6Field Type Null Key Default Extra
7a blob YES NULL
8b text YES NULL
9c tinyblob YES NULL
10d mediumtext YES NULL
11e longtext YES NULL
12CREATE TABLE t2 (a char(255), b varbinary(70000), c varchar(70000000));
13Warnings:
14Note 1246 Converting column 'b' from VARBINARY to BLOB
15Note 1246 Converting column 'c' from VARCHAR to TEXT
16CREATE TABLE t4 (c varchar(65530) character set utf8 not null);
17Warnings:
18Note 1246 Converting column 'c' from VARCHAR to TEXT
19show columns from t2;
20Field Type Null Key Default Extra
21a char(255) YES NULL
22b mediumblob YES NULL
23c longtext YES NULL
24create table t3 (a long, b long byte);
25show create TABLE t3;
26Table Create Table
27t3 CREATE TABLE `t3` (
28 `a` mediumtext,
29 `b` mediumblob
30) ENGINE=MEMORY DEFAULT CHARSET=latin1
31show create TABLE t4;
32Table Create Table
33t4 CREATE TABLE `t4` (
34 `c` mediumtext CHARACTER SET utf8 NOT NULL
35) ENGINE=MEMORY DEFAULT CHARSET=latin1
36drop table t1,t2,t3,t4;
37CREATE TABLE t1 (a char(257) default "hello");
38ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
39CREATE TABLE t2 (a char(256));
40ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
41CREATE TABLE t1 (a varchar(70000) default "hello");
42ERROR 42000: Column length too big for column 'a' (max = 65535); use BLOB or TEXT instead
43CREATE TABLE t2 (a blob default "hello");
44ERROR 42000: BLOB/TEXT column 'a' can't have a default value
45drop table if exists t1,t2;
46create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr));
47insert into t1 values (null,"a","A");
48insert into t1 values (null,"bbb","BBB");
49insert into t1 values (null,"ccc","CCC");
50select last_insert_id();
51last_insert_id()
523
53select * from t1,t1 as t2;
54nr b str nr b str
551 a A 1 a A
562 bbb BBB 1 a A
573 ccc CCC 1 a A
581 a A 2 bbb BBB
592 bbb BBB 2 bbb BBB
603 ccc CCC 2 bbb BBB
611 a A 3 ccc CCC
622 bbb BBB 3 ccc CCC
633 ccc CCC 3 ccc CCC
64drop table t1;
65create table t1 (a text);
66insert into t1 values ('where');
67update t1 set a='Where';
68select * from t1;
69a
70Where
71drop table t1;
72create table t1 (t text,c char(10),b blob, d varbinary(10));
73insert into t1 values (NULL,NULL,NULL,NULL);
74insert into t1 values ("","","","");
75insert into t1 values ("hello","hello","hello","hello");
76insert into t1 values ("HELLO","HELLO","HELLO","HELLO");
77insert into t1 values ("HELLO MY","HELLO MY","HELLO MY","HELLO MY");
78insert into t1 values ("a","a","a","a");
79insert into t1 values (1,1,1,1);
80insert into t1 values (NULL,NULL,NULL,NULL);
81update t1 set c="",b=null where c="1";
82lock tables t1 READ;
83show full fields from t1;
84Field Type Collation Null Key Default Extra Privileges Comment
85t text latin1_swedish_ci YES NULL #
86c char(10) latin1_swedish_ci YES NULL #
87b blob NULL YES NULL #
88d varbinary(10) NULL YES NULL #
89lock tables t1 WRITE;
90show full fields from t1;
91Field Type Collation Null Key Default Extra Privileges Comment
92t text latin1_swedish_ci YES NULL #
93c char(10) latin1_swedish_ci YES NULL #
94b blob NULL YES NULL #
95d varbinary(10) NULL YES NULL #
96unlock tables;
97select t from t1 where t like "hello";
98t
99hello
100HELLO
101select c from t1 where c like "hello";
102c
103hello
104HELLO
105select b from t1 where b like "hello";
106b
107hello
108select d from t1 where d like "hello";
109d
110hello
111select c from t1 having c like "hello";
112c
113hello
114HELLO
115select d from t1 having d like "hello";
116d
117hello
118select t from t1 where t like "%HELLO%";
119t
120hello
121HELLO
122HELLO MY
123select c from t1 where c like "%HELLO%";
124c
125hello
126HELLO
127HELLO MY
128select b from t1 where b like "%HELLO%";
129b
130HELLO
131HELLO MY
132select d from t1 where d like "%HELLO%";
133d
134HELLO
135HELLO MY
136select c from t1 having c like "%HELLO%";
137c
138hello
139HELLO
140HELLO MY
141select d from t1 having d like "%HELLO%";
142d
143HELLO
144HELLO MY
145select d from t1 having d like "%HE%LLO%";
146d
147HELLO
148HELLO MY
149select t from t1 order by t;
150t
151NULL
152NULL
153
1541
155a
156hello
157HELLO
158HELLO MY
159select c from t1 order by c;
160c
161NULL
162NULL
163
164
165a
166hello
167HELLO
168HELLO MY
169select b from t1 order by b;
170b
171NULL
172NULL
173NULL
174
175HELLO
176HELLO MY
177a
178hello
179select d from t1 order by d;
180d
181NULL
182NULL
183
1841
185HELLO
186HELLO MY
187a
188hello
189select distinct t from t1;
190t
191NULL
192
193hello
194HELLO MY
195a
1961
197select distinct b from t1;
198b
199NULL
200
201hello
202HELLO
203HELLO MY
204a
205select distinct t from t1 order by t;
206t
207NULL
208
2091
210a
211hello
212HELLO MY
213select distinct b from t1 order by b;
214b
215NULL
216
217HELLO
218HELLO MY
219a
220hello
221select t from t1 group by t;
222t
223NULL
224
2251
226a
227hello
228HELLO MY
229select b from t1 group by b;
230b
231NULL
232
233HELLO
234HELLO MY
235a
236hello
237set option sql_big_tables=1;
238select distinct t from t1;
239t
240NULL
241
242hello
243HELLO MY
244a
2451
246select distinct b from t1;
247b
248NULL
249
250hello
251HELLO
252HELLO MY
253a
254select distinct t from t1 order by t;
255t
256NULL
257
2581
259a
260hello
261HELLO MY
262select distinct b from t1 order by b;
263b
264NULL
265
266HELLO
267HELLO MY
268a
269hello
270select distinct c from t1;
271c
272NULL
273
274hello
275HELLO MY
276a
277select distinct d from t1;
278d
279NULL
280
281hello
282HELLO
283HELLO MY
284a
2851
286select distinct c from t1 order by c;
287c
288NULL
289
290a
291hello
292HELLO MY
293select distinct d from t1 order by d;
294d
295NULL
296
2971
298HELLO
299HELLO MY
300a
301hello
302select c from t1 group by c;
303c
304NULL
305
306a
307hello
308HELLO MY
309select d from t1 group by d;
310d
311NULL
312
3131
314HELLO
315HELLO MY
316a
317hello
318set option sql_big_tables=0;
319select distinct * from t1;
320t c b d
321NULL NULL NULL NULL
322
323hello hello hello hello
324HELLO HELLO HELLO HELLO
325HELLO MY HELLO MY HELLO MY HELLO MY
326a a a a
3271 NULL 1
328select t,count(*) from t1 group by t;
329t count(*)
330NULL 2
331 1
3321 1
333a 1
334hello 2
335HELLO MY 1
336select b,count(*) from t1 group by b;
337b count(*)
338NULL 3
339 1
340HELLO 1
341HELLO MY 1
342a 1
343hello 1
344select c,count(*) from t1 group by c;
345c count(*)
346NULL 2
347 2
348a 1
349hello 2
350HELLO MY 1
351select d,count(*) from t1 group by d;
352d count(*)
353NULL 2
354 1
3551 1
356HELLO 1
357HELLO MY 1
358a 1
359hello 1
360drop table t1;
361CREATE TABLE t1 (
362t1_id bigint(21) NOT NULL auto_increment,
363_field_72 varchar(128) DEFAULT '' NOT NULL,
364_field_95 varchar(32),
365_field_115 tinyint(4) DEFAULT '0' NOT NULL,
366_field_122 tinyint(4) DEFAULT '0' NOT NULL,
367_field_126 tinyint(4),
368_field_134 tinyint(4),
369PRIMARY KEY (t1_id),
370UNIQUE _field_72 (_field_72),
371KEY _field_115 (_field_115),
372KEY _field_122 (_field_122)
373);
374INSERT INTO t1 VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,1,NULL,NULL);
375INSERT INTO t1 VALUES (2,'hroberts','7415275a8c95952901e42b13a6b78566',0,1,NULL,NULL);
376INSERT INTO t1 VALUES (3,'guest','d41d8cd98f00b204e9800998ecf8427e',1,0,NULL,NULL);
377CREATE TABLE t2 (
378seq_0_id bigint(21) DEFAULT '0' NOT NULL,
379seq_1_id bigint(21) DEFAULT '0' NOT NULL,
380PRIMARY KEY (seq_0_id,seq_1_id)
381);
382INSERT INTO t2 VALUES (1,1);
383INSERT INTO t2 VALUES (2,1);
384INSERT INTO t2 VALUES (2,2);
385CREATE TABLE t3 (
386t3_id bigint(21) NOT NULL auto_increment,
387_field_131 varchar(128),
388_field_133 tinyint(4) DEFAULT '0' NOT NULL,
389_field_135 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
390_field_137 tinyint(4),
391_field_139 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
392_field_140 blob,
393_field_142 tinyint(4) DEFAULT '0' NOT NULL,
394_field_145 tinyint(4) DEFAULT '0' NOT NULL,
395_field_148 tinyint(4) DEFAULT '0' NOT NULL,
396PRIMARY KEY (t3_id),
397KEY _field_133 (_field_133),
398KEY _field_135 (_field_135),
399KEY _field_139 (_field_139),
400KEY _field_142 (_field_142),
401KEY _field_145 (_field_145),
402KEY _field_148 (_field_148)
403);
404INSERT INTO t3 VALUES (1,'test job 1',0,'0000-00-00 00:00:00',0,'1999-02-25 22:43:32','test\r\njob\r\n1',0,0,0);
405INSERT INTO t3 VALUES (2,'test job 2',0,'0000-00-00 00:00:00',0,'1999-02-26 21:08:04','',0,0,0);
406CREATE TABLE t4 (
407seq_0_id bigint(21) DEFAULT '0' NOT NULL,
408seq_1_id bigint(21) DEFAULT '0' NOT NULL,
409PRIMARY KEY (seq_0_id,seq_1_id)
410);
411INSERT INTO t4 VALUES (1,1);
412INSERT INTO t4 VALUES (2,1);
413CREATE TABLE t5 (
414t5_id bigint(21) NOT NULL auto_increment,
415_field_149 tinyint(4),
416_field_156 varchar(128) DEFAULT '' NOT NULL,
417_field_157 varchar(128) DEFAULT '' NOT NULL,
418_field_158 varchar(128) DEFAULT '' NOT NULL,
419_field_159 varchar(128) DEFAULT '' NOT NULL,
420_field_160 varchar(128) DEFAULT '' NOT NULL,
421_field_161 varchar(128) DEFAULT '' NOT NULL,
422PRIMARY KEY (t5_id),
423KEY _field_156 (_field_156),
424KEY _field_157 (_field_157),
425KEY _field_158 (_field_158),
426KEY _field_159 (_field_159),
427KEY _field_160 (_field_160),
428KEY _field_161 (_field_161)
429);
430INSERT INTO t5 VALUES (1,0,'tomato','','','','','');
431INSERT INTO t5 VALUES (2,0,'cilantro','','','','','');
432CREATE TABLE t6 (
433seq_0_id bigint(21) DEFAULT '0' NOT NULL,
434seq_1_id bigint(21) DEFAULT '0' NOT NULL,
435PRIMARY KEY (seq_0_id,seq_1_id)
436);
437INSERT INTO t6 VALUES (1,1);
438INSERT INTO t6 VALUES (1,2);
439INSERT INTO t6 VALUES (2,2);
440CREATE TABLE t7 (
441t7_id bigint(21) NOT NULL auto_increment,
442_field_143 tinyint(4),
443_field_165 varchar(32),
444_field_166 smallint(6) DEFAULT '0' NOT NULL,
445PRIMARY KEY (t7_id),
446KEY _field_166 (_field_166)
447);
448INSERT INTO t7 VALUES (1,0,'High',1);
449INSERT INTO t7 VALUES (2,0,'Medium',2);
450INSERT INTO t7 VALUES (3,0,'Low',3);
451select replace(t3._field_140, "\r","^M"),t3_id,min(t3._field_131), min(t3._field_135), min(t3._field_139), min(t3._field_137), min(link_alias_142._field_165), min(link_alias_133._field_72), min(t3._field_145), min(link_alias_148._field_156), replace(min(t3._field_140), "\r","^M"),t3.t3_id from t3 left join t4 on t4.seq_0_id = t3.t3_id left join t7 link_alias_142 on t4.seq_1_id = link_alias_142.t7_id left join t6 on t6.seq_0_id = t3.t3_id left join t1 link_alias_133 on t6.seq_1_id = link_alias_133.t1_id left join t2 on t2.seq_0_id = t3.t3_id left join t5 link_alias_148 on t2.seq_1_id = link_alias_148.t5_id where t3.t3_id in (1) group by t3.t3_id order by link_alias_142._field_166, _field_139, link_alias_133._field_72, _field_135, link_alias_148._field_156;
452replace(t3._field_140, "\r","^M") t3_id min(t3._field_131) min(t3._field_135) min(t3._field_139) min(t3._field_137) min(link_alias_142._field_165) min(link_alias_133._field_72) min(t3._field_145) min(link_alias_148._field_156) replace(min(t3._field_140), "\r","^M") t3_id
453test^M
454job^M
4551 1 test job 1 0000-00-00 00:00:00 1999-02-25 22:43:32 0 High admin 0 tomato test^M
456job^M
4571 1
458drop table t1,t2,t3,t4,t5,t6,t7;
459create table t1 (a blob);
460insert into t1 values ("empty"),("");
461select a,reverse(a) from t1;
462a reverse(a)
463empty ytpme
464
465drop table t1;
466create table t1 (id integer auto_increment unique,imagem LONGBLOB not null default '');
467Warnings:
468Warning 1101 BLOB/TEXT column 'imagem' can't have a default value
469insert into t1 (id) values (1);
470select
471charset(load_file('../../std_data/words.dat')),
472collation(load_file('../../std_data/words.dat')),
473coercibility(load_file('../../std_data/words.dat'));
474charset(load_file('../../std_data/words.dat')) collation(load_file('../../std_data/words.dat')) coercibility(load_file('../../std_data/words.dat'))
475binary binary 4
476explain extended select
477charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat')),
478collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat')),
479coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat'));
480id select_type table type possible_keys key key_len ref rows filtered Extra
4811 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
482Warnings:
483Note 1003 select charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`,collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`,coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat')) AS `coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat'))`
484update t1 set imagem=load_file('MYSQLTEST_VARDIR/std_data/words.dat') where id=1;
485select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1;
486if(imagem is null, "ERROR", "OK") length(imagem)
487OK 581
488drop table t1;
489create table t1 select load_file('MYSQLTEST_VARDIR/std_data/words.dat') l;
490show full fields from t1;
491Field Type Collation Null Key Default Extra Privileges Comment
492l longblob NULL YES NULL #
493drop table t1;
494create table t1 (id integer primary key auto_increment, txt text not null);
495insert into t1 (txt) values ('Chevy ');
496select * from t1 where txt='Chevy';
497id txt
4981 Chevy
499select * from t1 where txt='Chevy ';
500id txt
5011 Chevy
502select * from t1 where txt='Chevy ' or txt='Chevy';
503id txt
5041 Chevy
505select * from t1 where txt='Chevy' or txt='Chevy ';
506id txt
5071 Chevy
508select * from t1 where id='1' or id='2';
509id txt
5101 Chevy
511insert into t1 (txt) values('Ford');
512select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
513id txt
5141 Chevy
5152 Ford
516select * from t1 where txt='Chevy' or txt='Chevy ';
517id txt
5181 Chevy
519select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
520id txt
5211 Chevy
522select * from t1 where txt in ('Chevy ','Chevy');
523id txt
5241 Chevy
525select * from t1 where txt in ('Chevy');
526id txt
5271 Chevy
528select * from t1 where txt between 'Chevy' and 'Chevy';
529id txt
5301 Chevy
531select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
532id txt
5331 Chevy
534select * from t1 where txt between 'Chevy' and 'Chevy ';
535id txt
5361 Chevy
537select * from t1 where txt < 'Chevy ';
538id txt
539select * from t1 where txt <= 'Chevy';
540id txt
5411 Chevy
542select * from t1 where txt > 'Chevy';
543id txt
5442 Ford
545select * from t1 where txt >= 'Chevy';
546id txt
5471 Chevy
5482 Ford
549drop table t1;
550create table t1 (id integer primary key auto_increment, txt text);
551insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL);
552select * from t1 where txt='Chevy' or txt is NULL;
553id txt
5541 Chevy
5552 Chevy
5563 NULL
557explain select * from t1 where txt='Chevy' or txt is NULL;
558id select_type table type possible_keys key key_len ref rows Extra
5591 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
560select * from t1 where txt='Chevy ';
561id txt
5621 Chevy
5632 Chevy
564select * from t1 where txt='Chevy ' or txt='Chevy';
565id txt
5661 Chevy
5672 Chevy
568select * from t1 where txt='Chevy' or txt='Chevy ';
569id txt
5701 Chevy
5712 Chevy
572select * from t1 where id='1' or id='2';
573id txt
5741 Chevy
5752 Chevy
576insert into t1 (txt) values('Ford');
577select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
578id txt
5791 Chevy
5802 Chevy
5814 Ford
582select * from t1 where txt='Chevy' or txt='Chevy ';
583id txt
5841 Chevy
5852 Chevy
586select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
587id txt
5881 Chevy
5892 Chevy
590select * from t1 where txt in ('Chevy ','Chevy');
591id txt
5921 Chevy
5932 Chevy
594select * from t1 where txt in ('Chevy');
595id txt
5961 Chevy
5972 Chevy
598select * from t1 where txt between 'Chevy' and 'Chevy';
599id txt
6001 Chevy
6012 Chevy
602select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
603id txt
6041 Chevy
6052 Chevy
606select * from t1 where txt between 'Chevy' and 'Chevy ';
607id txt
6081 Chevy
6092 Chevy
610select * from t1 where txt < 'Chevy ';
611id txt
612select * from t1 where txt < 'Chevy ' or txt is NULL;
613id txt
6143 NULL
615select * from t1 where txt <= 'Chevy';
616id txt
6171 Chevy
6182 Chevy
619select * from t1 where txt > 'Chevy';
620id txt
6214 Ford
622select * from t1 where txt >= 'Chevy';
623id txt
6241 Chevy
6252 Chevy
6264 Ford
627alter table t1 modify column txt blob;
628explain select * from t1 where txt='Chevy' or txt is NULL;
629id select_type table type possible_keys key key_len ref rows Extra
6301 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where
631select * from t1 where txt='Chevy' or txt is NULL;
632id txt
6331 Chevy
6343 NULL
635explain select * from t1 where txt='Chevy' or txt is NULL order by txt;
636id select_type table type possible_keys key key_len ref rows Extra
6371 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where; Using filesort
638select * from t1 where txt='Chevy' or txt is NULL order by txt;
639id txt
6403 NULL
6411 Chevy
642drop table t1;
643CREATE TABLE t1 ( i int(11) NOT NULL default '0', c text NOT NULL, d varchar(1) NOT NULL DEFAULT ' ', PRIMARY KEY (i));
644INSERT t1 (i, c) VALUES (1,''),(2,''),(3,'asdfh'),(4,'');
645select max(i) from t1 where c = '';
646max(i)
6474
648drop table t1;
649CREATE table t1 (a blob);
650insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL);
651select hex(a) from t1 order by a;
652hex(a)
653NULL
65461
6556100
6566120
6576161
65862
659select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
660b
661NULL
6626100
663610000
664612000
665616100
6666200
667alter table t1 modify a varbinary(5);
668select hex(a) from t1 order by a;
669hex(a)
670NULL
67161
6726100
6736120
6746161
67562
676select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
677b
678NULL
6796100
680610000
681612000
682616100
6836200
684alter table t1 modify a char(5);
685select hex(a) from t1 order by a;
686hex(a)
687NULL
6886100
68961
69061
6916161
69262
693select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
694b
695NULL
696610000
6976100
6986100
699616100
7006200
701alter table t1 modify a binary(5);
702select hex(a) from t1 order by a;
703hex(a)
704NULL
7056100000000
7066100000000
7076100000000
7086161000000
7096200000000
710select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
711b
712NULL
713610000000000
714610000000000
715610000000000
716616100000000
717620000000000
718drop table t1;
719create table t1 (a text default '');
720Warnings:
721Warning 1101 BLOB/TEXT column 'a' can't have a default value
722show create table t1;
723Table Create Table
724t1 CREATE TABLE `t1` (
725 `a` text
726) ENGINE=MEMORY DEFAULT CHARSET=latin1
727insert into t1 values (default);
728select * from t1;
729a
730NULL
731drop table t1;
732set @@sql_mode='TRADITIONAL';
733create table t1 (a text default '');
734ERROR 42000: BLOB/TEXT column 'a' can't have a default value
735set @@sql_mode='';
736CREATE TABLE t (c TEXT CHARSET ASCII);
737INSERT INTO t (c) VALUES (REPEAT('1',65537));
738Warnings:
739Warning 1265 Data truncated for column 'c' at row 1
740INSERT INTO t (c) VALUES (REPEAT('2',65536));
741Warnings:
742Warning 1265 Data truncated for column 'c' at row 1
743INSERT INTO t (c) VALUES (REPEAT('3',65535));
744SELECT LENGTH(c), CHAR_LENGTH(c) FROM t;
745LENGTH(c) CHAR_LENGTH(c)
74665535 65535
74765535 65535
74865535 65535
749DROP TABLE t;
750drop table if exists b15776;
751create table b15776 (data blob(2147483647));
752drop table b15776;
753create table b15776 (data blob(-1));
754ERROR 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 '-1))' at line 1
755create table b15776 (data blob(2147483648));
756drop table b15776;
757create table b15776 (data blob(4294967294));
758drop table b15776;
759create table b15776 (data blob(4294967295));
760drop table b15776;
761create table b15776 (data blob(4294967296));
762ERROR 42000: Display width out of range for column 'data' (max = 4294967295)
763CREATE TABLE b15776 (a blob(2147483647), b blob(2147483648), c blob(4294967295), a1 text(2147483647), b1 text(2147483648), c1 text(4294967295) );
764show columns from b15776;
765Field Type Null Key Default Extra
766a longblob YES NULL
767b longblob YES NULL
768c longblob YES NULL
769a1 longtext YES NULL
770b1 longtext YES NULL
771c1 longtext YES NULL
772drop table b15776;
773CREATE TABLE b15776 (a blob(4294967296));
774ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
775CREATE TABLE b15776 (a text(4294967296));
776ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
777CREATE TABLE b15776 (a blob(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
778ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
779CREATE TABLE b15776 (a text(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
780ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
781CREATE TABLE b15776 (a int(0));
782INSERT INTO b15776 values (NULL), (1), (42), (654);
783SELECT * from b15776 ORDER BY a;
784a
785NULL
7861
78742
788654
789DROP TABLE b15776;
790CREATE TABLE b15776 (a int(-1));
791ERROR 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 '-1))' at line 1
792CREATE TABLE b15776 (a int(255));
793DROP TABLE b15776;
794CREATE TABLE b15776 (a int(256));
795ERROR 42000: Display width out of range for column 'a' (max = 255)
796CREATE TABLE b15776 (data blob(-1));
797ERROR 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 '-1))' at line 1
798CREATE TABLE b15776 (a char(2147483647));
799ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
800CREATE TABLE b15776 (a char(2147483648));
801ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
802CREATE TABLE b15776 (a char(4294967295));
803ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead
804CREATE TABLE b15776 (a char(4294967296));
805ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
806CREATE TABLE b15776 (a year(4294967295));
807INSERT INTO b15776 VALUES (42);
808SELECT * FROM b15776;
809a
8102042
811DROP TABLE b15776;
812CREATE TABLE b15776 (a year(4294967296));
813ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
814CREATE TABLE b15776 (a year(0));
815DROP TABLE b15776;
816CREATE TABLE b15776 (a year(-2));
817ERROR 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 '-2))' at line 1
818CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
819ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
820CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
821ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
822CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
823ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
824CREATE TABLE b15776 select cast(null as char(4294967295));
825show columns from b15776;
826Field Type Null Key Default Extra
827cast(null as char(4294967295)) char(0) YES NULL
828drop table b15776;
829CREATE TABLE b15776 select cast(null as nchar(4294967295));
830show columns from b15776;
831Field Type Null Key Default Extra
832cast(null as nchar(4294967295)) char(0) YES NULL
833drop table b15776;
834CREATE TABLE b15776 select cast(null as binary(4294967295));
835show columns from b15776;
836Field Type Null Key Default Extra
837cast(null as binary(4294967295)) binary(0) YES NULL
838drop table b15776;
839explain select cast(1 as char(4294967295));
840id select_type table type possible_keys key key_len ref rows Extra
8411 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
842explain select cast(1 as nchar(4294967295));
843id select_type table type possible_keys key key_len ref rows Extra
8441 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
845explain select cast(1 as binary(4294967295));
846id select_type table type possible_keys key key_len ref rows Extra
8471 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
848explain select cast(1 as char(4294967296));
849ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
850explain select cast(1 as nchar(4294967296));
851ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
852explain select cast(1 as binary(4294967296));
853ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
854explain select cast(1 as decimal(-1));
855ERROR 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 '-1))' at line 1
856explain select cast(1 as decimal(64, 30));
857id select_type table type possible_keys key key_len ref rows Extra
8581 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
859explain select cast(1 as decimal(64, 999999999999999999999999999999));
860Got one of the listed errors
861explain select cast(1 as decimal(4294967296));
862Got one of the listed errors
863explain select cast(1 as decimal(999999999999999999999999999999999999));
864Got one of the listed errors
865explain select convert(1, char(4294967295));
866id select_type table type possible_keys key key_len ref rows Extra
8671 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
868explain select convert(1, char(4294967296));
869ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
870explain select convert(1, char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
871ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
872explain select convert(1, nchar(4294967295));
873id select_type table type possible_keys key key_len ref rows Extra
8741 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
875explain select convert(1, nchar(4294967296));
876ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
877explain select convert(1, nchar(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
878ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
879explain select convert(1, binary(4294967295));
880id select_type table type possible_keys key key_len ref rows Extra
8811 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
882explain select convert(1, binary(4294967296));
883ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
884explain select convert(1, binary(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
885ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295)
886End of 5.0 tests
887CREATE TABLE t1(id INT NOT NULL);
888CREATE TABLE t2(id INT NOT NULL, c TEXT NOT NULL);
889INSERT INTO t1 VALUES (1);
890INSERT INTO t2 VALUES (1, '');
891UPDATE t2 SET c = REPEAT('1', 70000);
892Warnings:
893Warning 1265 Data truncated for column 'c' at row 1
894SELECT LENGTH(c) FROM t2;
895LENGTH(c)
89665535
897UPDATE t1 LEFT JOIN t2 USING(id) SET t2.c = REPEAT('1', 70000) WHERE t1.id = 1;
898Warnings:
899Warning 1265 Data truncated for column 'c' at row 1
900SELECT LENGTH(c) FROM t2;
901LENGTH(c)
90265535
903DROP TABLE t1, t2;
904# Bug #52160: crash and inconsistent results when grouping
905# by a function and column
906CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1;
907CREATE TABLE t1(a CHAR(1));
908INSERT INTO t1 VALUES ('0'), ('0');
909SELECT COUNT(*) FROM t1 GROUP BY f1(), a;
910COUNT(*)
9112
912DROP FUNCTION f1;
913DROP TABLE t1;
914SET default_storage_engine=@old_default_storage_engine;
915SET @old_max_heap_table_size = @@global.max_heap_table_size;
916SET @old_max_allowed_packet = @@global.max_allowed_packet;
917SET GLOBAL max_heap_table_size = 18 * 1024 * 1024;
918SET GLOBAL max_allowed_packet = 24 * 1024 * 1024;
919drop table if exists t1;
920CREATE TABLE t1 (data LONGBLOB) ENGINE=memory;
921INSERT INTO t1 (data) VALUES (NULL);
922UPDATE t1 set data=repeat('a',18*1024*1024);
923select length(data) from t1;
924length(data)
92518874368
926delete from t1 where left(data,1)='a';
927truncate table t1;
928INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024));
929INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024));
930delete from t1 where left(data,1)='b';
931UPDATE t1 set data=repeat('c',17*1024*1024);
932delete from t1 where left(data,1)='c';
933INSERT INTO t1 set data=repeat('a',18*1024*1024);
934select length(data) from t1;
935length(data)
93618874368
937alter table t1 modify data blob;
938select length(data) from t1;
939length(data)
9400
941drop table t1;
942CREATE TABLE t1 (data BLOB) ENGINE=myisam;
943INSERT INTO t1 (data) VALUES (NULL);
944UPDATE t1 set data=repeat('a',18*1024*1024);
945Warnings:
946Warning 1265 Data truncated for column 'data' at row 1
947select length(data) from t1;
948length(data)
94965535
950drop table t1;
951SET GLOBAL max_allowed_packet = @old_max_allowed_packet;
952SET GLOBAL max_heap_table_size = @old_max_heap_table_size;
9530
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test 1970-01-01 00:00:00 +0000
@@ -1,642 +0,0 @@
1########################################################################
2# Test blobs with the HEAP/MEMORY storage engine
3########################################################################
4
5########################################################################
6# Modified tests from type_blob.test
7########################################################################
8
9SET @old_default_storage_engine=@@default_storage_engine;
10SET default_storage_engine=MEMORY;
11
12#
13# Basic cleanup
14#
15--disable_warnings
16drop table if exists t1,t2,t3,t4,t5,t6,t7;
17--enable_warnings
18
19
20#
21# Check syntax for creating BLOB/TEXT
22#
23
24CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000));
25show columns from t1;
26# PS doesn't give errors on prepare yet
27CREATE TABLE t2 (a char(255), b varbinary(70000), c varchar(70000000));
28CREATE TABLE t4 (c varchar(65530) character set utf8 not null);
29show columns from t2;
30create table t3 (a long, b long byte);
31show create TABLE t3;
32show create TABLE t4;
33drop table t1,t2,t3,t4;
34
35#
36# Check errors with blob
37#
38
39--error 1074
40CREATE TABLE t1 (a char(257) default "hello");
41--error 1074
42CREATE TABLE t2 (a char(256));
43--error 1074
44CREATE TABLE t1 (a varchar(70000) default "hello");
45--error 1101
46CREATE TABLE t2 (a blob default "hello");
47
48# Safety to be able to continue with other tests if above fails
49--disable_warnings
50drop table if exists t1,t2;
51--enable_warnings
52
53#
54# test of full join with blob
55#
56
57create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr));
58insert into t1 values (null,"a","A");
59insert into t1 values (null,"bbb","BBB");
60insert into t1 values (null,"ccc","CCC");
61select last_insert_id();
62select * from t1,t1 as t2;
63
64drop table t1;
65
66#
67# Test of changing TEXT column
68#
69
70create table t1 (a text);
71insert into t1 values ('where');
72update t1 set a='Where';
73select * from t1;
74drop table t1;
75
76#
77# test of blob, text, char and varbinary
78#
79create table t1 (t text,c char(10),b blob, d varbinary(10));
80insert into t1 values (NULL,NULL,NULL,NULL);
81insert into t1 values ("","","","");
82insert into t1 values ("hello","hello","hello","hello");
83insert into t1 values ("HELLO","HELLO","HELLO","HELLO");
84insert into t1 values ("HELLO MY","HELLO MY","HELLO MY","HELLO MY");
85insert into t1 values ("a","a","a","a");
86insert into t1 values (1,1,1,1);
87insert into t1 values (NULL,NULL,NULL,NULL);
88update t1 set c="",b=null where c="1";
89
90lock tables t1 READ;
91# We mask out the Privileges column because it differs for embedded server
92--replace_column 8 #
93show full fields from t1;
94lock tables t1 WRITE;
95--replace_column 8 #
96show full fields from t1;
97unlock tables;
98
99select t from t1 where t like "hello";
100select c from t1 where c like "hello";
101select b from t1 where b like "hello";
102select d from t1 where d like "hello";
103select c from t1 having c like "hello";
104select d from t1 having d like "hello";
105select t from t1 where t like "%HELLO%";
106select c from t1 where c like "%HELLO%";
107select b from t1 where b like "%HELLO%";
108select d from t1 where d like "%HELLO%";
109select c from t1 having c like "%HELLO%";
110select d from t1 having d like "%HELLO%";
111select d from t1 having d like "%HE%LLO%";
112select t from t1 order by t;
113select c from t1 order by c;
114select b from t1 order by b;
115select d from t1 order by d;
116select distinct t from t1;
117select distinct b from t1;
118select distinct t from t1 order by t;
119select distinct b from t1 order by b;
120select t from t1 group by t;
121select b from t1 group by b;
122set option sql_big_tables=1;
123select distinct t from t1;
124select distinct b from t1;
125select distinct t from t1 order by t;
126select distinct b from t1 order by b;
127select distinct c from t1;
128select distinct d from t1;
129select distinct c from t1 order by c;
130select distinct d from t1 order by d;
131select c from t1 group by c;
132select d from t1 group by d;
133set option sql_big_tables=0;
134select distinct * from t1;
135select t,count(*) from t1 group by t;
136select b,count(*) from t1 group by b;
137select c,count(*) from t1 group by c;
138select d,count(*) from t1 group by d;
139drop table t1;
140
141
142#
143# Test of join with blobs and min
144#
145
146CREATE TABLE t1 (
147 t1_id bigint(21) NOT NULL auto_increment,
148 _field_72 varchar(128) DEFAULT '' NOT NULL,
149 _field_95 varchar(32),
150 _field_115 tinyint(4) DEFAULT '0' NOT NULL,
151 _field_122 tinyint(4) DEFAULT '0' NOT NULL,
152 _field_126 tinyint(4),
153 _field_134 tinyint(4),
154 PRIMARY KEY (t1_id),
155 UNIQUE _field_72 (_field_72),
156 KEY _field_115 (_field_115),
157 KEY _field_122 (_field_122)
158);
159
160
161INSERT INTO t1 VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,1,NULL,NULL);
162INSERT INTO t1 VALUES (2,'hroberts','7415275a8c95952901e42b13a6b78566',0,1,NULL,NULL);
163INSERT INTO t1 VALUES (3,'guest','d41d8cd98f00b204e9800998ecf8427e',1,0,NULL,NULL);
164
165
166CREATE TABLE t2 (
167 seq_0_id bigint(21) DEFAULT '0' NOT NULL,
168 seq_1_id bigint(21) DEFAULT '0' NOT NULL,
169 PRIMARY KEY (seq_0_id,seq_1_id)
170);
171
172
173INSERT INTO t2 VALUES (1,1);
174INSERT INTO t2 VALUES (2,1);
175INSERT INTO t2 VALUES (2,2);
176
177CREATE TABLE t3 (
178 t3_id bigint(21) NOT NULL auto_increment,
179 _field_131 varchar(128),
180 _field_133 tinyint(4) DEFAULT '0' NOT NULL,
181 _field_135 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
182 _field_137 tinyint(4),
183 _field_139 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
184 _field_140 blob,
185 _field_142 tinyint(4) DEFAULT '0' NOT NULL,
186 _field_145 tinyint(4) DEFAULT '0' NOT NULL,
187 _field_148 tinyint(4) DEFAULT '0' NOT NULL,
188 PRIMARY KEY (t3_id),
189 KEY _field_133 (_field_133),
190 KEY _field_135 (_field_135),
191 KEY _field_139 (_field_139),
192 KEY _field_142 (_field_142),
193 KEY _field_145 (_field_145),
194 KEY _field_148 (_field_148)
195);
196
197
198INSERT INTO t3 VALUES (1,'test job 1',0,'0000-00-00 00:00:00',0,'1999-02-25 22:43:32','test\r\njob\r\n1',0,0,0);
199INSERT INTO t3 VALUES (2,'test job 2',0,'0000-00-00 00:00:00',0,'1999-02-26 21:08:04','',0,0,0);
200
201
202CREATE TABLE t4 (
203 seq_0_id bigint(21) DEFAULT '0' NOT NULL,
204 seq_1_id bigint(21) DEFAULT '0' NOT NULL,
205 PRIMARY KEY (seq_0_id,seq_1_id)
206);
207
208
209INSERT INTO t4 VALUES (1,1);
210INSERT INTO t4 VALUES (2,1);
211
212CREATE TABLE t5 (
213 t5_id bigint(21) NOT NULL auto_increment,
214 _field_149 tinyint(4),
215 _field_156 varchar(128) DEFAULT '' NOT NULL,
216 _field_157 varchar(128) DEFAULT '' NOT NULL,
217 _field_158 varchar(128) DEFAULT '' NOT NULL,
218 _field_159 varchar(128) DEFAULT '' NOT NULL,
219 _field_160 varchar(128) DEFAULT '' NOT NULL,
220 _field_161 varchar(128) DEFAULT '' NOT NULL,
221 PRIMARY KEY (t5_id),
222 KEY _field_156 (_field_156),
223 KEY _field_157 (_field_157),
224 KEY _field_158 (_field_158),
225 KEY _field_159 (_field_159),
226 KEY _field_160 (_field_160),
227 KEY _field_161 (_field_161)
228);
229
230
231INSERT INTO t5 VALUES (1,0,'tomato','','','','','');
232INSERT INTO t5 VALUES (2,0,'cilantro','','','','','');
233
234CREATE TABLE t6 (
235 seq_0_id bigint(21) DEFAULT '0' NOT NULL,
236 seq_1_id bigint(21) DEFAULT '0' NOT NULL,
237 PRIMARY KEY (seq_0_id,seq_1_id)
238);
239
240INSERT INTO t6 VALUES (1,1);
241INSERT INTO t6 VALUES (1,2);
242INSERT INTO t6 VALUES (2,2);
243
244CREATE TABLE t7 (
245 t7_id bigint(21) NOT NULL auto_increment,
246 _field_143 tinyint(4),
247 _field_165 varchar(32),
248 _field_166 smallint(6) DEFAULT '0' NOT NULL,
249 PRIMARY KEY (t7_id),
250 KEY _field_166 (_field_166)
251);
252
253
254INSERT INTO t7 VALUES (1,0,'High',1);
255INSERT INTO t7 VALUES (2,0,'Medium',2);
256INSERT INTO t7 VALUES (3,0,'Low',3);
257
258select replace(t3._field_140, "\r","^M"),t3_id,min(t3._field_131), min(t3._field_135), min(t3._field_139), min(t3._field_137), min(link_alias_142._field_165), min(link_alias_133._field_72), min(t3._field_145), min(link_alias_148._field_156), replace(min(t3._field_140), "\r","^M"),t3.t3_id from t3 left join t4 on t4.seq_0_id = t3.t3_id left join t7 link_alias_142 on t4.seq_1_id = link_alias_142.t7_id left join t6 on t6.seq_0_id = t3.t3_id left join t1 link_alias_133 on t6.seq_1_id = link_alias_133.t1_id left join t2 on t2.seq_0_id = t3.t3_id left join t5 link_alias_148 on t2.seq_1_id = link_alias_148.t5_id where t3.t3_id in (1) group by t3.t3_id order by link_alias_142._field_166, _field_139, link_alias_133._field_72, _field_135, link_alias_148._field_156;
259
260drop table t1,t2,t3,t4,t5,t6,t7;
261
262#
263# Test of reverse with empty blob
264#
265
266create table t1 (a blob);
267insert into t1 values ("empty"),("");
268select a,reverse(a) from t1;
269drop table t1;
270
271#
272# Bug when blob is updated
273#
274
275create table t1 (id integer auto_increment unique,imagem LONGBLOB not null default '');
276insert into t1 (id) values (1);
277# We have to clean up the path in the results for safe comparison
278eval select
279 charset(load_file('../../std_data/words.dat')),
280 collation(load_file('../../std_data/words.dat')),
281 coercibility(load_file('../../std_data/words.dat'));
282--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
283eval explain extended select
284 charset(load_file('$MYSQLTEST_VARDIR/std_data/words.dat')),
285 collation(load_file('$MYSQLTEST_VARDIR/std_data/words.dat')),
286 coercibility(load_file('$MYSQLTEST_VARDIR/std_data/words.dat'));
287--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
288eval update t1 set imagem=load_file('$MYSQLTEST_VARDIR/std_data/words.dat') where id=1;
289select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1;
290drop table t1;
291--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
292eval create table t1 select load_file('$MYSQLTEST_VARDIR/std_data/words.dat') l;
293# We mask out the Privileges column because it differs for embedded server
294--replace_column 8 #
295show full fields from t1;
296drop table t1;
297
298#
299# Test blob's with end space (Bug #1651)
300# This is a bit changed since we now have true varchar
301#
302
303create table t1 (id integer primary key auto_increment, txt text not null);
304insert into t1 (txt) values ('Chevy ');
305select * from t1 where txt='Chevy';
306select * from t1 where txt='Chevy ';
307select * from t1 where txt='Chevy ' or txt='Chevy';
308select * from t1 where txt='Chevy' or txt='Chevy ';
309select * from t1 where id='1' or id='2';
310insert into t1 (txt) values('Ford');
311select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
312select * from t1 where txt='Chevy' or txt='Chevy ';
313select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
314select * from t1 where txt in ('Chevy ','Chevy');
315select * from t1 where txt in ('Chevy');
316select * from t1 where txt between 'Chevy' and 'Chevy';
317select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
318select * from t1 where txt between 'Chevy' and 'Chevy ';
319select * from t1 where txt < 'Chevy ';
320select * from t1 where txt <= 'Chevy';
321select * from t1 where txt > 'Chevy';
322select * from t1 where txt >= 'Chevy';
323drop table t1;
324
325create table t1 (id integer primary key auto_increment, txt text);
326insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL);
327select * from t1 where txt='Chevy' or txt is NULL;
328explain select * from t1 where txt='Chevy' or txt is NULL;
329select * from t1 where txt='Chevy ';
330select * from t1 where txt='Chevy ' or txt='Chevy';
331select * from t1 where txt='Chevy' or txt='Chevy ';
332select * from t1 where id='1' or id='2';
333insert into t1 (txt) values('Ford');
334select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford';
335select * from t1 where txt='Chevy' or txt='Chevy ';
336select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy';
337select * from t1 where txt in ('Chevy ','Chevy');
338select * from t1 where txt in ('Chevy');
339select * from t1 where txt between 'Chevy' and 'Chevy';
340select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy ';
341select * from t1 where txt between 'Chevy' and 'Chevy ';
342select * from t1 where txt < 'Chevy ';
343select * from t1 where txt < 'Chevy ' or txt is NULL;
344select * from t1 where txt <= 'Chevy';
345select * from t1 where txt > 'Chevy';
346select * from t1 where txt >= 'Chevy';
347alter table t1 modify column txt blob;
348explain select * from t1 where txt='Chevy' or txt is NULL;
349select * from t1 where txt='Chevy' or txt is NULL;
350explain select * from t1 where txt='Chevy' or txt is NULL order by txt;
351select * from t1 where txt='Chevy' or txt is NULL order by txt;
352drop table t1;
353
354CREATE TABLE t1 ( i int(11) NOT NULL default '0', c text NOT NULL, d varchar(1) NOT NULL DEFAULT ' ', PRIMARY KEY (i));
355INSERT t1 (i, c) VALUES (1,''),(2,''),(3,'asdfh'),(4,'');
356select max(i) from t1 where c = '';
357drop table t1;
358
359# End of 4.1 tests
360
361#
362# Test that blob's and varbinary are sorted according to length
363#
364
365CREATE table t1 (a blob);
366insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL);
367select hex(a) from t1 order by a;
368select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
369alter table t1 modify a varbinary(5);
370select hex(a) from t1 order by a;
371select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
372alter table t1 modify a char(5);
373select hex(a) from t1 order by a;
374select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
375alter table t1 modify a binary(5);
376select hex(a) from t1 order by a;
377select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0');
378drop table t1;
379
380#
381# Bug #19489: Inconsistent support for DEFAULT in TEXT columns
382#
383create table t1 (a text default '');
384show create table t1;
385insert into t1 values (default);
386select * from t1;
387drop table t1;
388set @@sql_mode='TRADITIONAL';
389--error ER_BLOB_CANT_HAVE_DEFAULT
390create table t1 (a text default '');
391set @@sql_mode='';
392
393#
394# Bug #32282: TEXT silently truncates when value is exactly 65536 bytes
395#
396
397CREATE TABLE t (c TEXT CHARSET ASCII);
398INSERT INTO t (c) VALUES (REPEAT('1',65537));
399INSERT INTO t (c) VALUES (REPEAT('2',65536));
400INSERT INTO t (c) VALUES (REPEAT('3',65535));
401SELECT LENGTH(c), CHAR_LENGTH(c) FROM t;
402DROP TABLE t;
403# Bug#15776: 32-bit signed int used for length of blob
404# """LONGBLOB: A BLOB column with a maximum length of 4,294,967,295 or 4GB."""
405#
406# Conditions should be in this order:
407# A size is not in the allowed bounds.
408# If the type is char-ish AND size is within the max blob size:
409# raise ER_TOO_BIG_FIELDLENGTH (suggest using BLOB)
410# If size is too small:
411# raise ER_PARSE_ERROR
412# raise ER_TOO_BIG_DISPLAYWIDTH
413
414# BLOB and TEXT types
415--disable_warnings
416drop table if exists b15776;
417--enable_warnings
418create table b15776 (data blob(2147483647));
419drop table b15776;
420--error ER_PARSE_ERROR
421create table b15776 (data blob(-1));
422create table b15776 (data blob(2147483648));
423drop table b15776;
424create table b15776 (data blob(4294967294));
425drop table b15776;
426create table b15776 (data blob(4294967295));
427drop table b15776;
428--error ER_TOO_BIG_DISPLAYWIDTH
429create table b15776 (data blob(4294967296));
430
431CREATE TABLE b15776 (a blob(2147483647), b blob(2147483648), c blob(4294967295), a1 text(2147483647), b1 text(2147483648), c1 text(4294967295) );
432show columns from b15776;
433drop table b15776;
434
435--error ER_TOO_BIG_DISPLAYWIDTH
436CREATE TABLE b15776 (a blob(4294967296));
437--error ER_TOO_BIG_DISPLAYWIDTH
438CREATE TABLE b15776 (a text(4294967296));
439--error ER_TOO_BIG_DISPLAYWIDTH
440CREATE TABLE b15776 (a blob(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
441--error ER_TOO_BIG_DISPLAYWIDTH
442CREATE TABLE b15776 (a text(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
443
444# Int types
445# "Another extension is supported by MySQL for optionally specifying the
446# display width of integer data types in parentheses following the base keyword
447# for the type (for example, INT(4)). This optional display width is used to
448# display integer values having a width less than the width specified for the
449# column by left-padding them with spaces." § Numeric Types
450CREATE TABLE b15776 (a int(0)); # 0 is special case, means default size
451INSERT INTO b15776 values (NULL), (1), (42), (654);
452SELECT * from b15776 ORDER BY a;
453DROP TABLE b15776;
454--error ER_PARSE_ERROR
455CREATE TABLE b15776 (a int(-1));
456CREATE TABLE b15776 (a int(255));
457DROP TABLE b15776;
458--error ER_TOO_BIG_DISPLAYWIDTH
459CREATE TABLE b15776 (a int(256));
460--error ER_PARSE_ERROR
461CREATE TABLE b15776 (data blob(-1));
462
463# Char types
464# Recommend BLOB
465--error ER_TOO_BIG_FIELDLENGTH
466CREATE TABLE b15776 (a char(2147483647));
467--error ER_TOO_BIG_FIELDLENGTH
468CREATE TABLE b15776 (a char(2147483648));
469--error ER_TOO_BIG_FIELDLENGTH
470CREATE TABLE b15776 (a char(4294967295));
471# Even BLOB won't hold
472--error ER_TOO_BIG_DISPLAYWIDTH
473CREATE TABLE b15776 (a char(4294967296));
474
475
476# Other numeric-ish types
477## For year, widths not "2" or "4" are silently rewritten to "4". But
478## When we complain about it, we say that the max is 255. We may be
479## talking about different things. It's confusing.
480CREATE TABLE b15776 (a year(4294967295));
481INSERT INTO b15776 VALUES (42);
482SELECT * FROM b15776;
483DROP TABLE b15776;
484--error ER_TOO_BIG_DISPLAYWIDTH
485CREATE TABLE b15776 (a year(4294967296));
486CREATE TABLE b15776 (a year(0)); # 0 is special case, means default size
487DROP TABLE b15776;
488--error ER_PARSE_ERROR
489CREATE TABLE b15776 (a year(-2));
490
491
492# We've already tested the case, but this should visually show that
493# widths that are too large to be interpreted cause DISPLAYWIDTH errors.
494--error ER_TOO_BIG_DISPLAYWIDTH
495CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
496--error ER_TOO_BIG_DISPLAYWIDTH
497CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
498--error ER_TOO_BIG_DISPLAYWIDTH
499CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
500
501## Do not select, too much memory needed.
502CREATE TABLE b15776 select cast(null as char(4294967295));
503show columns from b15776;
504drop table b15776;
505CREATE TABLE b15776 select cast(null as nchar(4294967295));
506show columns from b15776;
507drop table b15776;
508CREATE TABLE b15776 select cast(null as binary(4294967295));
509show columns from b15776;
510drop table b15776;
511
512explain select cast(1 as char(4294967295));
513explain select cast(1 as nchar(4294967295));
514explain select cast(1 as binary(4294967295));
515
516--error ER_TOO_BIG_DISPLAYWIDTH
517explain select cast(1 as char(4294967296));
518--error ER_TOO_BIG_DISPLAYWIDTH
519explain select cast(1 as nchar(4294967296));
520--error ER_TOO_BIG_DISPLAYWIDTH
521explain select cast(1 as binary(4294967296));
522
523--error ER_PARSE_ERROR
524explain select cast(1 as decimal(-1));
525explain select cast(1 as decimal(64, 30));
526# It's not as important which errors are raised for these, since the
527# limit is nowhere near 2**32. We may fix these eventually to take
528# 4294967295 and still reject it because it's greater than 64 or 30,
529# but that's not a high priority and the parser needn't worry about
530# such a weird case.
531--error ER_TOO_BIG_SCALE,ER_PARSE_ERROR
532explain select cast(1 as decimal(64, 999999999999999999999999999999));
533--error ER_TOO_BIG_PRECISION,ER_PARSE_ERROR
534explain select cast(1 as decimal(4294967296));
535--error ER_TOO_BIG_PRECISION,ER_PARSE_ERROR
536explain select cast(1 as decimal(999999999999999999999999999999999999));
537
538explain select convert(1, char(4294967295));
539--error ER_TOO_BIG_DISPLAYWIDTH
540explain select convert(1, char(4294967296));
541--error ER_TOO_BIG_DISPLAYWIDTH
542explain select convert(1, char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
543explain select convert(1, nchar(4294967295));
544--error ER_TOO_BIG_DISPLAYWIDTH
545explain select convert(1, nchar(4294967296));
546--error ER_TOO_BIG_DISPLAYWIDTH
547explain select convert(1, nchar(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
548explain select convert(1, binary(4294967295));
549--error ER_TOO_BIG_DISPLAYWIDTH
550explain select convert(1, binary(4294967296));
551--error ER_TOO_BIG_DISPLAYWIDTH
552explain select convert(1, binary(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999));
553
554--echo End of 5.0 tests
555
556#
557# Bug #33969: Updating a text field via a left join
558#
559
560CREATE TABLE t1(id INT NOT NULL);
561CREATE TABLE t2(id INT NOT NULL, c TEXT NOT NULL);
562
563INSERT INTO t1 VALUES (1);
564INSERT INTO t2 VALUES (1, '');
565
566UPDATE t2 SET c = REPEAT('1', 70000);
567SELECT LENGTH(c) FROM t2;
568
569UPDATE t1 LEFT JOIN t2 USING(id) SET t2.c = REPEAT('1', 70000) WHERE t1.id = 1;
570SELECT LENGTH(c) FROM t2;
571
572DROP TABLE t1, t2;
573
574--echo # Bug #52160: crash and inconsistent results when grouping
575--echo # by a function and column
576
577CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1;
578
579CREATE TABLE t1(a CHAR(1));
580INSERT INTO t1 VALUES ('0'), ('0');
581
582SELECT COUNT(*) FROM t1 GROUP BY f1(), a;
583
584DROP FUNCTION f1;
585DROP TABLE t1;
586
587
588
589SET default_storage_engine=@old_default_storage_engine;
590
591
592########################################################################
593# Modified test from myisam-blob.test
594########################################################################
595
596SET @old_max_heap_table_size = @@global.max_heap_table_size;
597SET @old_max_allowed_packet = @@global.max_allowed_packet;
598SET GLOBAL max_heap_table_size = 18 * 1024 * 1024;
599SET GLOBAL max_allowed_packet = 24 * 1024 * 1024;
600
601connect(con1, localhost, root,,);
602connection con1;
603
604--disable_warnings
605drop table if exists t1;
606--enable_warnings
607
608# Bug #2159 (Problem with update of blob to > 16M)
609
610CREATE TABLE t1 (data LONGBLOB) ENGINE=memory;
611INSERT INTO t1 (data) VALUES (NULL);
612UPDATE t1 set data=repeat('a',18*1024*1024);
613select length(data) from t1;
614delete from t1 where left(data,1)='a';
615truncate table t1;
616INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024));
617INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024));
618delete from t1 where left(data,1)='b';
619
620# now we have two blocks in the table, first is a 1M record and second is
621# a 16M delete block.
622
623UPDATE t1 set data=repeat('c',17*1024*1024);
624delete from t1 where left(data,1)='c';
625
626INSERT INTO t1 set data=repeat('a',18*1024*1024);
627select length(data) from t1;
628alter table t1 modify data blob;
629select length(data) from t1;
630drop table t1;
631
632CREATE TABLE t1 (data BLOB) ENGINE=myisam;
633INSERT INTO t1 (data) VALUES (NULL);
634UPDATE t1 set data=repeat('a',18*1024*1024);
635select length(data) from t1;
636drop table t1;
637
638disconnect con1;
639connection default;
640
641SET GLOBAL max_allowed_packet = @old_max_allowed_packet;
642SET GLOBAL max_heap_table_size = @old_max_heap_table_size;
6430
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1drop table if exists t1;
2CREATE TABLE t1 (
3f1 VARCHAR ( 128 ) ,
4f2 VARCHAR ( 32 ),
5PRIMARY KEY ( f2 ( 2 ) , f1 )
6)
7ENGINE=HEAP KEY_BLOCK_SIZE = 512;
8INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' );
9Warnings:
10Warning 1048 Column 'f1' cannot be null
11INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' );
12Warnings:
13Warning 1048 Column 'f1' cannot be null
14DROP TABLE t1;
150
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1#
2# Test for bug lp:783366
3#
4
5--disable_warnings
6drop table if exists t1;
7--enable_warnings
8
9CREATE TABLE t1 (
10 f1 VARCHAR ( 128 ) ,
11 f2 VARCHAR ( 32 ),
12 PRIMARY KEY ( f2 ( 2 ) , f1 )
13)
14ENGINE=HEAP KEY_BLOCK_SIZE = 512;
15INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' );
16INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' );
17
18DROP TABLE t1;
19
200
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result 1970-01-01 00:00:00 +0000
@@ -1,132 +0,0 @@
1DROP TABLE IF EXISTS local_1_1;
2CREATE TABLE IF NOT EXISTS local_1_1 ( f1 VARCHAR ( 32 ) NOT NULL , f2 VARCHAR ( 128 ) NOT NULL DEFAULT 'cboepfaobilcchabvglgjdbynog' , f3 VARCHAR ( 32 ) NOT NULL , f4 VARBINARY ( 32 ) NOT NULL , f5 VARBINARY ( 1024 ) DEFAULT 'ycboepfao' , KEY ( f1 /* ( 2 ) */ , f2 /* ( 2 ) */ ) ) ENGINE=HEAP KEY_BLOCK_SIZE = 512;
3INSERT IGNORE INTO local_1_1 VALUES ( REPEAT( 'ervydbimvmbqmsowdbsa' , 1 ) , 'v' , NULL , NULL , REPEAT( 'mervydbimvmbqms' , 5 ) ) , ( 'p' , 6 , 'n' , REPEAT( 'imervydbimvmbqmsowdbs' , 4 ) , 'do' ) , ( NULL , NULL , REPEAT( 'himervydbimvmbqmsowdbsaybudvwaamvhempuublmia' , 6 ) , REPEAT('X', POW(2, 20) * 2) , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT('X', POW(2, 20) * 2) , REPEAT( 'Y' , 763 ) , NULL , REPEAT('X', POW(2, 20) * 2) , NULL ) , ( REPEAT('X', POW(2, 20) * 2) , 'time' , 'how' , 2 , REPEAT( 'Y' , 107 ) ) , ( REPEAT( 'hyshimervydbimvmbqmsowdbsaybud' , 5 ) , 2 , 8 , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( 'come' , NULL , 'i' , NULL , REPEAT('X', POW(2, 20) * 2) );
4Warnings:
5Warning 1048 Column 'f3' cannot be null
6Warning 1048 Column 'f4' cannot be null
7Warning 1265 Data truncated for column 'f4' at row 2
8Warning 1048 Column 'f1' cannot be null
9Warning 1048 Column 'f2' cannot be null
10Warning 1265 Data truncated for column 'f3' at row 3
11Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
12Warning 1048 Column 'f4' cannot be null
13Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
14Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
15Warning 1048 Column 'f1' cannot be null
16Warning 1265 Data truncated for column 'f2' at row 4
17Warning 1048 Column 'f3' cannot be null
18Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
19Warning 1048 Column 'f4' cannot be null
20Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
21Warning 1048 Column 'f1' cannot be null
22Warning 1265 Data truncated for column 'f1' at row 6
23Warning 1048 Column 'f4' cannot be null
24Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
25Warning 1048 Column 'f2' cannot be null
26Warning 1048 Column 'f4' cannot be null
27Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
28INSERT IGNORE INTO local_1_1 VALUES ( 'ok' , NULL , REPEAT( 'Y' , 651 ) , 2 , 5 ) , ( REPEAT( 'zylcdzkfrqpihyshimervydbimvmbqmsowdbsaybu' , 3 ) , REPEAT( 'Y' , 282 ) , REPEAT( 'X' , 0 ) , REPEAT( 'Y' , 369 ) , 'g' ) , ( 'think' , REPEAT('X', POW(2, 20) * 2), NULL , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT( 'Y' , 468 ) , REPEAT( 'dfvbrzylcd' , 6 ) , REPEAT( 'Y' , 264 ) , NULL , 'c' ) , ( NULL , NULL , REPEAT( 'srdfvbrzylcdzkfrqpihyshimervydbimvmbqms' , 0 ) , REPEAT( 'Y' , 244 ) , 7 ) , ( REPEAT( 'Y' , 0 ) , 'how' , 'going' , 'q' , NULL );
29Warnings:
30Warning 1048 Column 'f2' cannot be null
31Warning 1265 Data truncated for column 'f3' at row 1
32Warning 1265 Data truncated for column 'f1' at row 2
33Warning 1265 Data truncated for column 'f2' at row 2
34Warning 1265 Data truncated for column 'f4' at row 2
35Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
36Warning 1048 Column 'f2' cannot be null
37Warning 1048 Column 'f3' cannot be null
38Warning 1048 Column 'f4' cannot be null
39Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
40Warning 1265 Data truncated for column 'f1' at row 4
41Warning 1265 Data truncated for column 'f3' at row 4
42Warning 1048 Column 'f4' cannot be null
43Warning 1048 Column 'f1' cannot be null
44Warning 1048 Column 'f2' cannot be null
45Warning 1265 Data truncated for column 'f4' at row 5
46INSERT IGNORE INTO local_1_1 VALUES ( REPEAT('X', POW(2, 20) * 2) , NULL , NULL , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT('X', POW(2, 20) * 2) , NULL , REPEAT('X', POW(2, 20) * 2) , 'this' , 'e' ) , ( NULL , 'think' , NULL , 'were' , NULL ) , ( 9 , 'l' , 'c' , 3 , REPEAT( 'geysrdfvbrzylcdzkfrqpihyshimervydbi' , 5 ) ) , ( NULL , NULL , NULL , 'h' , 'w' );
47Warnings:
48Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
49Warning 1048 Column 'f1' cannot be null
50Warning 1048 Column 'f2' cannot be null
51Warning 1048 Column 'f3' cannot be null
52Warning 1048 Column 'f4' cannot be null
53Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
54Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
55Warning 1048 Column 'f1' cannot be null
56Warning 1048 Column 'f2' cannot be null
57Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated
58Warning 1048 Column 'f3' cannot be null
59Warning 1048 Column 'f1' cannot be null
60Warning 1048 Column 'f3' cannot be null
61Warning 1048 Column 'f1' cannot be null
62Warning 1048 Column 'f2' cannot be null
63Warning 1048 Column 'f3' cannot be null
64INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
65INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
66UPDATE local_1_1 SET f5 = REPEAT ('X', 215566);
67Warnings:
68Warning 1265 Data truncated for column 'f5' at row 1
69Warning 1265 Data truncated for column 'f5' at row 2
70Warning 1265 Data truncated for column 'f5' at row 3
71Warning 1265 Data truncated for column 'f5' at row 4
72Warning 1265 Data truncated for column 'f5' at row 5
73Warning 1265 Data truncated for column 'f5' at row 6
74Warning 1265 Data truncated for column 'f5' at row 7
75Warning 1265 Data truncated for column 'f5' at row 8
76Warning 1265 Data truncated for column 'f5' at row 9
77Warning 1265 Data truncated for column 'f5' at row 10
78Warning 1265 Data truncated for column 'f5' at row 11
79Warning 1265 Data truncated for column 'f5' at row 12
80Warning 1265 Data truncated for column 'f5' at row 13
81Warning 1265 Data truncated for column 'f5' at row 14
82Warning 1265 Data truncated for column 'f5' at row 15
83Warning 1265 Data truncated for column 'f5' at row 16
84Warning 1265 Data truncated for column 'f5' at row 17
85Warning 1265 Data truncated for column 'f5' at row 18
86Warning 1265 Data truncated for column 'f5' at row 19
87Warning 1265 Data truncated for column 'f5' at row 20
88Warning 1265 Data truncated for column 'f5' at row 21
89Warning 1265 Data truncated for column 'f5' at row 22
90Warning 1265 Data truncated for column 'f5' at row 23
91Warning 1265 Data truncated for column 'f5' at row 24
92Warning 1265 Data truncated for column 'f5' at row 25
93Warning 1265 Data truncated for column 'f5' at row 26
94Warning 1265 Data truncated for column 'f5' at row 27
95Warning 1265 Data truncated for column 'f5' at row 28
96Warning 1265 Data truncated for column 'f5' at row 29
97Warning 1265 Data truncated for column 'f5' at row 30
98Warning 1265 Data truncated for column 'f5' at row 31
99Warning 1265 Data truncated for column 'f5' at row 32
100Warning 1265 Data truncated for column 'f5' at row 33
101Warning 1265 Data truncated for column 'f5' at row 34
102Warning 1265 Data truncated for column 'f5' at row 35
103Warning 1265 Data truncated for column 'f5' at row 36
104Warning 1265 Data truncated for column 'f5' at row 37
105Warning 1265 Data truncated for column 'f5' at row 38
106Warning 1265 Data truncated for column 'f5' at row 39
107Warning 1265 Data truncated for column 'f5' at row 40
108Warning 1265 Data truncated for column 'f5' at row 41
109Warning 1265 Data truncated for column 'f5' at row 42
110Warning 1265 Data truncated for column 'f5' at row 43
111Warning 1265 Data truncated for column 'f5' at row 44
112Warning 1265 Data truncated for column 'f5' at row 45
113Warning 1265 Data truncated for column 'f5' at row 46
114Warning 1265 Data truncated for column 'f5' at row 47
115Warning 1265 Data truncated for column 'f5' at row 48
116Warning 1265 Data truncated for column 'f5' at row 49
117Warning 1265 Data truncated for column 'f5' at row 50
118Warning 1265 Data truncated for column 'f5' at row 51
119Warning 1265 Data truncated for column 'f5' at row 52
120Warning 1265 Data truncated for column 'f5' at row 53
121Warning 1265 Data truncated for column 'f5' at row 54
122Warning 1265 Data truncated for column 'f5' at row 55
123Warning 1265 Data truncated for column 'f5' at row 56
124Warning 1265 Data truncated for column 'f5' at row 57
125Warning 1265 Data truncated for column 'f5' at row 58
126Warning 1265 Data truncated for column 'f5' at row 59
127Warning 1265 Data truncated for column 'f5' at row 60
128Warning 1265 Data truncated for column 'f5' at row 61
129Warning 1265 Data truncated for column 'f5' at row 62
130Warning 1265 Data truncated for column 'f5' at row 63
131Warning 1265 Data truncated for column 'f5' at row 64
132DROP TABLE local_1_1;
1330
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test 1970-01-01 00:00:00 +0000
@@ -1,16 +0,0 @@
1# Testcase for the bug https://bugs.launchpad.net/percona-projects-qa/+bug/783451
2# With dynamic row format in HEAP and the UPDATE statement that significantly
3# increases the data size, the table scan in-progress desyncs its table position state.
4# Run with Valgrind if it does not crash for you.
5--disable_warnings
6DROP TABLE IF EXISTS local_1_1;
7--enable_warnings
8CREATE TABLE IF NOT EXISTS local_1_1 ( f1 VARCHAR ( 32 ) NOT NULL , f2 VARCHAR ( 128 ) NOT NULL DEFAULT 'cboepfaobilcchabvglgjdbynog' , f3 VARCHAR ( 32 ) NOT NULL , f4 VARBINARY ( 32 ) NOT NULL , f5 VARBINARY ( 1024 ) DEFAULT 'ycboepfao' , KEY ( f1 /* ( 2 ) */ , f2 /* ( 2 ) */ ) ) ENGINE=HEAP KEY_BLOCK_SIZE = 512;
9INSERT IGNORE INTO local_1_1 VALUES ( REPEAT( 'ervydbimvmbqmsowdbsa' , 1 ) , 'v' , NULL , NULL , REPEAT( 'mervydbimvmbqms' , 5 ) ) , ( 'p' , 6 , 'n' , REPEAT( 'imervydbimvmbqmsowdbs' , 4 ) , 'do' ) , ( NULL , NULL , REPEAT( 'himervydbimvmbqmsowdbsaybudvwaamvhempuublmia' , 6 ) , REPEAT('X', POW(2, 20) * 2) , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT('X', POW(2, 20) * 2) , REPEAT( 'Y' , 763 ) , NULL , REPEAT('X', POW(2, 20) * 2) , NULL ) , ( REPEAT('X', POW(2, 20) * 2) , 'time' , 'how' , 2 , REPEAT( 'Y' , 107 ) ) , ( REPEAT( 'hyshimervydbimvmbqmsowdbsaybud' , 5 ) , 2 , 8 , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( 'come' , NULL , 'i' , NULL , REPEAT('X', POW(2, 20) * 2) );
10INSERT IGNORE INTO local_1_1 VALUES ( 'ok' , NULL , REPEAT( 'Y' , 651 ) , 2 , 5 ) , ( REPEAT( 'zylcdzkfrqpihyshimervydbimvmbqmsowdbsaybu' , 3 ) , REPEAT( 'Y' , 282 ) , REPEAT( 'X' , 0 ) , REPEAT( 'Y' , 369 ) , 'g' ) , ( 'think' , REPEAT('X', POW(2, 20) * 2), NULL , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT( 'Y' , 468 ) , REPEAT( 'dfvbrzylcd' , 6 ) , REPEAT( 'Y' , 264 ) , NULL , 'c' ) , ( NULL , NULL , REPEAT( 'srdfvbrzylcdzkfrqpihyshimervydbimvmbqms' , 0 ) , REPEAT( 'Y' , 244 ) , 7 ) , ( REPEAT( 'Y' , 0 ) , 'how' , 'going' , 'q' , NULL );
11INSERT IGNORE INTO local_1_1 VALUES ( REPEAT('X', POW(2, 20) * 2) , NULL , NULL , NULL , REPEAT('X', POW(2, 20) * 2) ) , ( REPEAT('X', POW(2, 20) * 2) , NULL , REPEAT('X', POW(2, 20) * 2) , 'this' , 'e' ) , ( NULL , 'think' , NULL , 'were' , NULL ) , ( 9 , 'l' , 'c' , 3 , REPEAT( 'geysrdfvbrzylcdzkfrqpihyshimervydbi' , 5 ) ) , ( NULL , NULL , NULL , 'h' , 'w' );
12--enable_warnings
13INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
14INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
15UPDATE local_1_1 SET f5 = REPEAT ('X', 215566);
16DROP TABLE local_1_1;
170
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result 1970-01-01 00:00:00 +0000
@@ -1,58 +0,0 @@
1CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
2PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
3SHOW TABLE STATUS LIKE 't1';
4Name 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
5t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC
6DROP TABLE t1;
7CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
8PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
9ERROR 42000: Incorrect usage/placement of 'key_block_size'
10SHOW TABLE STATUS LIKE 't1';
11Name 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
12CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
13PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
14SHOW TABLE STATUS LIKE 't1';
15Name 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
16t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=34
17DROP TABLE t1;
18CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
19PRIMARY KEY (f1)) KEY_BLOCK_SIZE=123 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
20SHOW TABLE STATUS LIKE 't1';
21Name 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
22t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=123
23DROP TABLE t1;
24CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
25PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
26SHOW TABLE STATUS LIKE 't1';
27Name 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
28t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=1000
29DROP TABLE t1;
30CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
31PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
32SHOW TABLE STATUS LIKE 't1';
33Name 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
34t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC
35DROP TABLE t1;
36CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
37PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
38ERROR 42000: Incorrect usage/placement of 'key_block_size'
39SHOW TABLE STATUS LIKE 't1';
40Name 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
41CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
42PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
43SHOW TABLE STATUS LIKE 't1';
44Name 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
45t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=34
46DROP TABLE t1;
47CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
48PRIMARY KEY (f1)) KEY_BLOCK_SIZE=121 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
49SHOW TABLE STATUS LIKE 't1';
50Name 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
51t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=121
52DROP TABLE t1;
53CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
54PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
55SHOW TABLE STATUS LIKE 't1';
56Name 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
57t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=1000
58DROP TABLE t1;
590
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test 1970-01-01 00:00:00 +0000
@@ -1,64 +0,0 @@
1#
2# Bug #784464: Silent conversion from Dynamic to Fixed row_format for certain
3# values of key_block_size.
4# Also see percona_heap_bug784464_32bit and percona_heap_bug784464_64bit tests.
5#
6
7CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
8 PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
9--replace_column 6 X 8 X
10SHOW TABLE STATUS LIKE 't1';
11DROP TABLE t1;
12
13--error ER_CANT_USE_OPTION_HERE
14CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
15 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
16SHOW TABLE STATUS LIKE 't1';
17
18CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
19 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
20--replace_column 6 X 8 X
21SHOW TABLE STATUS LIKE 't1';
22DROP TABLE t1;
23
24CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
25 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=123 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
26--replace_column 6 X 8 X
27SHOW TABLE STATUS LIKE 't1';
28DROP TABLE t1;
29
30CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
31 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
32--replace_column 6 X 8 X
33SHOW TABLE STATUS LIKE 't1';
34DROP TABLE t1;
35
36CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
37 PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
38--replace_column 6 X 8 X
39SHOW TABLE STATUS LIKE 't1';
40DROP TABLE t1;
41
42--error ER_CANT_USE_OPTION_HERE
43CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
44 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
45SHOW TABLE STATUS LIKE 't1';
46
47CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
48 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
49--replace_column 6 X 8 X
50SHOW TABLE STATUS LIKE 't1';
51DROP TABLE t1;
52
53CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
54 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=121 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
55--replace_column 6 X 8 X
56SHOW TABLE STATUS LIKE 't1';
57DROP TABLE t1;
58
59CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
60 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
61--replace_column 6 X 8 X
62SHOW TABLE STATUS LIKE 't1';
63DROP TABLE t1;
64
650
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result 1970-01-01 00:00:00 +0000
@@ -1,12 +0,0 @@
1CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
2PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
3SHOW TABLE STATUS LIKE 't1';
4Name 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
5t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=124
6DROP TABLE t1;
7CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
8PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
9SHOW TABLE STATUS LIKE 't1';
10Name 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
11t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=122
12DROP TABLE t1;
130
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1# 32-bit platform specific parts of tests for LP bug #784464
2
3--source include/have_32bit.inc
4
5CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
6 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
7--replace_column 6 X 8 X
8SHOW TABLE STATUS LIKE 't1';
9DROP TABLE t1;
10
11CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
12 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
13--replace_column 6 X 8 X
14SHOW TABLE STATUS LIKE 't1';
15DROP TABLE t1;
160
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result 1970-01-01 00:00:00 +0000
@@ -1,12 +0,0 @@
1CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
2PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
3SHOW TABLE STATUS LIKE 't1';
4Name 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
5t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=124
6DROP TABLE t1;
7CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
8PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
9SHOW TABLE STATUS LIKE 't1';
10Name 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
11t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=122
12DROP TABLE t1;
130
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1# 64-bit platform specific parts of tests for LP bug #784464
2
3--source include/have_64bit.inc
4
5CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32),
6 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
7--replace_column 6 X 8 X
8SHOW TABLE STATUS LIKE 't1';
9DROP TABLE t1;
10
11CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96),
12 PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC;
13--replace_column 6 X 8 X
14SHOW TABLE STATUS LIKE 't1';
15DROP TABLE t1;
160
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1CREATE TABLE t1 ( f1 VARCHAR(30)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
2SHOW TABLE STATUS LIKE 't1';
3Name 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
4t1 MEMORY 10 Fixed 0 32 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC
5DROP TABLE t1;
6CREATE TABLE t1 ( f1 VARCHAR(31)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
7SHOW TABLE STATUS LIKE 't1';
8Name 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
9t1 MEMORY 10 Fixed 0 33 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC
10DROP TABLE t1;
11CREATE TABLE t1 ( f1 VARCHAR(32)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
12SHOW TABLE STATUS LIKE 't1';
13Name 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
14t1 MEMORY 10 Fixed 0 34 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC
15DROP TABLE t1;
160
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1#
2# Bug #784468: Tables with VARCHAR(<31) are created as row_format = Fixed
3#
4
5CREATE TABLE t1 ( f1 VARCHAR(30)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
6--replace_column 8 X
7SHOW TABLE STATUS LIKE 't1';
8DROP TABLE t1;
9
10CREATE TABLE t1 ( f1 VARCHAR(31)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
11--replace_column 8 X
12SHOW TABLE STATUS LIKE 't1';
13DROP TABLE t1;
14
15CREATE TABLE t1 ( f1 VARCHAR(32)) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
16--replace_column 8 X
17SHOW TABLE STATUS LIKE 't1';
18DROP TABLE t1;
19
200
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result 1970-01-01 00:00:00 +0000
@@ -1,9 +0,0 @@
1CREATE TABLE t1 (f2 VARCHAR (32), f4 LONGBLOB, f5 TEXT) ENGINE=HEAP;
2INSERT INTO t1 VALUES ('a', NULL, NULL),
3('b' , REPEAT('a' , 593338), REPEAT('a', 800));
4UPDATE t1 SET f2 = 'c' WHERE f4 = 'd';
5SELECT LENGTH(f2), LENGTH(f4), LENGTH(f5) FROM t1;
6LENGTH(f2) LENGTH(f4) LENGTH(f5)
71 NULL NULL
81 593338 800
9DROP TABLE t1;
100
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test 1970-01-01 00:00:00 +0000
@@ -1,15 +0,0 @@
1#
2# Bug #788544: Valgrind warnings/crash in mysql-55-eb-blobs in
3# hp_extract_record / hp_process_field_data_to_chunkset
4#
5
6CREATE TABLE t1 (f2 VARCHAR (32), f4 LONGBLOB, f5 TEXT) ENGINE=HEAP;
7
8INSERT INTO t1 VALUES ('a', NULL, NULL),
9 ('b' , REPEAT('a' , 593338), REPEAT('a', 800));
10
11UPDATE t1 SET f2 = 'c' WHERE f4 = 'd';
12
13SELECT LENGTH(f2), LENGTH(f4), LENGTH(f5) FROM t1;
14
15DROP TABLE t1;
160
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1CREATE TABLE t1 (f1 VARCHAR (32), f2 VARCHAR (128), f3 VARBINARY (128),
2f4 VARBINARY (512), f5 VARBINARY (1024),
3KEY (f2(1))) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
4INSERT IGNORE INTO t1 VALUES (2, NULL, 6, REPEAT('glugcgqk', 5), 'look'),
5(REPEAT( 'kglugcgqkin', 6), 'if', 'was', NULL, NULL),
6(NULL, NULL, NULL, NULL, 7);
7Warnings:
8Warning 1265 Data truncated for column 'f1' at row 2
9SELECT * FROM t1;
10f1 f2 f3 f4 f5
112 NULL 6 glugcgqkglugcgqkglugcgqkglugcgqkglugcgqk look
12kglugcgqkinkglugcgqkinkglugcgqki if was NULL NULL
13NULL NULL NULL NULL 7
14DELETE FROM t1 WHERE f5 <=> NULL;
15SELECT * FROM t1;
16f1 f2 f3 f4 f5
172 NULL 6 glugcgqkglugcgqkglugcgqkglugcgqkglugcgqk look
18NULL NULL NULL NULL 7
19DROP TABLE t1;
200
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test 1970-01-01 00:00:00 +0000
@@ -1,19 +0,0 @@
1#
2# Bug #788576: Second crash in hp_movelink with mysql-55-eb
3#
4
5CREATE TABLE t1 (f1 VARCHAR (32), f2 VARCHAR (128), f3 VARBINARY (128),
6 f4 VARBINARY (512), f5 VARBINARY (1024),
7 KEY (f2(1))) ENGINE=HEAP ROW_FORMAT=DYNAMIC;
8
9INSERT IGNORE INTO t1 VALUES (2, NULL, 6, REPEAT('glugcgqk', 5), 'look'),
10 (REPEAT( 'kglugcgqkin', 6), 'if', 'was', NULL, NULL),
11 (NULL, NULL, NULL, NULL, 7);
12
13SELECT * FROM t1;
14
15DELETE FROM t1 WHERE f5 <=> NULL;
16
17SELECT * FROM t1;
18
19DROP TABLE t1;
200
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result 1970-01-01 00:00:00 +0000
@@ -1,18 +0,0 @@
1CREATE TABLE IF NOT EXISTS local_1_1 (f1 VARCHAR (32) NOT NULL,
2f2 VARCHAR (128) NOT NULL,
3f3 BLOB NOT NULL,
4f4 TEXT,
5f5 BLOB (1024),
6PRIMARY KEY (f1),
7KEY (f1 , f2)
8) ENGINE=HEAP ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE = 2048;
9INSERT IGNORE INTO local_1_1 VALUES
10(REPEAT('egqeqfxwaejpqixuvvtentruyqadxiybjdfqjspfbyjdjczrrwjnagkzsoagatqookhsgtrvvbxacppljfzaseidqggxvuirm' , 5), NULL, NULL, NULL, REPEAT('hegqeqfxwaejpqixuvvtentruyqadxiy', 1)),
11('you', NULL, 0, REPEAT("X", 2048) , 0);
12Warnings:
13Warning 1265 Data truncated for column 'f1' at row 1
14Warning 1048 Column 'f2' cannot be null
15Warning 1048 Column 'f3' cannot be null
16Warning 1048 Column 'f2' cannot be null
17INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
18DROP TABLE local_1_1;
190
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test 1970-01-01 00:00:00 +0000
@@ -1,20 +0,0 @@
1#
2# Bug #788722: Second valgrind warning around hp_extract_record in mysql-55-eb-blobs
3#
4
5CREATE TABLE IF NOT EXISTS local_1_1 (f1 VARCHAR (32) NOT NULL,
6 f2 VARCHAR (128) NOT NULL,
7 f3 BLOB NOT NULL,
8 f4 TEXT,
9 f5 BLOB (1024),
10 PRIMARY KEY (f1),
11 KEY (f1 , f2)
12) ENGINE=HEAP ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE = 2048;
13
14INSERT IGNORE INTO local_1_1 VALUES
15 (REPEAT('egqeqfxwaejpqixuvvtentruyqadxiybjdfqjspfbyjdjczrrwjnagkzsoagatqookhsgtrvvbxacppljfzaseidqggxvuirm' , 5), NULL, NULL, NULL, REPEAT('hegqeqfxwaejpqixuvvtentruyqadxiy', 1)),
16 ('you', NULL, 0, REPEAT("X", 2048) , 0);
17
18INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1;
19
20DROP TABLE local_1_1;
210
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result 2011-06-06 10:34:16 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result 1970-01-01 00:00:00 +0000
@@ -1,7 +0,0 @@
1CREATE TABLE t1 (f1 VARCHAR (128), f2 VARCHAR (128), f3 VARBINARY (512),
2f4 TEXT (65525), f5 VARCHAR (128), KEY (f1(1))) ENGINE=HEAP;
3INSERT IGNORE INTO t1 VALUES
4( 'o' , "" , NULL , "" , 0 ) ,
5(NULL, "" , "" , "" , 'f' ) ;
6INSERT IGNORE INTO t1 SELECT * FROM t1;
7DROP TABLE t1;
80
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1#
2# Bug #789131: Valgrind warning in MyISAM in mysql-55-eb-blobs
3#
4
5CREATE TABLE t1 (f1 VARCHAR (128), f2 VARCHAR (128), f3 VARBINARY (512),
6 f4 TEXT (65525), f5 VARCHAR (128), KEY (f1(1))) ENGINE=HEAP;
7
8INSERT IGNORE INTO t1 VALUES
9 ( 'o' , "" , NULL , "" , 0 ) ,
10 (NULL, "" , "" , "" , 'f' ) ;
11
12INSERT IGNORE INTO t1 SELECT * FROM t1;
13
14DROP TABLE t1;
15\ No newline at end of file0\ No newline at end of file
161
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_var.result'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_var.result 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_var.result 1970-01-01 00:00:00 +0000
@@ -1,194 +0,0 @@
1drop table if exists t1;
2set @@session.max_heap_table_size=16*1024*1024;
3create table t1 (a int not null, b varchar(400), c int, primary key (a), key (c)) engine=heap comment="testing heaps" key_block_size=128;
4ERROR 42000: Incorrect usage/placement of 'key_block_size'
5create table t1 (a int not null, b int, c varchar(400), primary key (a), key (b)) engine=heap comment="testing heaps" key_block_size=4;
6ERROR 42000: Incorrect usage/placement of 'key_block_size'
7create table t1 (a int not null, b int, c varchar(400), d varchar(400), primary key (a), key (b)) engine=heap comment="testing heaps" key_block_size=24;
8show table status like "t1";
9Name t1
10Engine MEMORY
11Version 10
12Row_format Dynamic
13Rows 0
14Avg_row_length X
15Data_length X
16Max_data_length X
17Index_length X
18Data_free X
19Auto_increment X
20Create_time X
21Update_time X
22Check_time X
23Collation latin1_swedish_ci
24Checksum NULL
25Create_options KEY_BLOCK_SIZE=24
26Comment testing heaps
27insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789');
28select * from t1;
29a b c d
301 1 012 NULL
312 2 0123456789 NULL
323 3 012345678901234567890123456789 NULL
334 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
34delete from t1 where a = 3;
35select * from t1;
36a b c d
371 1 012 NULL
382 2 0123456789 NULL
394 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
40insert into t1 values (5,5,NULL,'0123'), (6,6,NULL,'0123');
41select * from t1;
42a b c d
431 1 012 NULL
442 2 0123456789 NULL
456 6 NULL 0123
465 5 NULL 0123
474 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
48update t1 set c = '012345678901234567890123456789' where a = 2;
49select * from t1;
50a b c d
511 1 012 NULL
522 2 012345678901234567890123456789 NULL
536 6 NULL 0123
545 5 NULL 0123
554 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
56update t1 set c = '0123456789' where a = 2;
57select * from t1;
58a b c d
591 1 012 NULL
602 2 0123456789 NULL
616 6 NULL 0123
625 5 NULL 0123
634 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
64insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL);
65select * from t1;
66a b c d
671 1 012 NULL
682 2 0123456789 NULL
696 6 NULL 0123
705 5 NULL 0123
714 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
727 7 0123 NULL
738 8 0123 NULL
74show table status like "t1";
75Name t1
76Engine MEMORY
77Version 10
78Row_format Dynamic
79Rows 7
80Avg_row_length X
81Data_length X
82Max_data_length X
83Index_length X
84Data_free X
85Auto_increment X
86Create_time X
87Update_time X
88Check_time X
89Collation latin1_swedish_ci
90Checksum NULL
91Create_options KEY_BLOCK_SIZE=24
92Comment testing heaps
93alter table t1 key_block_size = 0;
94show table status like "t1";
95Name t1
96Engine MEMORY
97Version 10
98Row_format Dynamic
99Rows 7
100Avg_row_length X
101Data_length X
102Max_data_length X
103Index_length X
104Data_free X
105Auto_increment X
106Create_time X
107Update_time X
108Check_time X
109Collation latin1_swedish_ci
110Checksum NULL
111Create_options
112Comment testing heaps
113alter table t1 row_format = dynamic;
114show table status like "t1";
115Name t1
116Engine MEMORY
117Version 10
118Row_format Dynamic
119Rows 7
120Avg_row_length X
121Data_length X
122Max_data_length X
123Index_length X
124Data_free X
125Auto_increment X
126Create_time X
127Update_time X
128Check_time X
129Collation latin1_swedish_ci
130Checksum NULL
131Create_options row_format=DYNAMIC KEY_BLOCK_SIZE=X
132Comment testing heaps
133alter table t1 key_block_size = 128, max_rows = 10001;
134show table status like "t1";
135Name t1
136Engine MEMORY
137Version 10
138Row_format Dynamic
139Rows 7
140Avg_row_length X
141Data_length X
142Max_data_length X
143Index_length X
144Data_free X
145Auto_increment X
146Create_time X
147Update_time X
148Check_time X
149Collation latin1_swedish_ci
150Checksum NULL
151Create_options max_rows=10001 row_format=DYNAMIC KEY_BLOCK_SIZE=128
152Comment testing heaps
153select * from t1;
154a b c d
1551 1 012 NULL
1562 2 0123456789 NULL
1576 6 NULL 0123
1585 5 NULL 0123
1594 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789
1607 7 0123 NULL
1618 8 0123 NULL
162delete from t1;
163select * from t1;
164a b c d
165call mtr.add_suppression("The table 't1' is full");
166select count(*) from t1;
167count(*)
16810001
169insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
170ERROR HY000: The table 't1' is full
171show table status like "t1";
172Name t1
173Engine MEMORY
174Version 10
175Row_format Dynamic
176Rows 10001
177Avg_row_length X
178Data_length X
179Max_data_length X
180Index_length X
181Data_free X
182Auto_increment X
183Create_time X
184Update_time X
185Check_time X
186Collation latin1_swedish_ci
187Checksum NULL
188Create_options max_rows=10001 row_format=DYNAMIC KEY_BLOCK_SIZE=128
189Comment testing heaps
190select count(*) from t1;
191count(*)
19210001
193set @@session.max_heap_table_size=default;
194drop table t1;
1950
=== removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_var.test'
--- mysql-test/memory_dynamic_rows.patch/percona_heap_var.test 2011-08-22 11:28:27 +0000
+++ mysql-test/memory_dynamic_rows.patch/percona_heap_var.test 1970-01-01 00:00:00 +0000
@@ -1,85 +0,0 @@
1#
2# Test heap tables with variable-sized records.
3#
4
5--disable_warnings
6drop table if exists t1;
7--enable_warnings
8
9set @@session.max_heap_table_size=16*1024*1024;
10
11--error 1234
12create table t1 (a int not null, b varchar(400), c int, primary key (a), key (c)) engine=heap comment="testing heaps" key_block_size=128;
13
14--error 1234
15create table t1 (a int not null, b int, c varchar(400), primary key (a), key (b)) engine=heap comment="testing heaps" key_block_size=4;
16
17create table t1 (a int not null, b int, c varchar(400), d varchar(400), primary key (a), key (b)) engine=heap comment="testing heaps" key_block_size=24;
18
19--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
20--query_vertical show table status like "t1"
21
22insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789');
23select * from t1;
24
25delete from t1 where a = 3;
26select * from t1;
27
28insert into t1 values (5,5,NULL,'0123'), (6,6,NULL,'0123');
29select * from t1;
30
31update t1 set c = '012345678901234567890123456789' where a = 2;
32select * from t1;
33
34update t1 set c = '0123456789' where a = 2;
35select * from t1;
36
37insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL);
38select * from t1;
39
40--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
41--query_vertical show table status like "t1"
42alter table t1 key_block_size = 0;
43--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
44--query_vertical show table status like "t1"
45alter table t1 row_format = dynamic;
46--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
47--replace_regex /KEY_BLOCK_SIZE=[[:digit:]]+/KEY_BLOCK_SIZE=X/
48--query_vertical show table status like "t1"
49alter table t1 key_block_size = 128, max_rows = 10001;
50--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
51--query_vertical show table status like "t1"
52
53select * from t1;
54
55delete from t1;
56select * from t1;
57
58let $1=10001;
59
60call mtr.add_suppression("The table 't1' is full");
61
62disable_query_log;
63
64while ($1)
65{
66
67 eval insert into t1 values ($1,$1,$1,$1);
68
69 dec $1;
70
71}
72enable_query_log;
73
74select count(*) from t1;
75
76--error 1114
77insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123');
78
79--replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X
80--query_vertical show table status like "t1"
81select count(*) from t1;
82
83set @@session.max_heap_table_size=default;
84
85drop table t1;
860
=== removed file 'mysql-test/percona_innodb_buffer_pool_shm-master.opt'
--- mysql-test/percona_innodb_buffer_pool_shm-master.opt 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_buffer_pool_shm-master.opt 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1--innodb_buffer_pool_shm_key=123456
20
=== removed file 'mysql-test/percona_innodb_buffer_pool_shm.result'
--- mysql-test/percona_innodb_buffer_pool_shm.result 2011-06-22 02:59:28 +0000
+++ mysql-test/percona_innodb_buffer_pool_shm.result 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1show variables like 'innodb_buffer_pool_shm%';
2Variable_name Value
3innodb_buffer_pool_shm_checksum ON
4innodb_buffer_pool_shm_key 123456
50
=== removed file 'mysql-test/percona_innodb_buffer_pool_shm.test'
--- mysql-test/percona_innodb_buffer_pool_shm.test 2011-06-22 02:59:28 +0000
+++ mysql-test/percona_innodb_buffer_pool_shm.test 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1--source include/have_innodb.inc
2show variables like 'innodb_buffer_pool_shm%';
30
=== removed file 'mysql-test/percona_innodb_doublewrite_file-master.opt'
--- mysql-test/percona_innodb_doublewrite_file-master.opt 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_doublewrite_file-master.opt 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1--innodb_doublewrite_file=ib_doublewrite
20
=== removed file 'mysql-test/percona_innodb_doublewrite_file.result'
--- mysql-test/percona_innodb_doublewrite_file.result 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_doublewrite_file.result 1970-01-01 00:00:00 +0000
@@ -1,4 +0,0 @@
1show variables like 'innodb_doublewrite%';
2Variable_name Value
3innodb_doublewrite ON
4innodb_doublewrite_file ib_doublewrite
50
=== removed file 'mysql-test/percona_innodb_doublewrite_file.test'
--- mysql-test/percona_innodb_doublewrite_file.test 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_doublewrite_file.test 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1--source include/have_innodb.inc
2show variables like 'innodb_doublewrite%';
30
=== removed file 'mysql-test/percona_innodb_use_sys_stats_table-master.opt'
--- mysql-test/percona_innodb_use_sys_stats_table-master.opt 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_use_sys_stats_table-master.opt 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1--innodb_use_sys_stats_table
20
=== removed file 'mysql-test/percona_innodb_use_sys_stats_table.result'
--- mysql-test/percona_innodb_use_sys_stats_table.result 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_use_sys_stats_table.result 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1show variables like 'innodb_use_sys_stats%';
2Variable_name Value
3innodb_use_sys_stats_table ON
40
=== removed file 'mysql-test/percona_innodb_use_sys_stats_table.test'
--- mysql-test/percona_innodb_use_sys_stats_table.test 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_innodb_use_sys_stats_table.test 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1--source include/have_innodb.inc
2show variables like 'innodb_use_sys_stats%';
30
=== removed file 'mysql-test/percona_server_variables.inc'
--- mysql-test/percona_server_variables.inc 2011-06-23 02:11:07 +0000
+++ mysql-test/percona_server_variables.inc 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1--source include/have_response_time_distribution.inc
2--source include/have_innodb.inc
3SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1;
40
=== removed file 'mysql-test/percona_server_variables_debug.result'
--- mysql-test/percona_server_variables_debug.result 2011-08-04 23:23:45 +0000
+++ mysql-test/percona_server_variables_debug.result 1970-01-01 00:00:00 +0000
@@ -1,372 +0,0 @@
1SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1;
2Variable_name
3AUTOCOMMIT
4AUTOMATIC_SP_PRIVILEGES
5AUTO_INCREMENT_INCREMENT
6AUTO_INCREMENT_OFFSET
7BACK_LOG
8BASEDIR
9BIG_TABLES
10BINLOG_CACHE_SIZE
11BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES
12BINLOG_FORMAT
13BINLOG_STMT_CACHE_SIZE
14BULK_INSERT_BUFFER_SIZE
15CHARACTER_SETS_DIR
16CHARACTER_SET_CLIENT
17CHARACTER_SET_CONNECTION
18CHARACTER_SET_DATABASE
19CHARACTER_SET_FILESYSTEM
20CHARACTER_SET_RESULTS
21CHARACTER_SET_SERVER
22CHARACTER_SET_SYSTEM
23COLLATION_CONNECTION
24COLLATION_DATABASE
25COLLATION_SERVER
26COMPLETION_TYPE
27CONCURRENT_INSERT
28CONNECT_TIMEOUT
29DATADIR
30DATETIME_FORMAT
31DATE_FORMAT
32DEBUG
33DEBUG_SYNC
34DEFAULT_STORAGE_ENGINE
35DEFAULT_WEEK_FORMAT
36DELAYED_INSERT_LIMIT
37DELAYED_INSERT_TIMEOUT
38DELAYED_QUEUE_SIZE
39DELAY_KEY_WRITE
40DIV_PRECISION_INCREMENT
41ENGINE_CONDITION_PUSHDOWN
42ERROR_COUNT
43EVENT_SCHEDULER
44EXPIRE_LOGS_DAYS
45EXTERNAL_USER
46FAST_INDEX_CREATION
47FLUSH
48FLUSH_TIME
49FOREIGN_KEY_CHECKS
50FT_BOOLEAN_SYNTAX
51FT_MAX_WORD_LEN
52FT_MIN_WORD_LEN
53FT_QUERY_EXPANSION_LIMIT
54FT_STOPWORD_FILE
55GENERAL_LOG
56GENERAL_LOG_FILE
57GROUP_CONCAT_MAX_LEN
58HAVE_COMPRESS
59HAVE_CRYPT
60HAVE_CSV
61HAVE_DYNAMIC_LOADING
62HAVE_GEOMETRY
63HAVE_INNODB
64HAVE_NDBCLUSTER
65HAVE_OPENSSL
66HAVE_PARTITIONING
67HAVE_PROFILING
68HAVE_QUERY_CACHE
69HAVE_RESPONSE_TIME_DISTRIBUTION
70HAVE_RTREE_KEYS
71HAVE_SSL
72HAVE_SYMLINK
73HOSTNAME
74IDENTITY
75IGNORE_BUILTIN_INNODB
76INIT_CONNECT
77INIT_FILE
78INIT_SLAVE
79INNODB_ADAPTIVE_FLUSHING
80INNODB_ADAPTIVE_FLUSHING_METHOD
81INNODB_ADAPTIVE_HASH_INDEX
82INNODB_ADAPTIVE_HASH_INDEX_PARTITIONS
83INNODB_ADDITIONAL_MEM_POOL_SIZE
84INNODB_AUTOEXTEND_INCREMENT
85INNODB_AUTOINC_LOCK_MODE
86INNODB_BUFFER_POOL_INSTANCES
87INNODB_BUFFER_POOL_RESTORE_AT_STARTUP
88INNODB_BUFFER_POOL_SHM_CHECKSUM
89INNODB_BUFFER_POOL_SHM_KEY
90INNODB_BUFFER_POOL_SIZE
91INNODB_CHANGE_BUFFERING
92INNODB_CHANGE_BUFFERING_DEBUG
93INNODB_CHECKPOINT_AGE_TARGET
94INNODB_CHECKSUMS
95INNODB_COMMIT_CONCURRENCY
96INNODB_CONCURRENCY_TICKETS
97INNODB_CORRUPT_TABLE_ACTION
98INNODB_DATA_FILE_PATH
99INNODB_DATA_HOME_DIR
100INNODB_DICT_SIZE_LIMIT
101INNODB_DOUBLEWRITE
102INNODB_DOUBLEWRITE_FILE
103INNODB_FAST_CHECKSUM
104INNODB_FAST_SHUTDOWN
105INNODB_FILE_FORMAT
106INNODB_FILE_FORMAT_CHECK
107INNODB_FILE_FORMAT_MAX
108INNODB_FILE_PER_TABLE
109INNODB_FLUSH_LOG_AT_TRX_COMMIT
110INNODB_FLUSH_METHOD
111INNODB_FLUSH_NEIGHBOR_PAGES
112INNODB_FORCE_RECOVERY
113INNODB_IBUF_ACCEL_RATE
114INNODB_IBUF_ACTIVE_CONTRACT
115INNODB_IBUF_MAX_SIZE
116INNODB_IMPORT_TABLE_FROM_XTRABACKUP
117INNODB_IO_CAPACITY
118INNODB_LARGE_PREFIX
119INNODB_LAZY_DROP_TABLE
120INNODB_LOCKS_UNSAFE_FOR_BINLOG
121INNODB_LOCK_WAIT_TIMEOUT
122INNODB_LOG_BLOCK_SIZE
123INNODB_LOG_BUFFER_SIZE
124INNODB_LOG_FILES_IN_GROUP
125INNODB_LOG_FILE_SIZE
126INNODB_LOG_GROUP_HOME_DIR
127INNODB_MAX_DIRTY_PAGES_PCT
128INNODB_MAX_PURGE_LAG
129INNODB_MIRRORED_LOG_GROUPS
130INNODB_OLD_BLOCKS_PCT
131INNODB_OLD_BLOCKS_TIME
132INNODB_OPEN_FILES
133INNODB_PAGE_SIZE
134INNODB_PURGE_BATCH_SIZE
135INNODB_PURGE_THREADS
136INNODB_READ_AHEAD
137INNODB_READ_AHEAD_THRESHOLD
138INNODB_READ_IO_THREADS
139INNODB_RECOVERY_STATS
140INNODB_RECOVERY_UPDATE_RELAY_LOG
141INNODB_REPLICATION_DELAY
142INNODB_ROLLBACK_ON_TIMEOUT
143INNODB_ROLLBACK_SEGMENTS
144INNODB_SHOW_LOCKS_HELD
145INNODB_SHOW_VERBOSE_LOCKS
146INNODB_SPIN_WAIT_DELAY
147INNODB_STATS_AUTO_UPDATE
148INNODB_STATS_METHOD
149INNODB_STATS_ON_METADATA
150INNODB_STATS_SAMPLE_PAGES
151INNODB_STATS_UPDATE_NEED_LOCK
152INNODB_STRICT_MODE
153INNODB_SUPPORT_XA
154INNODB_SYNC_SPIN_LOOPS
155INNODB_TABLE_LOCKS
156INNODB_THREAD_CONCURRENCY
157INNODB_THREAD_CONCURRENCY_TIMER_BASED
158INNODB_THREAD_SLEEP_DELAY
159INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT
160INNODB_USE_NATIVE_AIO
161INNODB_USE_SYS_MALLOC
162INNODB_USE_SYS_STATS_TABLE
163INNODB_VERSION
164INNODB_WRITE_IO_THREADS
165INSERT_ID
166INTERACTIVE_TIMEOUT
167JOIN_BUFFER_SIZE
168KEEP_FILES_ON_CREATE
169KEY_BUFFER_SIZE
170KEY_CACHE_AGE_THRESHOLD
171KEY_CACHE_BLOCK_SIZE
172KEY_CACHE_DIVISION_LIMIT
173LARGE_FILES_SUPPORT
174LARGE_PAGES
175LARGE_PAGE_SIZE
176LAST_INSERT_ID
177LC_MESSAGES
178LC_MESSAGES_DIR
179LC_TIME_NAMES
180LICENSE
181LOCAL_INFILE
182LOCKED_IN_MEMORY
183LOCK_WAIT_TIMEOUT
184LOG
185LOG_BIN
186LOG_BIN_TRUST_FUNCTION_CREATORS
187LOG_ERROR
188LOG_OUTPUT
189LOG_QUERIES_NOT_USING_INDEXES
190LOG_SLAVE_UPDATES
191LOG_SLOW_FILTER
192LOG_SLOW_QUERIES
193LOG_SLOW_RATE_LIMIT
194LOG_SLOW_SLAVE_STATEMENTS
195LOG_SLOW_SP_STATEMENTS
196LOG_SLOW_VERBOSITY
197LOG_WARNINGS
198LOG_WARNINGS_SUPPRESS
199LONG_QUERY_TIME
200LOWER_CASE_FILE_SYSTEM
201LOWER_CASE_TABLE_NAMES
202LOW_PRIORITY_UPDATES
203MAX_ALLOWED_PACKET
204MAX_BINLOG_CACHE_SIZE
205MAX_BINLOG_SIZE
206MAX_BINLOG_STMT_CACHE_SIZE
207MAX_CONNECTIONS
208MAX_CONNECT_ERRORS
209MAX_DELAYED_THREADS
210MAX_ERROR_COUNT
211MAX_HEAP_TABLE_SIZE
212MAX_INSERT_DELAYED_THREADS
213MAX_JOIN_SIZE
214MAX_LENGTH_FOR_SORT_DATA
215MAX_LONG_DATA_SIZE
216MAX_PREPARED_STMT_COUNT
217MAX_RELAY_LOG_SIZE
218MAX_SEEKS_FOR_KEY
219MAX_SORT_LENGTH
220MAX_SP_RECURSION_DEPTH
221MAX_TMP_TABLES
222MAX_USER_CONNECTIONS
223MAX_WRITE_LOCK_COUNT
224MIN_EXAMINED_ROW_LIMIT
225MULTI_RANGE_COUNT
226MYISAM_DATA_POINTER_SIZE
227MYISAM_MAX_SORT_FILE_SIZE
228MYISAM_MMAP_SIZE
229MYISAM_RECOVER_OPTIONS
230MYISAM_REPAIR_THREADS
231MYISAM_SORT_BUFFER_SIZE
232MYISAM_STATS_METHOD
233MYISAM_USE_MMAP
234NET_BUFFER_LENGTH
235NET_READ_TIMEOUT
236NET_RETRY_COUNT
237NET_WRITE_TIMEOUT
238NEW
239OLD
240OLD_ALTER_TABLE
241OLD_PASSWORDS
242OPEN_FILES_LIMIT
243OPTIMIZER_FIX
244OPTIMIZER_PRUNE_LEVEL
245OPTIMIZER_SEARCH_DEPTH
246OPTIMIZER_SWITCH
247PERFORMANCE_SCHEMA
248PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE
249PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE
250PERFORMANCE_SCHEMA_MAX_COND_CLASSES
251PERFORMANCE_SCHEMA_MAX_COND_INSTANCES
252PERFORMANCE_SCHEMA_MAX_FILE_CLASSES
253PERFORMANCE_SCHEMA_MAX_FILE_HANDLES
254PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES
255PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES
256PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES
257PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES
258PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES
259PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES
260PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES
261PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES
262PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES
263PID_FILE
264PLUGIN_DIR
265PORT
266PRELOAD_BUFFER_SIZE
267PROFILING
268PROFILING_HISTORY_SIZE
269PROTOCOL_VERSION
270PROXY_USER
271PSEUDO_THREAD_ID
272QUERY_ALLOC_BLOCK_SIZE
273QUERY_CACHE_LIMIT
274QUERY_CACHE_MIN_RES_UNIT
275QUERY_CACHE_SIZE
276QUERY_CACHE_STRIP_COMMENTS
277QUERY_CACHE_TYPE
278QUERY_CACHE_WLOCK_INVALIDATE
279QUERY_PREALLOC_SIZE
280QUERY_RESPONSE_TIME_RANGE_BASE
281QUERY_RESPONSE_TIME_STATS
282RAND_SEED1
283RAND_SEED2
284RANGE_ALLOC_BLOCK_SIZE
285READ_BUFFER_SIZE
286READ_ONLY
287READ_RND_BUFFER_SIZE
288RELAY_LOG
289RELAY_LOG_INDEX
290RELAY_LOG_INFO_FILE
291RELAY_LOG_PURGE
292RELAY_LOG_RECOVERY
293RELAY_LOG_SPACE_LIMIT
294REPORT_HOST
295REPORT_PASSWORD
296REPORT_PORT
297REPORT_USER
298RPL_RECOVERY_RANK
299SECURE_AUTH
300SECURE_FILE_PRIV
301SERVER_ID
302SKIP_EXTERNAL_LOCKING
303SKIP_NAME_RESOLVE
304SKIP_NETWORKING
305SKIP_SHOW_DATABASE
306SLAVE_COMPRESSED_PROTOCOL
307SLAVE_EXEC_MODE
308SLAVE_LOAD_TMPDIR
309SLAVE_NET_TIMEOUT
310SLAVE_SKIP_ERRORS
311SLAVE_TRANSACTION_RETRIES
312SLAVE_TYPE_CONVERSIONS
313SLOW_LAUNCH_TIME
314SLOW_QUERY_LOG
315SLOW_QUERY_LOG_FILE
316SLOW_QUERY_LOG_TIMESTAMP_ALWAYS
317SLOW_QUERY_LOG_TIMESTAMP_PRECISION
318SLOW_QUERY_LOG_USE_GLOBAL_CONTROL
319SOCKET
320SORT_BUFFER_SIZE
321SQL_AUTO_IS_NULL
322SQL_BIG_SELECTS
323SQL_BIG_TABLES
324SQL_BUFFER_RESULT
325SQL_LOG_BIN
326SQL_LOG_OFF
327SQL_LOW_PRIORITY_UPDATES
328SQL_MAX_JOIN_SIZE
329SQL_MODE
330SQL_NOTES
331SQL_QUOTE_SHOW_CREATE
332SQL_SAFE_UPDATES
333SQL_SELECT_LIMIT
334SQL_SLAVE_SKIP_COUNTER
335SQL_WARNINGS
336SSL_CA
337SSL_CAPATH
338SSL_CERT
339SSL_CIPHER
340SSL_KEY
341STORAGE_ENGINE
342SYNC_BINLOG
343SYNC_FRM
344SYNC_MASTER_INFO
345SYNC_RELAY_LOG
346SYNC_RELAY_LOG_INFO
347SYSTEM_TIME_ZONE
348TABLE_DEFINITION_CACHE
349TABLE_OPEN_CACHE
350THREAD_CACHE_SIZE
351THREAD_CONCURRENCY
352THREAD_HANDLING
353THREAD_STACK
354THREAD_STATISTICS
355TIMED_MUTEXES
356TIMESTAMP
357TIME_FORMAT
358TIME_ZONE
359TMPDIR
360TMP_TABLE_SIZE
361TRANSACTION_ALLOC_BLOCK_SIZE
362TRANSACTION_PREALLOC_SIZE
363TX_ISOLATION
364UNIQUE_CHECKS
365UPDATABLE_VIEWS_WITH_LIMIT
366USERSTAT
367VERSION
368VERSION_COMMENT
369VERSION_COMPILE_MACHINE
370VERSION_COMPILE_OS
371WAIT_TIMEOUT
372WARNING_COUNT
3730
=== removed file 'mysql-test/percona_server_variables_debug.test'
--- mysql-test/percona_server_variables_debug.test 2011-06-23 02:11:07 +0000
+++ mysql-test/percona_server_variables_debug.test 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1--source include/have_debug.inc
2--source include/percona_server_variables.inc
30
=== removed file 'mysql-test/percona_server_variables_release.result'
--- mysql-test/percona_server_variables_release.result 2011-08-04 19:16:18 +0000
+++ mysql-test/percona_server_variables_release.result 1970-01-01 00:00:00 +0000
@@ -1,369 +0,0 @@
1SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1;
2Variable_name
3AUTOCOMMIT
4AUTOMATIC_SP_PRIVILEGES
5AUTO_INCREMENT_INCREMENT
6AUTO_INCREMENT_OFFSET
7BACK_LOG
8BASEDIR
9BIG_TABLES
10BINLOG_CACHE_SIZE
11BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES
12BINLOG_FORMAT
13BINLOG_STMT_CACHE_SIZE
14BULK_INSERT_BUFFER_SIZE
15CHARACTER_SETS_DIR
16CHARACTER_SET_CLIENT
17CHARACTER_SET_CONNECTION
18CHARACTER_SET_DATABASE
19CHARACTER_SET_FILESYSTEM
20CHARACTER_SET_RESULTS
21CHARACTER_SET_SERVER
22CHARACTER_SET_SYSTEM
23COLLATION_CONNECTION
24COLLATION_DATABASE
25COLLATION_SERVER
26COMPLETION_TYPE
27CONCURRENT_INSERT
28CONNECT_TIMEOUT
29DATADIR
30DATETIME_FORMAT
31DATE_FORMAT
32DEFAULT_STORAGE_ENGINE
33DEFAULT_WEEK_FORMAT
34DELAYED_INSERT_LIMIT
35DELAYED_INSERT_TIMEOUT
36DELAYED_QUEUE_SIZE
37DELAY_KEY_WRITE
38DIV_PRECISION_INCREMENT
39ENGINE_CONDITION_PUSHDOWN
40ERROR_COUNT
41EVENT_SCHEDULER
42EXPIRE_LOGS_DAYS
43EXTERNAL_USER
44FAST_INDEX_CREATION
45FLUSH
46FLUSH_TIME
47FOREIGN_KEY_CHECKS
48FT_BOOLEAN_SYNTAX
49FT_MAX_WORD_LEN
50FT_MIN_WORD_LEN
51FT_QUERY_EXPANSION_LIMIT
52FT_STOPWORD_FILE
53GENERAL_LOG
54GENERAL_LOG_FILE
55GROUP_CONCAT_MAX_LEN
56HAVE_COMPRESS
57HAVE_CRYPT
58HAVE_CSV
59HAVE_DYNAMIC_LOADING
60HAVE_GEOMETRY
61HAVE_INNODB
62HAVE_NDBCLUSTER
63HAVE_OPENSSL
64HAVE_PARTITIONING
65HAVE_PROFILING
66HAVE_QUERY_CACHE
67HAVE_RESPONSE_TIME_DISTRIBUTION
68HAVE_RTREE_KEYS
69HAVE_SSL
70HAVE_SYMLINK
71HOSTNAME
72IDENTITY
73IGNORE_BUILTIN_INNODB
74INIT_CONNECT
75INIT_FILE
76INIT_SLAVE
77INNODB_ADAPTIVE_FLUSHING
78INNODB_ADAPTIVE_FLUSHING_METHOD
79INNODB_ADAPTIVE_HASH_INDEX
80INNODB_ADAPTIVE_HASH_INDEX_PARTITIONS
81INNODB_ADDITIONAL_MEM_POOL_SIZE
82INNODB_AUTOEXTEND_INCREMENT
83INNODB_AUTOINC_LOCK_MODE
84INNODB_BUFFER_POOL_INSTANCES
85INNODB_BUFFER_POOL_RESTORE_AT_STARTUP
86INNODB_BUFFER_POOL_SHM_CHECKSUM
87INNODB_BUFFER_POOL_SHM_KEY
88INNODB_BUFFER_POOL_SIZE
89INNODB_CHANGE_BUFFERING
90INNODB_CHECKPOINT_AGE_TARGET
91INNODB_CHECKSUMS
92INNODB_COMMIT_CONCURRENCY
93INNODB_CONCURRENCY_TICKETS
94INNODB_CORRUPT_TABLE_ACTION
95INNODB_DATA_FILE_PATH
96INNODB_DATA_HOME_DIR
97INNODB_DICT_SIZE_LIMIT
98INNODB_DOUBLEWRITE
99INNODB_DOUBLEWRITE_FILE
100INNODB_FAST_CHECKSUM
101INNODB_FAST_SHUTDOWN
102INNODB_FILE_FORMAT
103INNODB_FILE_FORMAT_CHECK
104INNODB_FILE_FORMAT_MAX
105INNODB_FILE_PER_TABLE
106INNODB_FLUSH_LOG_AT_TRX_COMMIT
107INNODB_FLUSH_METHOD
108INNODB_FLUSH_NEIGHBOR_PAGES
109INNODB_FORCE_RECOVERY
110INNODB_IBUF_ACCEL_RATE
111INNODB_IBUF_ACTIVE_CONTRACT
112INNODB_IBUF_MAX_SIZE
113INNODB_IMPORT_TABLE_FROM_XTRABACKUP
114INNODB_IO_CAPACITY
115INNODB_LARGE_PREFIX
116INNODB_LAZY_DROP_TABLE
117INNODB_LOCKS_UNSAFE_FOR_BINLOG
118INNODB_LOCK_WAIT_TIMEOUT
119INNODB_LOG_BLOCK_SIZE
120INNODB_LOG_BUFFER_SIZE
121INNODB_LOG_FILES_IN_GROUP
122INNODB_LOG_FILE_SIZE
123INNODB_LOG_GROUP_HOME_DIR
124INNODB_MAX_DIRTY_PAGES_PCT
125INNODB_MAX_PURGE_LAG
126INNODB_MIRRORED_LOG_GROUPS
127INNODB_OLD_BLOCKS_PCT
128INNODB_OLD_BLOCKS_TIME
129INNODB_OPEN_FILES
130INNODB_PAGE_SIZE
131INNODB_PURGE_BATCH_SIZE
132INNODB_PURGE_THREADS
133INNODB_READ_AHEAD
134INNODB_READ_AHEAD_THRESHOLD
135INNODB_READ_IO_THREADS
136INNODB_RECOVERY_STATS
137INNODB_RECOVERY_UPDATE_RELAY_LOG
138INNODB_REPLICATION_DELAY
139INNODB_ROLLBACK_ON_TIMEOUT
140INNODB_ROLLBACK_SEGMENTS
141INNODB_SHOW_LOCKS_HELD
142INNODB_SHOW_VERBOSE_LOCKS
143INNODB_SPIN_WAIT_DELAY
144INNODB_STATS_AUTO_UPDATE
145INNODB_STATS_METHOD
146INNODB_STATS_ON_METADATA
147INNODB_STATS_SAMPLE_PAGES
148INNODB_STATS_UPDATE_NEED_LOCK
149INNODB_STRICT_MODE
150INNODB_SUPPORT_XA
151INNODB_SYNC_SPIN_LOOPS
152INNODB_TABLE_LOCKS
153INNODB_THREAD_CONCURRENCY
154INNODB_THREAD_CONCURRENCY_TIMER_BASED
155INNODB_THREAD_SLEEP_DELAY
156INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT
157INNODB_USE_NATIVE_AIO
158INNODB_USE_SYS_MALLOC
159INNODB_USE_SYS_STATS_TABLE
160INNODB_VERSION
161INNODB_WRITE_IO_THREADS
162INSERT_ID
163INTERACTIVE_TIMEOUT
164JOIN_BUFFER_SIZE
165KEEP_FILES_ON_CREATE
166KEY_BUFFER_SIZE
167KEY_CACHE_AGE_THRESHOLD
168KEY_CACHE_BLOCK_SIZE
169KEY_CACHE_DIVISION_LIMIT
170LARGE_FILES_SUPPORT
171LARGE_PAGES
172LARGE_PAGE_SIZE
173LAST_INSERT_ID
174LC_MESSAGES
175LC_MESSAGES_DIR
176LC_TIME_NAMES
177LICENSE
178LOCAL_INFILE
179LOCKED_IN_MEMORY
180LOCK_WAIT_TIMEOUT
181LOG
182LOG_BIN
183LOG_BIN_TRUST_FUNCTION_CREATORS
184LOG_ERROR
185LOG_OUTPUT
186LOG_QUERIES_NOT_USING_INDEXES
187LOG_SLAVE_UPDATES
188LOG_SLOW_FILTER
189LOG_SLOW_QUERIES
190LOG_SLOW_RATE_LIMIT
191LOG_SLOW_SLAVE_STATEMENTS
192LOG_SLOW_SP_STATEMENTS
193LOG_SLOW_VERBOSITY
194LOG_WARNINGS
195LOG_WARNINGS_SUPPRESS
196LONG_QUERY_TIME
197LOWER_CASE_FILE_SYSTEM
198LOWER_CASE_TABLE_NAMES
199LOW_PRIORITY_UPDATES
200MAX_ALLOWED_PACKET
201MAX_BINLOG_CACHE_SIZE
202MAX_BINLOG_SIZE
203MAX_BINLOG_STMT_CACHE_SIZE
204MAX_CONNECTIONS
205MAX_CONNECT_ERRORS
206MAX_DELAYED_THREADS
207MAX_ERROR_COUNT
208MAX_HEAP_TABLE_SIZE
209MAX_INSERT_DELAYED_THREADS
210MAX_JOIN_SIZE
211MAX_LENGTH_FOR_SORT_DATA
212MAX_LONG_DATA_SIZE
213MAX_PREPARED_STMT_COUNT
214MAX_RELAY_LOG_SIZE
215MAX_SEEKS_FOR_KEY
216MAX_SORT_LENGTH
217MAX_SP_RECURSION_DEPTH
218MAX_TMP_TABLES
219MAX_USER_CONNECTIONS
220MAX_WRITE_LOCK_COUNT
221MIN_EXAMINED_ROW_LIMIT
222MULTI_RANGE_COUNT
223MYISAM_DATA_POINTER_SIZE
224MYISAM_MAX_SORT_FILE_SIZE
225MYISAM_MMAP_SIZE
226MYISAM_RECOVER_OPTIONS
227MYISAM_REPAIR_THREADS
228MYISAM_SORT_BUFFER_SIZE
229MYISAM_STATS_METHOD
230MYISAM_USE_MMAP
231NET_BUFFER_LENGTH
232NET_READ_TIMEOUT
233NET_RETRY_COUNT
234NET_WRITE_TIMEOUT
235NEW
236OLD
237OLD_ALTER_TABLE
238OLD_PASSWORDS
239OPEN_FILES_LIMIT
240OPTIMIZER_FIX
241OPTIMIZER_PRUNE_LEVEL
242OPTIMIZER_SEARCH_DEPTH
243OPTIMIZER_SWITCH
244PERFORMANCE_SCHEMA
245PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE
246PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE
247PERFORMANCE_SCHEMA_MAX_COND_CLASSES
248PERFORMANCE_SCHEMA_MAX_COND_INSTANCES
249PERFORMANCE_SCHEMA_MAX_FILE_CLASSES
250PERFORMANCE_SCHEMA_MAX_FILE_HANDLES
251PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES
252PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES
253PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES
254PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES
255PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES
256PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES
257PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES
258PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES
259PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES
260PID_FILE
261PLUGIN_DIR
262PORT
263PRELOAD_BUFFER_SIZE
264PROFILING
265PROFILING_HISTORY_SIZE
266PROTOCOL_VERSION
267PROXY_USER
268PSEUDO_THREAD_ID
269QUERY_ALLOC_BLOCK_SIZE
270QUERY_CACHE_LIMIT
271QUERY_CACHE_MIN_RES_UNIT
272QUERY_CACHE_SIZE
273QUERY_CACHE_STRIP_COMMENTS
274QUERY_CACHE_TYPE
275QUERY_CACHE_WLOCK_INVALIDATE
276QUERY_PREALLOC_SIZE
277QUERY_RESPONSE_TIME_RANGE_BASE
278QUERY_RESPONSE_TIME_STATS
279RAND_SEED1
280RAND_SEED2
281RANGE_ALLOC_BLOCK_SIZE
282READ_BUFFER_SIZE
283READ_ONLY
284READ_RND_BUFFER_SIZE
285RELAY_LOG
286RELAY_LOG_INDEX
287RELAY_LOG_INFO_FILE
288RELAY_LOG_PURGE
289RELAY_LOG_RECOVERY
290RELAY_LOG_SPACE_LIMIT
291REPORT_HOST
292REPORT_PASSWORD
293REPORT_PORT
294REPORT_USER
295RPL_RECOVERY_RANK
296SECURE_AUTH
297SECURE_FILE_PRIV
298SERVER_ID
299SKIP_EXTERNAL_LOCKING
300SKIP_NAME_RESOLVE
301SKIP_NETWORKING
302SKIP_SHOW_DATABASE
303SLAVE_COMPRESSED_PROTOCOL
304SLAVE_EXEC_MODE
305SLAVE_LOAD_TMPDIR
306SLAVE_NET_TIMEOUT
307SLAVE_SKIP_ERRORS
308SLAVE_TRANSACTION_RETRIES
309SLAVE_TYPE_CONVERSIONS
310SLOW_LAUNCH_TIME
311SLOW_QUERY_LOG
312SLOW_QUERY_LOG_FILE
313SLOW_QUERY_LOG_TIMESTAMP_ALWAYS
314SLOW_QUERY_LOG_TIMESTAMP_PRECISION
315SLOW_QUERY_LOG_USE_GLOBAL_CONTROL
316SOCKET
317SORT_BUFFER_SIZE
318SQL_AUTO_IS_NULL
319SQL_BIG_SELECTS
320SQL_BIG_TABLES
321SQL_BUFFER_RESULT
322SQL_LOG_BIN
323SQL_LOG_OFF
324SQL_LOW_PRIORITY_UPDATES
325SQL_MAX_JOIN_SIZE
326SQL_MODE
327SQL_NOTES
328SQL_QUOTE_SHOW_CREATE
329SQL_SAFE_UPDATES
330SQL_SELECT_LIMIT
331SQL_SLAVE_SKIP_COUNTER
332SQL_WARNINGS
333SSL_CA
334SSL_CAPATH
335SSL_CERT
336SSL_CIPHER
337SSL_KEY
338STORAGE_ENGINE
339SYNC_BINLOG
340SYNC_FRM
341SYNC_MASTER_INFO
342SYNC_RELAY_LOG
343SYNC_RELAY_LOG_INFO
344SYSTEM_TIME_ZONE
345TABLE_DEFINITION_CACHE
346TABLE_OPEN_CACHE
347THREAD_CACHE_SIZE
348THREAD_CONCURRENCY
349THREAD_HANDLING
350THREAD_STACK
351THREAD_STATISTICS
352TIMED_MUTEXES
353TIMESTAMP
354TIME_FORMAT
355TIME_ZONE
356TMPDIR
357TMP_TABLE_SIZE
358TRANSACTION_ALLOC_BLOCK_SIZE
359TRANSACTION_PREALLOC_SIZE
360TX_ISOLATION
361UNIQUE_CHECKS
362UPDATABLE_VIEWS_WITH_LIMIT
363USERSTAT
364VERSION
365VERSION_COMMENT
366VERSION_COMPILE_MACHINE
367VERSION_COMPILE_OS
368WAIT_TIMEOUT
369WARNING_COUNT
3700
=== removed file 'mysql-test/percona_server_variables_release.test'
--- mysql-test/percona_server_variables_release.test 2011-06-23 02:11:07 +0000
+++ mysql-test/percona_server_variables_release.test 1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
1--source include/have_nodebug.inc
2--source include/percona_server_variables.inc
30
=== removed file 'mysql-test/percona_show_temp_tables.result'
--- mysql-test/percona_show_temp_tables.result 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_show_temp_tables.result 1970-01-01 00:00:00 +0000
@@ -1,58 +0,0 @@
1drop table if exists t1,t2,t3;
2drop database if exists showtemp;
3create database if not exists showtemp;
4use test;
5create temporary table t1(id int);
6create temporary table t2(id int);
7create temporary table showtemp.t3(id int);
8insert into t1 values(10),(20),(30),(40);
9insert into showtemp.t3 values(999);
10show temporary tables;
11Temp_tables_in_test
12t2
13t1
14show temporary tables from test;
15Temp_tables_in_test
16t2
17t1
18show temporary tables in showtemp;
19Temp_tables_in_showtemp
20t3
21select table_schema, table_name, engine, table_rows from Information_schema.temporary_tables;
22table_schema table_name engine table_rows
23showtemp t3 MyISAM 1
24test t2 MyISAM 0
25test t1 MyISAM 4
26select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
27table_schema table_name engine table_rows
28showtemp t3 MyISAM 1
29test t2 MyISAM 0
30test t1 MyISAM 4
31select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='showtemp';
32table_schema table_name engine table_rows
33showtemp t3 MyISAM 1
34select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='temp';
35table_schema table_name engine table_rows
36drop table if exists showtemp.t2;
37create temporary table t1(id int);
38create temporary table showtemp.t2(id int);
39show temporary tables;
40Temp_tables_in_test
41t1
42select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
43table_schema table_name engine table_rows
44showtemp t2 MyISAM 0
45test t1 MyISAM 0
46showtemp t3 MyISAM 1
47test t2 MyISAM 0
48test t1 MyISAM 4
49drop table showtemp.t2;
50drop table t1;
51select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
52table_schema table_name engine table_rows
53showtemp t3 MyISAM 1
54test t2 MyISAM 0
55test t1 MyISAM 4
56drop table t1, t2;
57drop table showtemp.t3;
58drop database showtemp;
590
=== removed file 'mysql-test/percona_show_temp_tables.test'
--- mysql-test/percona_show_temp_tables.test 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_show_temp_tables.test 1970-01-01 00:00:00 +0000
@@ -1,65 +0,0 @@
1# Uses GRANT commands that usually disabled in embedded server
2-- source include/not_embedded.inc
3
4# Save the initial number of concurrent sessions
5--source include/count_sessions.inc
6
7#
8# Test of SHOW [GLOBAL] TEMPORARY TABLES [FROM/IN] DB and
9# Information_schema.temporary_tables and global_temporary_tables
10#
11
12connect(stcon1,localhost,root,,test);
13connect(stcon2,localhost,root,,test);
14
15connection stcon1;
16
17--disable_warnings
18drop table if exists t1,t2,t3;
19drop database if exists showtemp;
20create database if not exists showtemp;
21--enable_warnings
22
23use test;
24create temporary table t1(id int);
25create temporary table t2(id int);
26create temporary table showtemp.t3(id int);
27insert into t1 values(10),(20),(30),(40);
28insert into showtemp.t3 values(999);
29
30show temporary tables;
31# "Session" is not same value always. mysql-test cannot test it always.
32#show global temporary tables;
33show temporary tables from test;
34show temporary tables in showtemp;
35select table_schema, table_name, engine, table_rows from Information_schema.temporary_tables;
36select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
37select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='showtemp';
38select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='temp';
39
40connection stcon2;
41
42--disable_warnings
43drop table if exists showtemp.t2;
44--enable_warnings
45create temporary table t1(id int);
46create temporary table showtemp.t2(id int);
47show temporary tables;
48select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
49drop table showtemp.t2;
50drop table t1;
51
52disconnect stcon2;
53
54connection stcon1;
55select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables;
56
57drop table t1, t2;
58drop table showtemp.t3;
59drop database showtemp;
60
61connection default;
62disconnect stcon1;
63
64# Wait till all disconnects are completed
65--source include/wait_until_count_sessions.inc
660
=== removed file 'mysql-test/percona_xtradb_admin_command.result'
--- mysql-test/percona_xtradb_admin_command.result 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_xtradb_admin_command.result 1970-01-01 00:00:00 +0000
@@ -1,6 +0,0 @@
1select * from information_schema.XTRADB_ADMIN_COMMAND;
2result_message
3No XTRA_* command in the SQL statement. Please add /*!XTRA_xxxx*/ to the SQL.
4select * from information_schema.XTRADB_ADMIN_COMMAND /*!XTRA_HELLO*/;
5result_message
6Hello!
70
=== removed file 'mysql-test/percona_xtradb_admin_command.test'
--- mysql-test/percona_xtradb_admin_command.test 2010-12-09 18:30:58 +0000
+++ mysql-test/percona_xtradb_admin_command.test 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1--source include/have_innodb.inc
2select * from information_schema.XTRADB_ADMIN_COMMAND;
3select * from information_schema.XTRADB_ADMIN_COMMAND /*!XTRA_HELLO*/;
40
=== removed file 'mysql-test/percona_xtradb_bug317074.result'
--- mysql-test/percona_xtradb_bug317074.result 2011-01-13 04:34:53 +0000
+++ mysql-test/percona_xtradb_bug317074.result 1970-01-01 00:00:00 +0000
@@ -1,5 +0,0 @@
1SET @old_innodb_file_format=@@innodb_file_format;
2SET @old_innodb_file_format_max=@@innodb_file_format_max;
3SET @old_innodb_file_per_table=@@innodb_file_per_table;
4SET GLOBAL innodb_file_format='Barracuda';
5SET GLOBAL innodb_file_per_table=ON;
60
=== removed file 'mysql-test/percona_xtradb_bug317074.test'
--- mysql-test/percona_xtradb_bug317074.test 2011-01-13 04:34:53 +0000
+++ mysql-test/percona_xtradb_bug317074.test 1970-01-01 00:00:00 +0000
@@ -1,47 +0,0 @@
1-- source include/have_innodb.inc
2
3SET @old_innodb_file_format=@@innodb_file_format;
4SET @old_innodb_file_format_max=@@innodb_file_format_max;
5SET @old_innodb_file_per_table=@@innodb_file_per_table;
6SET GLOBAL innodb_file_format='Barracuda';
7SET GLOBAL innodb_file_per_table=ON;
8
9-- disable_query_log
10-- disable_result_log
11
12DROP TABLE IF EXISTS `test1`;
13CREATE TABLE IF NOT EXISTS `test1` (
14 `a` int primary key auto_increment,
15 `b` int default 0,
16 `c` char(100) default 'testtest'
17) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
18
19delimiter |;
20CREATE PROCEDURE insert_many(p1 int)
21BEGIN
22SET @x = 0;
23SET @y = 0;
24start transaction;
25REPEAT
26 insert into test1 set b=1;
27 SET @x = @x + 1;
28 SET @y = @y + 1;
29 IF @y >= 1000 THEN
30 commit;
31 start transaction;
32 SET @y = 0;
33 END IF;
34UNTIL @x >= p1 END REPEAT;
35commit;
36END|
37delimiter ;|
38call insert_many(100000);
39DROP PROCEDURE insert_many;
40
41# The bug is hangup at the following statement
42ALTER TABLE test1 ENGINE=MyISAM;
43
44DROP TABLE test1;
45SET GLOBAL innodb_file_format=@old_innodb_file_format;
46SET GLOBAL innodb_file_format_max=@old_innodb_file_format_max;
47SET GLOBAL innodb_file_per_table=@old_innodb_file_per_table;
480
=== removed directory 'mysql-test/processlist_row_stats.patch'
=== removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result'
--- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result 2011-08-03 16:08:46 +0000
+++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result 1970-01-01 00:00:00 +0000
@@ -1,70 +0,0 @@
1DROP TABLE IF EXISTS t1;
2DROP TABLE IF EXISTS t2;
3CREATE TABLE t2 (a INT);
4INSERT INTO t2 VALUES(10);
5INSERT INTO t2 VALUES(10);
6INSERT INTO t2 VALUES(20);
7INSERT INTO t2 VALUES(10);
8INSERT INTO t2 VALUES(20);
9SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped';
10CREATE TABLE t1 (a INT);
11SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
12SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped';
13SELECT a FROM t2 WHERE a > 15;
14SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
15SHOW PROCESSLIST;
16Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read
17### root ### test Query ### ### SHOW PROCESSLIST 0 0 2
18### root ### test Query ### ### CREATE TABLE t1 (a INT) 0 0 1
19### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 2 5 6
20SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
21id info rows_sent rows_examined rows_read
22### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1
23### CREATE TABLE t1 (a INT) 0 0 1
24### SELECT a FROM t2 WHERE a > 15 2 5 6
25SET DEBUG_SYNC= 'now SIGNAL threads_dumped';
26a
2720
2820
29SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped';
30SELECT a FROM t2 WHERE a < 15;
31SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
32SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped';
33SELECT a FROM t2 WHERE a > 15;
34SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
35SHOW PROCESSLIST;
36Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read
37### root ### test Query ### ### SHOW PROCESSLIST 0 0 4
38### root ### test Query ### ### SELECT a FROM t2 WHERE a < 15 1 0 1
39### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 1 0 3
40SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
41id info rows_sent rows_examined rows_read
42### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1
43### SELECT a FROM t2 WHERE a < 15 1 0 1
44### SELECT a FROM t2 WHERE a > 15 1 0 3
45SET DEBUG_SYNC= 'now SIGNAL threads_dumped';
46a
4710
4810
4910
50a
5120
5220
53SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped';
54UPDATE t2 SET a = 15 WHERE a = 20;
55SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
56SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped';
57UPDATE t2 SET a = 15 WHERE a = 10;
58SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
59SHOW PROCESSLIST;
60Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read
61### root ### test Query ### ### SHOW PROCESSLIST 0 0 4
62### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6
63### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6
64SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
65id info rows_sent rows_examined rows_read
66### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1
67### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6
68### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6
69SET DEBUG_SYNC= 'now SIGNAL threads_dumped';
70DROP TABLES t1, t2;
710
=== removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test'
--- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test 2011-08-03 16:08:46 +0000
+++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test 1970-01-01 00:00:00 +0000
@@ -1,79 +0,0 @@
1# Testing of INFORMATION_SCHEMA.PROCESSLIST fields ROWS_SENT, ROWS_EXAMINED, ROWS_READ
2--source include/have_debug_sync.inc
3
4--disable_warnings
5DROP TABLE IF EXISTS t1;
6DROP TABLE IF EXISTS t2;
7--enable_warnings
8
9CREATE TABLE t2 (a INT);
10INSERT INTO t2 VALUES(10);
11INSERT INTO t2 VALUES(10);
12INSERT INTO t2 VALUES(20);
13INSERT INTO t2 VALUES(10);
14INSERT INTO t2 VALUES(20);
15
16--connect (conn1, localhost, root, ,)
17--connect (conn2, localhost, root, ,)
18
19--connection conn1
20SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped';
21send CREATE TABLE t1 (a INT);
22--connection default
23SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
24
25--connection conn2
26SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped';
27send SELECT a FROM t2 WHERE a > 15;
28--connection default
29SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
30
31--source include/percona_processlist_row_stats_show.inc
32
33--connection conn1
34reap;
35--connection conn2
36reap;
37
38--connection conn1
39SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped';
40send SELECT a FROM t2 WHERE a < 15;
41--connection default
42SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
43
44--connection conn2
45SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped';
46send SELECT a FROM t2 WHERE a > 15;
47--connection default
48SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
49
50--source include/percona_processlist_row_stats_show.inc
51
52--connection conn1
53reap;
54--connection conn2
55reap;
56
57--connection conn1
58SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped';
59send UPDATE t2 SET a = 15 WHERE a = 20;
60--connection default
61SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready';
62
63--connection conn2
64SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped';
65send UPDATE t2 SET a = 15 WHERE a = 10;
66--connection default
67SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready';
68
69--source include/percona_processlist_row_stats_show.inc
70
71--connection conn1
72reap;
73--connection conn2
74reap;
75
76--connection default
77disconnect conn1;
78disconnect conn2;
79DROP TABLES t1, t2;
800
=== removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc'
--- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc 2011-08-03 16:08:46 +0000
+++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc 1970-01-01 00:00:00 +0000
@@ -1,7 +0,0 @@
1--replace_column 1 ### 3 ### 6 ### 7 ###
2SHOW PROCESSLIST;
3
4--replace_column 1 ###
5SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id;
6
7SET DEBUG_SYNC= 'now SIGNAL threads_dumped';
80
=== removed directory 'mysql-test/query_cache_enhance.patch'
=== removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc'
--- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc 2010-12-09 18:30:58 +0000
+++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc 1970-01-01 00:00:00 +0000
@@ -1,95 +0,0 @@
1--source include/percona_query_cache_with_comments_clear.inc
2let $query=/* with comment first */select * from t1;
3eval $query;
4--source include/percona_query_cache_with_comments_eval.inc
5
6let $query=# with comment first
7select * from t1;
8--source include/percona_query_cache_with_comments_eval.inc
9
10let $query=-- with comment first
11select * from t1;
12--source include/percona_query_cache_with_comments_eval.inc
13
14let $query=/* with comment first and "quote" */select * from t1;
15--source include/percona_query_cache_with_comments_eval.inc
16
17let $query=# with comment first and "quote"
18select * from t1;
19--source include/percona_query_cache_with_comments_eval.inc
20
21let $query=-- with comment first and "quote"
22select * from t1;
23--source include/percona_query_cache_with_comments_eval.inc
24
25let $query=
26 /* with comment and whitespaces first */select * from t1;
27--source include/percona_query_cache_with_comments_eval.inc
28
29let $query=
30 # with comment and whitespaces first
31select * from t1;
32--source include/percona_query_cache_with_comments_eval.inc
33
34let $query=
35 -- with comment and whitespaces first
36select * from t1;
37--source include/percona_query_cache_with_comments_eval.inc
38
39let $internal=* internal comment *;
40
41let $query=select * /$internal/ from t1;
42--source include/percona_query_cache_with_comments_eval.inc
43let $query=select */$internal/ from t1;
44--source include/percona_query_cache_with_comments_eval.inc
45let $query=select */$internal/from t1;
46--source include/percona_query_cache_with_comments_eval.inc
47
48let $internal=* internal comment with "quote" *;
49
50let $query=select * /$internal/ from t1;
51--source include/percona_query_cache_with_comments_eval.inc
52let $query=select */$internal/ from t1;
53--source include/percona_query_cache_with_comments_eval.inc
54let $query=select */$internal/from t1;
55--source include/percona_query_cache_with_comments_eval.inc
56
57let $query=select * from t1
58;
59--source include/percona_query_cache_with_comments_eval.inc
60
61let $query=select * from t1 ;
62--source include/percona_query_cache_with_comments_eval.inc
63
64let $query=select * from t1 ;
65--source include/percona_query_cache_with_comments_eval.inc
66
67let $query=select * from t1
68/* comment in the end */;
69--source include/percona_query_cache_with_comments_eval.inc
70
71let $query=select * from t1
72/* *\/ */;
73--source include/percona_query_cache_with_comments_eval.inc
74
75let $query=select * from t1
76/* comment in the end */
77;
78--source include/percona_query_cache_with_comments_eval.inc
79
80let $query=select * from t1 #comment in the end;
81--source include/percona_query_cache_with_comments_eval.inc
82
83let $query=select * from t1 #comment in the end
84;
85--source include/percona_query_cache_with_comments_eval.inc
86
87let $query=select * from t1 -- comment in the end;
88--source include/percona_query_cache_with_comments_eval.inc
89
90let $query=select * from t1 -- comment in the end
91;
92--source include/percona_query_cache_with_comments_eval.inc
93
94let $query=select ' \' ' from t1;
95--source include/percona_query_cache_with_comments_eval.inc
960
=== removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup'
--- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup 2010-12-09 18:30:58 +0000
+++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup 1970-01-01 00:00:00 +0000
@@ -1,88 +0,0 @@
1--source include/percona_query_cache_with_comments_clear.inc
2let $query=/* with comment first */select * from t1;
3eval $query;
4--source include/percona_query_cache_with_comments_eval.inc
5
6let $query=# with comment first
7select * from t1;
8--source include/percona_query_cache_with_comments_eval.inc
9
10let $query=-- with comment first
11select * from t1;
12--source include/percona_query_cache_with_comments_eval.inc
13
14let $query=/* with comment first and "quote" */select * from t1;
15--source include/percona_query_cache_with_comments_eval.inc
16
17let $query=# with comment first and "quote"
18select * from t1;
19--source include/percona_query_cache_with_comments_eval.inc
20
21let $query=-- with comment first and "quote"
22select * from t1;
23--source include/percona_query_cache_with_comments_eval.inc
24
25let $query=
26 /* with comment and whitespaces first */select * from t1;
27--source include/percona_query_cache_with_comments_eval.inc
28
29let $query=
30 # with comment and whitespaces first
31select * from t1;
32--source include/percona_query_cache_with_comments_eval.inc
33
34let $query=
35 -- with comment and whitespaces first
36select * from t1;
37--source include/percona_query_cache_with_comments_eval.inc
38
39let $internal=* internal comment *;
40
41let $query=select * /$internal/ from t1;
42--source include/percona_query_cache_with_comments_eval.inc
43let $query=select */$internal/ from t1;
44--source include/percona_query_cache_with_comments_eval.inc
45let $query=select */$internal/from t1;
46--source include/percona_query_cache_with_comments_eval.inc
47
48let $internal=* internal comment with "quote" *;
49
50let $query=select * /$internal/ from t1;
51--source include/percona_query_cache_with_comments_eval.inc
52let $query=select */$internal/ from t1;
53--source include/percona_query_cache_with_comments_eval.inc
54let $query=select */$internal/from t1;
55--source include/percona_query_cache_with_comments_eval.inc
56
57let $query=select * from t1
58;
59--source include/percona_query_cache_with_comments_eval.inc
60
61let $query=select * from t1 ;
62--source include/percona_query_cache_with_comments_eval.inc
63
64let $query=select * from t1 ;
65--source include/percona_query_cache_with_comments_eval.inc
66
67let $query=select * from t1
68/* comment in the end */;
69--source include/percona_query_cache_with_comments_eval.inc
70
71let $query=select * from t1
72/* comment in the end */
73;
74--source include/percona_query_cache_with_comments_eval.inc
75
76let $query=select * from t1 #comment in the end;
77--source include/percona_query_cache_with_comments_eval.inc
78
79let $query=select * from t1 #comment in the end
80;
81--source include/percona_query_cache_with_comments_eval.inc
82
83let $query=select * from t1 -- comment in the end;
84--source include/percona_query_cache_with_comments_eval.inc
85
86let $query=select * from t1 -- comment in the end
87;
88--source include/percona_query_cache_with_comments_eval.inc
890
=== removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result'
--- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result 2010-12-09 18:30:58 +0000
+++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result 1970-01-01 00:00:00 +0000
@@ -1,866 +0,0 @@
1set global query_cache_strip_comments=ON;
2set GLOBAL query_cache_size=1355776;
3drop table if exists t1;
4create table t1 (a int not null);
5insert into t1 values (1),(2),(3);
6flush query cache;
7flush query cache;
8reset query cache;
9flush status;
10flush query cache;
11flush query cache;
12reset query cache;
13flush status;
14/* with comment first */select * from t1;
15a
161
172
183
19-----------------------------------------------------
20/* with comment first */select * from t1
21-----------------------------------------------------
22show status like "Qcache_queries_in_cache";
23Variable_name Value
24Qcache_queries_in_cache 1
25show status like "Qcache_inserts";
26Variable_name Value
27Qcache_inserts 1
28show status like "Qcache_hits";
29Variable_name Value
30Qcache_hits 0
31/* with comment first */select * from t1;
32a
331
342
353
36/* with comment first */select * from t1;
37a
381
392
403
41show status like "Qcache_queries_in_cache";
42Variable_name Value
43Qcache_queries_in_cache 1
44show status like "Qcache_inserts";
45Variable_name Value
46Qcache_inserts 1
47show status like "Qcache_hits";
48Variable_name Value
49Qcache_hits 2
50-----------------------------------------------------
51# with comment first
52select * from t1
53-----------------------------------------------------
54show status like "Qcache_queries_in_cache";
55Variable_name Value
56Qcache_queries_in_cache 1
57show status like "Qcache_inserts";
58Variable_name Value
59Qcache_inserts 1
60show status like "Qcache_hits";
61Variable_name Value
62Qcache_hits 2
63# with comment first
64select * from t1;
65a
661
672
683
69# with comment first
70select * from t1;
71a
721
732
743
75show status like "Qcache_queries_in_cache";
76Variable_name Value
77Qcache_queries_in_cache 1
78show status like "Qcache_inserts";
79Variable_name Value
80Qcache_inserts 1
81show status like "Qcache_hits";
82Variable_name Value
83Qcache_hits 4
84-----------------------------------------------------
85-- with comment first
86select * from t1
87-----------------------------------------------------
88show status like "Qcache_queries_in_cache";
89Variable_name Value
90Qcache_queries_in_cache 1
91show status like "Qcache_inserts";
92Variable_name Value
93Qcache_inserts 1
94show status like "Qcache_hits";
95Variable_name Value
96Qcache_hits 4
97-- with comment first
98select * from t1;
99a
1001
1012
1023
103-- with comment first
104select * from t1;
105a
1061
1072
1083
109show status like "Qcache_queries_in_cache";
110Variable_name Value
111Qcache_queries_in_cache 1
112show status like "Qcache_inserts";
113Variable_name Value
114Qcache_inserts 1
115show status like "Qcache_hits";
116Variable_name Value
117Qcache_hits 6
118-----------------------------------------------------
119/* with comment first and "quote" */select * from t1
120-----------------------------------------------------
121show status like "Qcache_queries_in_cache";
122Variable_name Value
123Qcache_queries_in_cache 1
124show status like "Qcache_inserts";
125Variable_name Value
126Qcache_inserts 1
127show status like "Qcache_hits";
128Variable_name Value
129Qcache_hits 6
130/* with comment first and "quote" */select * from t1;
131a
1321
1332
1343
135/* with comment first and "quote" */select * from t1;
136a
1371
1382
1393
140show status like "Qcache_queries_in_cache";
141Variable_name Value
142Qcache_queries_in_cache 1
143show status like "Qcache_inserts";
144Variable_name Value
145Qcache_inserts 1
146show status like "Qcache_hits";
147Variable_name Value
148Qcache_hits 8
149-----------------------------------------------------
150# with comment first and "quote"
151select * from t1
152-----------------------------------------------------
153show status like "Qcache_queries_in_cache";
154Variable_name Value
155Qcache_queries_in_cache 1
156show status like "Qcache_inserts";
157Variable_name Value
158Qcache_inserts 1
159show status like "Qcache_hits";
160Variable_name Value
161Qcache_hits 8
162# with comment first and "quote"
163select * from t1;
164a
1651
1662
1673
168# with comment first and "quote"
169select * from t1;
170a
1711
1722
1733
174show status like "Qcache_queries_in_cache";
175Variable_name Value
176Qcache_queries_in_cache 1
177show status like "Qcache_inserts";
178Variable_name Value
179Qcache_inserts 1
180show status like "Qcache_hits";
181Variable_name Value
182Qcache_hits 10
183-----------------------------------------------------
184-- with comment first and "quote"
185select * from t1
186-----------------------------------------------------
187show status like "Qcache_queries_in_cache";
188Variable_name Value
189Qcache_queries_in_cache 1
190show status like "Qcache_inserts";
191Variable_name Value
192Qcache_inserts 1
193show status like "Qcache_hits";
194Variable_name Value
195Qcache_hits 10
196-- with comment first and "quote"
197select * from t1;
198a
1991
2002
2013
202-- with comment first and "quote"
203select * from t1;
204a
2051
2062
2073
208show status like "Qcache_queries_in_cache";
209Variable_name Value
210Qcache_queries_in_cache 1
211show status like "Qcache_inserts";
212Variable_name Value
213Qcache_inserts 1
214show status like "Qcache_hits";
215Variable_name Value
216Qcache_hits 12
217-----------------------------------------------------
218/* with comment and whitespaces first */select * from t1
219-----------------------------------------------------
220show status like "Qcache_queries_in_cache";
221Variable_name Value
222Qcache_queries_in_cache 1
223show status like "Qcache_inserts";
224Variable_name Value
225Qcache_inserts 1
226show status like "Qcache_hits";
227Variable_name Value
228Qcache_hits 12
229/* with comment and whitespaces first */select * from t1;
230a
2311
2322
2333
234/* with comment and whitespaces first */select * from t1;
235a
2361
2372
2383
239show status like "Qcache_queries_in_cache";
240Variable_name Value
241Qcache_queries_in_cache 1
242show status like "Qcache_inserts";
243Variable_name Value
244Qcache_inserts 1
245show status like "Qcache_hits";
246Variable_name Value
247Qcache_hits 14
248-----------------------------------------------------
249# with comment and whitespaces first
250select * from t1
251-----------------------------------------------------
252show status like "Qcache_queries_in_cache";
253Variable_name Value
254Qcache_queries_in_cache 1
255show status like "Qcache_inserts";
256Variable_name Value
257Qcache_inserts 1
258show status like "Qcache_hits";
259Variable_name Value
260Qcache_hits 14
261# with comment and whitespaces first
262select * from t1;
263a
2641
2652
2663
267# with comment and whitespaces first
268select * from t1;
269a
2701
2712
2723
273show status like "Qcache_queries_in_cache";
274Variable_name Value
275Qcache_queries_in_cache 1
276show status like "Qcache_inserts";
277Variable_name Value
278Qcache_inserts 1
279show status like "Qcache_hits";
280Variable_name Value
281Qcache_hits 16
282-----------------------------------------------------
283-- with comment and whitespaces first
284select * from t1
285-----------------------------------------------------
286show status like "Qcache_queries_in_cache";
287Variable_name Value
288Qcache_queries_in_cache 1
289show status like "Qcache_inserts";
290Variable_name Value
291Qcache_inserts 1
292show status like "Qcache_hits";
293Variable_name Value
294Qcache_hits 16
295-- with comment and whitespaces first
296select * from t1;
297a
2981
2992
3003
301-- with comment and whitespaces first
302select * from t1;
303a
3041
3052
3063
307show status like "Qcache_queries_in_cache";
308Variable_name Value
309Qcache_queries_in_cache 1
310show status like "Qcache_inserts";
311Variable_name Value
312Qcache_inserts 1
313show status like "Qcache_hits";
314Variable_name Value
315Qcache_hits 18
316-----------------------------------------------------
317select * /* internal comment */ from t1
318-----------------------------------------------------
319show status like "Qcache_queries_in_cache";
320Variable_name Value
321Qcache_queries_in_cache 1
322show status like "Qcache_inserts";
323Variable_name Value
324Qcache_inserts 1
325show status like "Qcache_hits";
326Variable_name Value
327Qcache_hits 18
328select * /* internal comment */ from t1;
329a
3301
3312
3323
333select * /* internal comment */ from t1;
334a
3351
3362
3373
338show status like "Qcache_queries_in_cache";
339Variable_name Value
340Qcache_queries_in_cache 1
341show status like "Qcache_inserts";
342Variable_name Value
343Qcache_inserts 1
344show status like "Qcache_hits";
345Variable_name Value
346Qcache_hits 20
347-----------------------------------------------------
348select */* internal comment */ from t1
349-----------------------------------------------------
350show status like "Qcache_queries_in_cache";
351Variable_name Value
352Qcache_queries_in_cache 1
353show status like "Qcache_inserts";
354Variable_name Value
355Qcache_inserts 1
356show status like "Qcache_hits";
357Variable_name Value
358Qcache_hits 20
359select */* internal comment */ from t1;
360a
3611
3622
3633
364select */* internal comment */ from t1;
365a
3661
3672
3683
369show status like "Qcache_queries_in_cache";
370Variable_name Value
371Qcache_queries_in_cache 1
372show status like "Qcache_inserts";
373Variable_name Value
374Qcache_inserts 1
375show status like "Qcache_hits";
376Variable_name Value
377Qcache_hits 22
378-----------------------------------------------------
379select */* internal comment */from t1
380-----------------------------------------------------
381show status like "Qcache_queries_in_cache";
382Variable_name Value
383Qcache_queries_in_cache 1
384show status like "Qcache_inserts";
385Variable_name Value
386Qcache_inserts 1
387show status like "Qcache_hits";
388Variable_name Value
389Qcache_hits 22
390select */* internal comment */from t1;
391a
3921
3932
3943
395select */* internal comment */from t1;
396a
3971
3982
3993
400show status like "Qcache_queries_in_cache";
401Variable_name Value
402Qcache_queries_in_cache 1
403show status like "Qcache_inserts";
404Variable_name Value
405Qcache_inserts 1
406show status like "Qcache_hits";
407Variable_name Value
408Qcache_hits 24
409-----------------------------------------------------
410select * /* internal comment with "quote" */ from t1
411-----------------------------------------------------
412show status like "Qcache_queries_in_cache";
413Variable_name Value
414Qcache_queries_in_cache 1
415show status like "Qcache_inserts";
416Variable_name Value
417Qcache_inserts 1
418show status like "Qcache_hits";
419Variable_name Value
420Qcache_hits 24
421select * /* internal comment with "quote" */ from t1;
422a
4231
4242
4253
426select * /* internal comment with "quote" */ from t1;
427a
4281
4292
4303
431show status like "Qcache_queries_in_cache";
432Variable_name Value
433Qcache_queries_in_cache 1
434show status like "Qcache_inserts";
435Variable_name Value
436Qcache_inserts 1
437show status like "Qcache_hits";
438Variable_name Value
439Qcache_hits 26
440-----------------------------------------------------
441select */* internal comment with "quote" */ from t1
442-----------------------------------------------------
443show status like "Qcache_queries_in_cache";
444Variable_name Value
445Qcache_queries_in_cache 1
446show status like "Qcache_inserts";
447Variable_name Value
448Qcache_inserts 1
449show status like "Qcache_hits";
450Variable_name Value
451Qcache_hits 26
452select */* internal comment with "quote" */ from t1;
453a
4541
4552
4563
457select */* internal comment with "quote" */ from t1;
458a
4591
4602
4613
462show status like "Qcache_queries_in_cache";
463Variable_name Value
464Qcache_queries_in_cache 1
465show status like "Qcache_inserts";
466Variable_name Value
467Qcache_inserts 1
468show status like "Qcache_hits";
469Variable_name Value
470Qcache_hits 28
471-----------------------------------------------------
472select */* internal comment with "quote" */from t1
473-----------------------------------------------------
474show status like "Qcache_queries_in_cache";
475Variable_name Value
476Qcache_queries_in_cache 1
477show status like "Qcache_inserts";
478Variable_name Value
479Qcache_inserts 1
480show status like "Qcache_hits";
481Variable_name Value
482Qcache_hits 28
483select */* internal comment with "quote" */from t1;
484a
4851
4862
4873
488select */* internal comment with "quote" */from t1;
489a
4901
4912
4923
493show status like "Qcache_queries_in_cache";
494Variable_name Value
495Qcache_queries_in_cache 1
496show status like "Qcache_inserts";
497Variable_name Value
498Qcache_inserts 1
499show status like "Qcache_hits";
500Variable_name Value
501Qcache_hits 30
502-----------------------------------------------------
503select * from t1
504
505-----------------------------------------------------
506show status like "Qcache_queries_in_cache";
507Variable_name Value
508Qcache_queries_in_cache 1
509show status like "Qcache_inserts";
510Variable_name Value
511Qcache_inserts 1
512show status like "Qcache_hits";
513Variable_name Value
514Qcache_hits 30
515select * from t1
516;
517a
5181
5192
5203
521select * from t1
522;
523a
5241
5252
5263
527show status like "Qcache_queries_in_cache";
528Variable_name Value
529Qcache_queries_in_cache 1
530show status like "Qcache_inserts";
531Variable_name Value
532Qcache_inserts 1
533show status like "Qcache_hits";
534Variable_name Value
535Qcache_hits 32
536-----------------------------------------------------
537select * from t1
538-----------------------------------------------------
539show status like "Qcache_queries_in_cache";
540Variable_name Value
541Qcache_queries_in_cache 1
542show status like "Qcache_inserts";
543Variable_name Value
544Qcache_inserts 1
545show status like "Qcache_hits";
546Variable_name Value
547Qcache_hits 32
548select * from t1 ;
549a
5501
5512
5523
553select * from t1 ;
554a
5551
5562
5573
558show status like "Qcache_queries_in_cache";
559Variable_name Value
560Qcache_queries_in_cache 1
561show status like "Qcache_inserts";
562Variable_name Value
563Qcache_inserts 1
564show status like "Qcache_hits";
565Variable_name Value
566Qcache_hits 34
567-----------------------------------------------------
568select * from t1
569-----------------------------------------------------
570show status like "Qcache_queries_in_cache";
571Variable_name Value
572Qcache_queries_in_cache 1
573show status like "Qcache_inserts";
574Variable_name Value
575Qcache_inserts 1
576show status like "Qcache_hits";
577Variable_name Value
578Qcache_hits 34
579select * from t1 ;
580a
5811
5822
5833
584select * from t1 ;
585a
5861
5872
5883
589show status like "Qcache_queries_in_cache";
590Variable_name Value
591Qcache_queries_in_cache 1
592show status like "Qcache_inserts";
593Variable_name Value
594Qcache_inserts 1
595show status like "Qcache_hits";
596Variable_name Value
597Qcache_hits 36
598-----------------------------------------------------
599select * from t1
600/* comment in the end */
601-----------------------------------------------------
602show status like "Qcache_queries_in_cache";
603Variable_name Value
604Qcache_queries_in_cache 1
605show status like "Qcache_inserts";
606Variable_name Value
607Qcache_inserts 1
608show status like "Qcache_hits";
609Variable_name Value
610Qcache_hits 36
611select * from t1
612/* comment in the end */;
613a
6141
6152
6163
617select * from t1
618/* comment in the end */;
619a
6201
6212
6223
623show status like "Qcache_queries_in_cache";
624Variable_name Value
625Qcache_queries_in_cache 1
626show status like "Qcache_inserts";
627Variable_name Value
628Qcache_inserts 1
629show status like "Qcache_hits";
630Variable_name Value
631Qcache_hits 38
632-----------------------------------------------------
633select * from t1
634/* *\/ */
635-----------------------------------------------------
636show status like "Qcache_queries_in_cache";
637Variable_name Value
638Qcache_queries_in_cache 1
639show status like "Qcache_inserts";
640Variable_name Value
641Qcache_inserts 1
642show status like "Qcache_hits";
643Variable_name Value
644Qcache_hits 38
645select * from t1
646/* *\/ */;
647a
6481
6492
6503
651select * from t1
652/* *\/ */;
653a
6541
6552
6563
657show status like "Qcache_queries_in_cache";
658Variable_name Value
659Qcache_queries_in_cache 1
660show status like "Qcache_inserts";
661Variable_name Value
662Qcache_inserts 1
663show status like "Qcache_hits";
664Variable_name Value
665Qcache_hits 40
666-----------------------------------------------------
667select * from t1
668/* comment in the end */
669
670-----------------------------------------------------
671show status like "Qcache_queries_in_cache";
672Variable_name Value
673Qcache_queries_in_cache 1
674show status like "Qcache_inserts";
675Variable_name Value
676Qcache_inserts 1
677show status like "Qcache_hits";
678Variable_name Value
679Qcache_hits 40
680select * from t1
681/* comment in the end */
682;
683a
6841
6852
6863
687select * from t1
688/* comment in the end */
689;
690a
6911
6922
6933
694show status like "Qcache_queries_in_cache";
695Variable_name Value
696Qcache_queries_in_cache 1
697show status like "Qcache_inserts";
698Variable_name Value
699Qcache_inserts 1
700show status like "Qcache_hits";
701Variable_name Value
702Qcache_hits 42
703-----------------------------------------------------
704select * from t1 #comment in the end
705-----------------------------------------------------
706show status like "Qcache_queries_in_cache";
707Variable_name Value
708Qcache_queries_in_cache 1
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches