Merge lp:~tsarev/percona-server/5.5_bug_838725_fix into lp:percona-server/5.5
- 5.5_bug_838725_fix
- Merge into 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 |
Related bugs: |
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.
Commit message
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 : | # |
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
1 | === modified file 'Makefile' | |||
2 | --- Makefile 2011-08-22 17:26:45 +0000 | |||
3 | +++ Makefile 2011-09-03 15:21:28 +0000 | |||
4 | @@ -22,7 +22,7 @@ | |||
5 | 22 | REVS = $(shell bzr log | grep rev | head -1 ) | 22 | REVS = $(shell bzr log | grep rev | head -1 ) |
6 | 23 | REV = $(word 2, $(REVS) ) | 23 | REV = $(word 2, $(REVS) ) |
7 | 24 | 24 | ||
9 | 25 | all: main handlersocket maatkit-udf install-lic tests misc | 25 | all: main handlersocket maatkit-udf install-lic misc |
10 | 26 | @echo "" | 26 | @echo "" |
11 | 27 | @echo "Percona Server source code is ready" | 27 | @echo "Percona Server source code is ready" |
12 | 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" |
13 | @@ -92,9 +92,6 @@ | |||
14 | 92 | @echo "Downloading MySQL sources from $(MASTER_SITE)" | 92 | @echo "Downloading MySQL sources from $(MASTER_SITE)" |
15 | 93 | $(FETCH_CMD) $(MASTER_SITE)/mysql-$(MYSQL_VERSION).tar.gz | 93 | $(FETCH_CMD) $(MASTER_SITE)/mysql-$(MYSQL_VERSION).tar.gz |
16 | 94 | 94 | ||
17 | 95 | tests: | ||
18 | 96 | PERCONA_SERVER=${PERCONA_SERVER} sh install_tests | ||
19 | 97 | |||
20 | 98 | misc: | 95 | misc: |
21 | 99 | @echo "Installing other files" | 96 | @echo "Installing other files" |
22 | 100 | install -m 644 lrusort.py $(PERCONA_SERVER)/scripts | 97 | install -m 644 lrusort.py $(PERCONA_SERVER)/scripts |
23 | 101 | 98 | ||
24 | === removed file 'install_tests' | |||
25 | --- install_tests 2011-07-27 11:13:05 +0000 | |||
26 | +++ install_tests 1970-01-01 00:00:00 +0000 | |||
27 | @@ -1,37 +0,0 @@ | |||
28 | 1 | #!/bin/sh | ||
29 | 2 | |||
30 | 3 | set -u | ||
31 | 4 | |||
32 | 5 | MYSQL_VERSION="$(grep ^MYSQL_VERSION= "Makefile" \ | ||
33 | 6 | | cut -d = -f 2)" | ||
34 | 7 | PERCONA_SERVER_VERSION="$(grep ^PERCONA_SERVER_VERSION= "Makefile" \ | ||
35 | 8 | | cut -d = -f 2)" | ||
36 | 9 | PERCONA_SERVER="Percona-Server-${MYSQL_VERSION}-${PERCONA_SERVER_VERSION}" | ||
37 | 10 | |||
38 | 11 | install_file_type() | ||
39 | 12 | { | ||
40 | 13 | for file in `ls $1/*.$2 2>/dev/null`; do | ||
41 | 14 | test -f $file && install -m 644 $file ${PERCONA_SERVER}/mysql-test/$3 | ||
42 | 15 | done; | ||
43 | 16 | } | ||
44 | 17 | do_install_path() | ||
45 | 18 | { | ||
46 | 19 | install_file_type $1 test t | ||
47 | 20 | install_file_type $1 opt t | ||
48 | 21 | install_file_type $1 result r | ||
49 | 22 | install_file_type $1 require r | ||
50 | 23 | install_file_type $1 inc include | ||
51 | 24 | } | ||
52 | 25 | install_path() | ||
53 | 26 | { | ||
54 | 27 | echo "[$3/$4] Installing mysql-test files: $2" | ||
55 | 28 | test -d $1 && do_install_path $1 $2 | ||
56 | 29 | } | ||
57 | 30 | current=0; | ||
58 | 31 | count=`wc -l patches/series`; | ||
59 | 32 | install_path mysql-test "global" $current $count | ||
60 | 33 | for test_name in `cat patches/series`; do | ||
61 | 34 | current=$((current+1)); | ||
62 | 35 | install_path mysql-test/$test_name $test_name $current $count | ||
63 | 36 | done | ||
64 | 37 | echo "Done" | ||
65 | 38 | 0 | ||
66 | === removed directory 'mysql-test' | |||
67 | === removed file 'mysql-test/have_response_time_distribution.inc' | |||
68 | --- mysql-test/have_response_time_distribution.inc 2011-01-17 01:49:51 +0000 | |||
69 | +++ mysql-test/have_response_time_distribution.inc 1970-01-01 00:00:00 +0000 | |||
70 | @@ -1,4 +0,0 @@ | |||
71 | 1 | -- require r/have_response_time_distribution.require | ||
72 | 2 | disable_query_log; | ||
73 | 3 | show variables like 'have_response_time_distribution'; | ||
74 | 4 | enable_query_log; | ||
75 | 5 | 0 | ||
76 | === removed file 'mysql-test/have_response_time_distribution.require' | |||
77 | --- mysql-test/have_response_time_distribution.require 2011-01-17 01:49:51 +0000 | |||
78 | +++ mysql-test/have_response_time_distribution.require 1970-01-01 00:00:00 +0000 | |||
79 | @@ -1,2 +0,0 @@ | |||
80 | 1 | Variable_name Value | ||
81 | 2 | have_response_time_distribution YES | ||
82 | 3 | 0 | ||
83 | === removed directory 'mysql-test/innodb_deadlock_count.patch' | |||
84 | === removed file 'mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result' | |||
85 | --- mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result 2011-06-22 10:13:43 +0000 | |||
86 | +++ mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.result 1970-01-01 00:00:00 +0000 | |||
87 | @@ -1,28 +0,0 @@ | |||
88 | 1 | # Establish connection con1 (user=root) | ||
89 | 2 | # Establish connection con2 (user=root) | ||
90 | 3 | # Establish connection con3 (user=root) | ||
91 | 4 | # Drop test table | ||
92 | 5 | drop table if exists t; | ||
93 | 6 | # Create test table | ||
94 | 7 | create table t(a INT PRIMARY KEY, b INT) engine=InnoDB; | ||
95 | 8 | # Insert two rows to test table | ||
96 | 9 | insert into t values(2,1); | ||
97 | 10 | insert into t values(1,2); | ||
98 | 11 | # Switch to connection con1 | ||
99 | 12 | BEGIN; | ||
100 | 13 | SELECT b FROM t WHERE a=1 FOR UPDATE; | ||
101 | 14 | # Switch to connection con2 | ||
102 | 15 | BEGIN; | ||
103 | 16 | SELECT b FROM t WHERE a=2 FOR UPDATE; | ||
104 | 17 | # Switch to connection con1 | ||
105 | 18 | SELECT b FROM t WHERE a=2 FOR UPDATE; | ||
106 | 19 | # Switch to connection con2 | ||
107 | 20 | SELECT b FROM t WHERE a=1 FOR UPDATE; | ||
108 | 21 | # Switch to connection con1 | ||
109 | 22 | ROLLBACK; | ||
110 | 23 | # Switch to connection con2 | ||
111 | 24 | ROLLBACK; | ||
112 | 25 | # Switch to connection con3 | ||
113 | 26 | Deadlocks: 1 | ||
114 | 27 | # Drop test table | ||
115 | 28 | drop table t; | ||
116 | 29 | 0 | ||
117 | === removed file 'mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test' | |||
118 | --- mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test 2011-06-22 10:13:43 +0000 | |||
119 | +++ mysql-test/innodb_deadlock_count.patch/percona_innodb_deadlock_count.test 1970-01-01 00:00:00 +0000 | |||
120 | @@ -1,61 +0,0 @@ | |||
121 | 1 | --source include/have_innodb.inc | ||
122 | 2 | --echo # Establish connection con1 (user=root) | ||
123 | 3 | connect (con1,localhost,root,,); | ||
124 | 4 | --echo # Establish connection con2 (user=root) | ||
125 | 5 | connect (con2,localhost,root,,); | ||
126 | 6 | --echo # Establish connection con3 (user=root) | ||
127 | 7 | connect (con3,localhost,root,,); | ||
128 | 8 | --echo # Drop test table | ||
129 | 9 | --disable_warnings | ||
130 | 10 | drop table if exists t; | ||
131 | 11 | --enable_warnings | ||
132 | 12 | |||
133 | 13 | --echo # Create test table | ||
134 | 14 | create table t(a INT PRIMARY KEY, b INT) engine=InnoDB; | ||
135 | 15 | --echo # Insert two rows to test table | ||
136 | 16 | insert into t values(2,1); | ||
137 | 17 | insert into t values(1,2); | ||
138 | 18 | |||
139 | 19 | #--echo # Save current deadlock count | ||
140 | 20 | let $current = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`; | ||
141 | 21 | |||
142 | 22 | --disable_result_log | ||
143 | 23 | |||
144 | 24 | --echo # Switch to connection con1 | ||
145 | 25 | connection con1; | ||
146 | 26 | BEGIN; SELECT b FROM t WHERE a=1 FOR UPDATE; | ||
147 | 27 | |||
148 | 28 | --echo # Switch to connection con2 | ||
149 | 29 | connection con2; | ||
150 | 30 | BEGIN; SELECT b FROM t WHERE a=2 FOR UPDATE; | ||
151 | 31 | |||
152 | 32 | --echo # Switch to connection con1 | ||
153 | 33 | connection con1; | ||
154 | 34 | SEND SELECT b FROM t WHERE a=2 FOR UPDATE; | ||
155 | 35 | |||
156 | 36 | --echo # Switch to connection con2 | ||
157 | 37 | connection con2; | ||
158 | 38 | SEND SELECT b FROM t WHERE a=1 FOR UPDATE; | ||
159 | 39 | |||
160 | 40 | --echo # Switch to connection con1 | ||
161 | 41 | connection con1; | ||
162 | 42 | --error 0, ER_LOCK_DEADLOCK | ||
163 | 43 | reap; | ||
164 | 44 | ROLLBACK; | ||
165 | 45 | |||
166 | 46 | --echo # Switch to connection con2 | ||
167 | 47 | connection con2; | ||
168 | 48 | --error 0, ER_LOCK_DEADLOCK | ||
169 | 49 | reap; | ||
170 | 50 | ROLLBACK; | ||
171 | 51 | |||
172 | 52 | --echo # Switch to connection con3 | ||
173 | 53 | connection con3; | ||
174 | 54 | let $result = `SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'Innodb_deadlocks'`; | ||
175 | 55 | |||
176 | 56 | --enable_result_log | ||
177 | 57 | |||
178 | 58 | let $diff = `SELECT $result - $current`; | ||
179 | 59 | echo Deadlocks: $diff; | ||
180 | 60 | --echo # Drop test table | ||
181 | 61 | drop table t; | ||
182 | 62 | 0 | ||
183 | === removed directory 'mysql-test/log_connection_error.patch' | |||
184 | === removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt' | |||
185 | --- mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt 2010-12-09 18:30:58 +0000 | |||
186 | +++ mysql-test/log_connection_error.patch/percona_log_connection_error-master.opt 1970-01-01 00:00:00 +0000 | |||
187 | @@ -1,1 +0,0 @@ | |||
188 | 1 | --log-error | ||
189 | 2 | 0 | ||
190 | === removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error.result' | |||
191 | --- mysql-test/log_connection_error.patch/percona_log_connection_error.result 2010-12-09 18:30:58 +0000 | |||
192 | +++ mysql-test/log_connection_error.patch/percona_log_connection_error.result 1970-01-01 00:00:00 +0000 | |||
193 | @@ -1,15 +0,0 @@ | |||
194 | 1 | SET @old_max_connections = @@max_connections; | ||
195 | 2 | SET @old_log_warnings = @@log_warnings; | ||
196 | 3 | SET GLOBAL max_connections=2; | ||
197 | 4 | SET GLOBAL LOG_WARNINGS = 0; | ||
198 | 5 | connect(localhost,root,,test,port,socket); | ||
199 | 6 | ERROR HY000: Too many connections | ||
200 | 7 | SET GLOBAL LOG_WARNINGS = 1; | ||
201 | 8 | connect(localhost,root,,test,port,socket); | ||
202 | 9 | ERROR HY000: Too many connections | ||
203 | 10 | SET GLOBAL LOG_WARNINGS = 0; | ||
204 | 11 | connect(localhost,root,,test,port,socket); | ||
205 | 12 | ERROR HY000: Too many connections | ||
206 | 13 | SET GLOBAL max_connections = @old_max_connections; | ||
207 | 14 | SET GLOBAL log_warnings = @old_log_warnings; | ||
208 | 15 | 1 | ||
209 | 16 | 0 | ||
210 | === removed file 'mysql-test/log_connection_error.patch/percona_log_connection_error.test' | |||
211 | --- mysql-test/log_connection_error.patch/percona_log_connection_error.test 2011-04-09 15:41:52 +0000 | |||
212 | +++ mysql-test/log_connection_error.patch/percona_log_connection_error.test 1970-01-01 00:00:00 +0000 | |||
213 | @@ -1,54 +0,0 @@ | |||
214 | 1 | --source include/not_embedded.inc | ||
215 | 2 | |||
216 | 3 | connect (main,localhost,root,,); | ||
217 | 4 | connection main; | ||
218 | 5 | SET @old_max_connections = @@max_connections; | ||
219 | 6 | SET @old_log_warnings = @@log_warnings; | ||
220 | 7 | SET GLOBAL max_connections=2; | ||
221 | 8 | let $port=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'port'`; | ||
222 | 9 | let $socket=`SELECT Variable_value FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE Variable_name LIKE 'socket'`; | ||
223 | 10 | |||
224 | 11 | SET GLOBAL LOG_WARNINGS = 0; | ||
225 | 12 | --connect (conn0,localhost,root,,) | ||
226 | 13 | connection conn0; | ||
227 | 14 | replace_result $port port $socket socket; | ||
228 | 15 | --error 1040 | ||
229 | 16 | --connect(conn1,localhost,root,,) | ||
230 | 17 | disconnect conn0; | ||
231 | 18 | SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right | ||
232 | 19 | |||
233 | 20 | connection main; | ||
234 | 21 | SET GLOBAL LOG_WARNINGS = 1; | ||
235 | 22 | --connect (conn1,localhost,root,,) | ||
236 | 23 | replace_result $port port $socket socket; | ||
237 | 24 | --error 1040 | ||
238 | 25 | --connect (conn0,localhost,root,,) | ||
239 | 26 | disconnect conn1; | ||
240 | 27 | SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right | ||
241 | 28 | |||
242 | 29 | connection main; | ||
243 | 30 | SET GLOBAL LOG_WARNINGS = 0; | ||
244 | 31 | --connect (conn0,localhost,root,,) | ||
245 | 32 | replace_result $port port $socket socket; | ||
246 | 33 | --error 1040 | ||
247 | 34 | --connect(conn1,localhost,root,,) | ||
248 | 35 | disconnect conn0; | ||
249 | 36 | SLEEP 0.1; # tsarev: hack, but i don't know (and didn't find) how right | ||
250 | 37 | |||
251 | 38 | connection main; | ||
252 | 39 | SET GLOBAL max_connections = @old_max_connections; | ||
253 | 40 | SET GLOBAL log_warnings = @old_log_warnings; | ||
254 | 41 | let $log_error_= `SELECT @@GLOBAL.log_error`; | ||
255 | 42 | if(!`select LENGTH('$log_error_')`) | ||
256 | 43 | { | ||
257 | 44 | # MySQL Server on windows is started with --console and thus | ||
258 | 45 | # does not know the location of its .err log, use default location | ||
259 | 46 | let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err; | ||
260 | 47 | } | ||
261 | 48 | # Assign env variable LOG_ERROR | ||
262 | 49 | let LOG_ERROR=$log_error_; | ||
263 | 50 | |||
264 | 51 | --let grep_file = $log_error | ||
265 | 52 | --let grep_pattern = Too many connections | ||
266 | 53 | --source include/grep.inc | ||
267 | 54 | exec $cmd; | ||
268 | 55 | 0 | ||
269 | === removed directory 'mysql-test/log_warnings_suppress.patch' | |||
270 | === removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt' | |||
271 | --- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt 2011-02-21 13:56:22 +0000 | |||
272 | +++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress-master.opt 1970-01-01 00:00:00 +0000 | |||
273 | @@ -1,1 +0,0 @@ | |||
274 | 1 | --log-error | ||
275 | 2 | 0 | ||
276 | === removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result' | |||
277 | --- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result 2011-02-21 13:56:22 +0000 | |||
278 | +++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.result 1970-01-01 00:00:00 +0000 | |||
279 | @@ -1,31 +0,0 @@ | |||
280 | 1 | SET @old_log_warnings = @@log_warnings; | ||
281 | 2 | SET @old_log_warnings_suppress = @@log_warnings_suppress; | ||
282 | 3 | DROP TABLE IF EXISTS t1; | ||
283 | 4 | CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20)); | ||
284 | 5 | SET GLOBAL log_warnings_suppress=''; | ||
285 | 6 | SET GLOBAL LOG_WARNINGS=0; | ||
286 | 7 | SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress'; | ||
287 | 8 | Variable_name Value | ||
288 | 9 | log_warnings_suppress | ||
289 | 10 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
290 | 11 | Warnings: | ||
291 | 12 | Note 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. | ||
292 | 13 | SET GLOBAL LOG_WARNINGS=1; | ||
293 | 14 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
294 | 15 | Warnings: | ||
295 | 16 | Note 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. | ||
296 | 17 | SET GLOBAL log_warnings_suppress='1592'; | ||
297 | 18 | SET GLOBAL LOG_WARNINGS=0; | ||
298 | 19 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
299 | 20 | Warnings: | ||
300 | 21 | Note 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. | ||
301 | 22 | SET GLOBAL LOG_WARNINGS=1; | ||
302 | 23 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
303 | 24 | Warnings: | ||
304 | 25 | Note 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. | ||
305 | 26 | DROP TABLE t1; | ||
306 | 27 | SET GLOBAL log_warnings = @old_log_warnings; | ||
307 | 28 | SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress; | ||
308 | 29 | # Count the number of times the "Unsafe" message was printed | ||
309 | 30 | # to the error log. | ||
310 | 31 | Occurrences: 1 | ||
311 | 32 | 0 | ||
312 | === removed file 'mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test' | |||
313 | --- mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test 2011-02-21 13:56:22 +0000 | |||
314 | +++ mysql-test/log_warnings_suppress.patch/percona_log_warnings_suppress.test 1970-01-01 00:00:00 +0000 | |||
315 | @@ -1,47 +0,0 @@ | |||
316 | 1 | -- source include/have_log_bin.inc | ||
317 | 2 | -- source include/have_binlog_format_statement.inc | ||
318 | 3 | |||
319 | 4 | SET @old_log_warnings = @@log_warnings; | ||
320 | 5 | SET @old_log_warnings_suppress = @@log_warnings_suppress; | ||
321 | 6 | |||
322 | 7 | --disable_warnings | ||
323 | 8 | DROP TABLE IF EXISTS t1; | ||
324 | 9 | --enable_warnings | ||
325 | 10 | CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20)); | ||
326 | 11 | SET GLOBAL log_warnings_suppress=''; | ||
327 | 12 | SET GLOBAL LOG_WARNINGS=0; | ||
328 | 13 | SHOW GLOBAL VARIABLES LIKE 'log_warnings_suppress'; | ||
329 | 14 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
330 | 15 | SET GLOBAL LOG_WARNINGS=1; | ||
331 | 16 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
332 | 17 | SET GLOBAL log_warnings_suppress='1592'; | ||
333 | 18 | SET GLOBAL LOG_WARNINGS=0; | ||
334 | 19 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
335 | 20 | SET GLOBAL LOG_WARNINGS=1; | ||
336 | 21 | INSERT INTO t1 VALUES(UUID(), 'suppress_1592'); | ||
337 | 22 | DROP TABLE t1; | ||
338 | 23 | |||
339 | 24 | SET GLOBAL log_warnings = @old_log_warnings; | ||
340 | 25 | SET GLOBAL log_warnings_suppress = @old_log_warnings_suppress; | ||
341 | 26 | |||
342 | 27 | let $log_error_= `SELECT @@GLOBAL.log_error`; | ||
343 | 28 | if(!`select LENGTH('$log_error_')`) | ||
344 | 29 | { | ||
345 | 30 | # MySQL Server on windows is started with --console and thus | ||
346 | 31 | # does not know the location of its .err log, use default location | ||
347 | 32 | let $log_error_ = $MYSQLTEST_VARDIR/log/mysqld.1.err; | ||
348 | 33 | } | ||
349 | 34 | # Assign env variable LOG_ERROR | ||
350 | 35 | let LOG_ERROR=$log_error_; | ||
351 | 36 | |||
352 | 37 | --echo # Count the number of times the "Unsafe" message was printed | ||
353 | 38 | --echo # to the error log. | ||
354 | 39 | |||
355 | 40 | perl; | ||
356 | 41 | use strict; | ||
357 | 42 | my $log_error= $ENV{'LOG_ERROR'} or die "LOG_ERROR not set"; | ||
358 | 43 | open(FILE, "$log_error") or die("Unable to open $log_error: $!\n"); | ||
359 | 44 | my $count = () = grep(/suppress_1592/g,<FILE>); | ||
360 | 45 | print "Occurrences: $count\n"; | ||
361 | 46 | close(FILE); | ||
362 | 47 | EOF | ||
363 | 48 | 0 | ||
364 | === removed directory 'mysql-test/memory_dynamic_rows.patch' | |||
365 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result' | |||
366 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result 2011-06-06 10:34:16 +0000 | |||
367 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_blob.result 1970-01-01 00:00:00 +0000 | |||
368 | @@ -1,952 +0,0 @@ | |||
369 | 1 | SET @old_default_storage_engine=@@default_storage_engine; | ||
370 | 2 | SET default_storage_engine=MEMORY; | ||
371 | 3 | drop table if exists t1,t2,t3,t4,t5,t6,t7; | ||
372 | 4 | CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000)); | ||
373 | 5 | show columns from t1; | ||
374 | 6 | Field Type Null Key Default Extra | ||
375 | 7 | a blob YES NULL | ||
376 | 8 | b text YES NULL | ||
377 | 9 | c tinyblob YES NULL | ||
378 | 10 | d mediumtext YES NULL | ||
379 | 11 | e longtext YES NULL | ||
380 | 12 | CREATE TABLE t2 (a char(255), b varbinary(70000), c varchar(70000000)); | ||
381 | 13 | Warnings: | ||
382 | 14 | Note 1246 Converting column 'b' from VARBINARY to BLOB | ||
383 | 15 | Note 1246 Converting column 'c' from VARCHAR to TEXT | ||
384 | 16 | CREATE TABLE t4 (c varchar(65530) character set utf8 not null); | ||
385 | 17 | Warnings: | ||
386 | 18 | Note 1246 Converting column 'c' from VARCHAR to TEXT | ||
387 | 19 | show columns from t2; | ||
388 | 20 | Field Type Null Key Default Extra | ||
389 | 21 | a char(255) YES NULL | ||
390 | 22 | b mediumblob YES NULL | ||
391 | 23 | c longtext YES NULL | ||
392 | 24 | create table t3 (a long, b long byte); | ||
393 | 25 | show create TABLE t3; | ||
394 | 26 | Table Create Table | ||
395 | 27 | t3 CREATE TABLE `t3` ( | ||
396 | 28 | `a` mediumtext, | ||
397 | 29 | `b` mediumblob | ||
398 | 30 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 | ||
399 | 31 | show create TABLE t4; | ||
400 | 32 | Table Create Table | ||
401 | 33 | t4 CREATE TABLE `t4` ( | ||
402 | 34 | `c` mediumtext CHARACTER SET utf8 NOT NULL | ||
403 | 35 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 | ||
404 | 36 | drop table t1,t2,t3,t4; | ||
405 | 37 | CREATE TABLE t1 (a char(257) default "hello"); | ||
406 | 38 | ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead | ||
407 | 39 | CREATE TABLE t2 (a char(256)); | ||
408 | 40 | ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead | ||
409 | 41 | CREATE TABLE t1 (a varchar(70000) default "hello"); | ||
410 | 42 | ERROR 42000: Column length too big for column 'a' (max = 65535); use BLOB or TEXT instead | ||
411 | 43 | CREATE TABLE t2 (a blob default "hello"); | ||
412 | 44 | ERROR 42000: BLOB/TEXT column 'a' can't have a default value | ||
413 | 45 | drop table if exists t1,t2; | ||
414 | 46 | create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr)); | ||
415 | 47 | insert into t1 values (null,"a","A"); | ||
416 | 48 | insert into t1 values (null,"bbb","BBB"); | ||
417 | 49 | insert into t1 values (null,"ccc","CCC"); | ||
418 | 50 | select last_insert_id(); | ||
419 | 51 | last_insert_id() | ||
420 | 52 | 3 | ||
421 | 53 | select * from t1,t1 as t2; | ||
422 | 54 | nr b str nr b str | ||
423 | 55 | 1 a A 1 a A | ||
424 | 56 | 2 bbb BBB 1 a A | ||
425 | 57 | 3 ccc CCC 1 a A | ||
426 | 58 | 1 a A 2 bbb BBB | ||
427 | 59 | 2 bbb BBB 2 bbb BBB | ||
428 | 60 | 3 ccc CCC 2 bbb BBB | ||
429 | 61 | 1 a A 3 ccc CCC | ||
430 | 62 | 2 bbb BBB 3 ccc CCC | ||
431 | 63 | 3 ccc CCC 3 ccc CCC | ||
432 | 64 | drop table t1; | ||
433 | 65 | create table t1 (a text); | ||
434 | 66 | insert into t1 values ('where'); | ||
435 | 67 | update t1 set a='Where'; | ||
436 | 68 | select * from t1; | ||
437 | 69 | a | ||
438 | 70 | Where | ||
439 | 71 | drop table t1; | ||
440 | 72 | create table t1 (t text,c char(10),b blob, d varbinary(10)); | ||
441 | 73 | insert into t1 values (NULL,NULL,NULL,NULL); | ||
442 | 74 | insert into t1 values ("","","",""); | ||
443 | 75 | insert into t1 values ("hello","hello","hello","hello"); | ||
444 | 76 | insert into t1 values ("HELLO","HELLO","HELLO","HELLO"); | ||
445 | 77 | insert into t1 values ("HELLO MY","HELLO MY","HELLO MY","HELLO MY"); | ||
446 | 78 | insert into t1 values ("a","a","a","a"); | ||
447 | 79 | insert into t1 values (1,1,1,1); | ||
448 | 80 | insert into t1 values (NULL,NULL,NULL,NULL); | ||
449 | 81 | update t1 set c="",b=null where c="1"; | ||
450 | 82 | lock tables t1 READ; | ||
451 | 83 | show full fields from t1; | ||
452 | 84 | Field Type Collation Null Key Default Extra Privileges Comment | ||
453 | 85 | t text latin1_swedish_ci YES NULL # | ||
454 | 86 | c char(10) latin1_swedish_ci YES NULL # | ||
455 | 87 | b blob NULL YES NULL # | ||
456 | 88 | d varbinary(10) NULL YES NULL # | ||
457 | 89 | lock tables t1 WRITE; | ||
458 | 90 | show full fields from t1; | ||
459 | 91 | Field Type Collation Null Key Default Extra Privileges Comment | ||
460 | 92 | t text latin1_swedish_ci YES NULL # | ||
461 | 93 | c char(10) latin1_swedish_ci YES NULL # | ||
462 | 94 | b blob NULL YES NULL # | ||
463 | 95 | d varbinary(10) NULL YES NULL # | ||
464 | 96 | unlock tables; | ||
465 | 97 | select t from t1 where t like "hello"; | ||
466 | 98 | t | ||
467 | 99 | hello | ||
468 | 100 | HELLO | ||
469 | 101 | select c from t1 where c like "hello"; | ||
470 | 102 | c | ||
471 | 103 | hello | ||
472 | 104 | HELLO | ||
473 | 105 | select b from t1 where b like "hello"; | ||
474 | 106 | b | ||
475 | 107 | hello | ||
476 | 108 | select d from t1 where d like "hello"; | ||
477 | 109 | d | ||
478 | 110 | hello | ||
479 | 111 | select c from t1 having c like "hello"; | ||
480 | 112 | c | ||
481 | 113 | hello | ||
482 | 114 | HELLO | ||
483 | 115 | select d from t1 having d like "hello"; | ||
484 | 116 | d | ||
485 | 117 | hello | ||
486 | 118 | select t from t1 where t like "%HELLO%"; | ||
487 | 119 | t | ||
488 | 120 | hello | ||
489 | 121 | HELLO | ||
490 | 122 | HELLO MY | ||
491 | 123 | select c from t1 where c like "%HELLO%"; | ||
492 | 124 | c | ||
493 | 125 | hello | ||
494 | 126 | HELLO | ||
495 | 127 | HELLO MY | ||
496 | 128 | select b from t1 where b like "%HELLO%"; | ||
497 | 129 | b | ||
498 | 130 | HELLO | ||
499 | 131 | HELLO MY | ||
500 | 132 | select d from t1 where d like "%HELLO%"; | ||
501 | 133 | d | ||
502 | 134 | HELLO | ||
503 | 135 | HELLO MY | ||
504 | 136 | select c from t1 having c like "%HELLO%"; | ||
505 | 137 | c | ||
506 | 138 | hello | ||
507 | 139 | HELLO | ||
508 | 140 | HELLO MY | ||
509 | 141 | select d from t1 having d like "%HELLO%"; | ||
510 | 142 | d | ||
511 | 143 | HELLO | ||
512 | 144 | HELLO MY | ||
513 | 145 | select d from t1 having d like "%HE%LLO%"; | ||
514 | 146 | d | ||
515 | 147 | HELLO | ||
516 | 148 | HELLO MY | ||
517 | 149 | select t from t1 order by t; | ||
518 | 150 | t | ||
519 | 151 | NULL | ||
520 | 152 | NULL | ||
521 | 153 | |||
522 | 154 | 1 | ||
523 | 155 | a | ||
524 | 156 | hello | ||
525 | 157 | HELLO | ||
526 | 158 | HELLO MY | ||
527 | 159 | select c from t1 order by c; | ||
528 | 160 | c | ||
529 | 161 | NULL | ||
530 | 162 | NULL | ||
531 | 163 | |||
532 | 164 | |||
533 | 165 | a | ||
534 | 166 | hello | ||
535 | 167 | HELLO | ||
536 | 168 | HELLO MY | ||
537 | 169 | select b from t1 order by b; | ||
538 | 170 | b | ||
539 | 171 | NULL | ||
540 | 172 | NULL | ||
541 | 173 | NULL | ||
542 | 174 | |||
543 | 175 | HELLO | ||
544 | 176 | HELLO MY | ||
545 | 177 | a | ||
546 | 178 | hello | ||
547 | 179 | select d from t1 order by d; | ||
548 | 180 | d | ||
549 | 181 | NULL | ||
550 | 182 | NULL | ||
551 | 183 | |||
552 | 184 | 1 | ||
553 | 185 | HELLO | ||
554 | 186 | HELLO MY | ||
555 | 187 | a | ||
556 | 188 | hello | ||
557 | 189 | select distinct t from t1; | ||
558 | 190 | t | ||
559 | 191 | NULL | ||
560 | 192 | |||
561 | 193 | hello | ||
562 | 194 | HELLO MY | ||
563 | 195 | a | ||
564 | 196 | 1 | ||
565 | 197 | select distinct b from t1; | ||
566 | 198 | b | ||
567 | 199 | NULL | ||
568 | 200 | |||
569 | 201 | hello | ||
570 | 202 | HELLO | ||
571 | 203 | HELLO MY | ||
572 | 204 | a | ||
573 | 205 | select distinct t from t1 order by t; | ||
574 | 206 | t | ||
575 | 207 | NULL | ||
576 | 208 | |||
577 | 209 | 1 | ||
578 | 210 | a | ||
579 | 211 | hello | ||
580 | 212 | HELLO MY | ||
581 | 213 | select distinct b from t1 order by b; | ||
582 | 214 | b | ||
583 | 215 | NULL | ||
584 | 216 | |||
585 | 217 | HELLO | ||
586 | 218 | HELLO MY | ||
587 | 219 | a | ||
588 | 220 | hello | ||
589 | 221 | select t from t1 group by t; | ||
590 | 222 | t | ||
591 | 223 | NULL | ||
592 | 224 | |||
593 | 225 | 1 | ||
594 | 226 | a | ||
595 | 227 | hello | ||
596 | 228 | HELLO MY | ||
597 | 229 | select b from t1 group by b; | ||
598 | 230 | b | ||
599 | 231 | NULL | ||
600 | 232 | |||
601 | 233 | HELLO | ||
602 | 234 | HELLO MY | ||
603 | 235 | a | ||
604 | 236 | hello | ||
605 | 237 | set option sql_big_tables=1; | ||
606 | 238 | select distinct t from t1; | ||
607 | 239 | t | ||
608 | 240 | NULL | ||
609 | 241 | |||
610 | 242 | hello | ||
611 | 243 | HELLO MY | ||
612 | 244 | a | ||
613 | 245 | 1 | ||
614 | 246 | select distinct b from t1; | ||
615 | 247 | b | ||
616 | 248 | NULL | ||
617 | 249 | |||
618 | 250 | hello | ||
619 | 251 | HELLO | ||
620 | 252 | HELLO MY | ||
621 | 253 | a | ||
622 | 254 | select distinct t from t1 order by t; | ||
623 | 255 | t | ||
624 | 256 | NULL | ||
625 | 257 | |||
626 | 258 | 1 | ||
627 | 259 | a | ||
628 | 260 | hello | ||
629 | 261 | HELLO MY | ||
630 | 262 | select distinct b from t1 order by b; | ||
631 | 263 | b | ||
632 | 264 | NULL | ||
633 | 265 | |||
634 | 266 | HELLO | ||
635 | 267 | HELLO MY | ||
636 | 268 | a | ||
637 | 269 | hello | ||
638 | 270 | select distinct c from t1; | ||
639 | 271 | c | ||
640 | 272 | NULL | ||
641 | 273 | |||
642 | 274 | hello | ||
643 | 275 | HELLO MY | ||
644 | 276 | a | ||
645 | 277 | select distinct d from t1; | ||
646 | 278 | d | ||
647 | 279 | NULL | ||
648 | 280 | |||
649 | 281 | hello | ||
650 | 282 | HELLO | ||
651 | 283 | HELLO MY | ||
652 | 284 | a | ||
653 | 285 | 1 | ||
654 | 286 | select distinct c from t1 order by c; | ||
655 | 287 | c | ||
656 | 288 | NULL | ||
657 | 289 | |||
658 | 290 | a | ||
659 | 291 | hello | ||
660 | 292 | HELLO MY | ||
661 | 293 | select distinct d from t1 order by d; | ||
662 | 294 | d | ||
663 | 295 | NULL | ||
664 | 296 | |||
665 | 297 | 1 | ||
666 | 298 | HELLO | ||
667 | 299 | HELLO MY | ||
668 | 300 | a | ||
669 | 301 | hello | ||
670 | 302 | select c from t1 group by c; | ||
671 | 303 | c | ||
672 | 304 | NULL | ||
673 | 305 | |||
674 | 306 | a | ||
675 | 307 | hello | ||
676 | 308 | HELLO MY | ||
677 | 309 | select d from t1 group by d; | ||
678 | 310 | d | ||
679 | 311 | NULL | ||
680 | 312 | |||
681 | 313 | 1 | ||
682 | 314 | HELLO | ||
683 | 315 | HELLO MY | ||
684 | 316 | a | ||
685 | 317 | hello | ||
686 | 318 | set option sql_big_tables=0; | ||
687 | 319 | select distinct * from t1; | ||
688 | 320 | t c b d | ||
689 | 321 | NULL NULL NULL NULL | ||
690 | 322 | |||
691 | 323 | hello hello hello hello | ||
692 | 324 | HELLO HELLO HELLO HELLO | ||
693 | 325 | HELLO MY HELLO MY HELLO MY HELLO MY | ||
694 | 326 | a a a a | ||
695 | 327 | 1 NULL 1 | ||
696 | 328 | select t,count(*) from t1 group by t; | ||
697 | 329 | t count(*) | ||
698 | 330 | NULL 2 | ||
699 | 331 | 1 | ||
700 | 332 | 1 1 | ||
701 | 333 | a 1 | ||
702 | 334 | hello 2 | ||
703 | 335 | HELLO MY 1 | ||
704 | 336 | select b,count(*) from t1 group by b; | ||
705 | 337 | b count(*) | ||
706 | 338 | NULL 3 | ||
707 | 339 | 1 | ||
708 | 340 | HELLO 1 | ||
709 | 341 | HELLO MY 1 | ||
710 | 342 | a 1 | ||
711 | 343 | hello 1 | ||
712 | 344 | select c,count(*) from t1 group by c; | ||
713 | 345 | c count(*) | ||
714 | 346 | NULL 2 | ||
715 | 347 | 2 | ||
716 | 348 | a 1 | ||
717 | 349 | hello 2 | ||
718 | 350 | HELLO MY 1 | ||
719 | 351 | select d,count(*) from t1 group by d; | ||
720 | 352 | d count(*) | ||
721 | 353 | NULL 2 | ||
722 | 354 | 1 | ||
723 | 355 | 1 1 | ||
724 | 356 | HELLO 1 | ||
725 | 357 | HELLO MY 1 | ||
726 | 358 | a 1 | ||
727 | 359 | hello 1 | ||
728 | 360 | drop table t1; | ||
729 | 361 | CREATE TABLE t1 ( | ||
730 | 362 | t1_id bigint(21) NOT NULL auto_increment, | ||
731 | 363 | _field_72 varchar(128) DEFAULT '' NOT NULL, | ||
732 | 364 | _field_95 varchar(32), | ||
733 | 365 | _field_115 tinyint(4) DEFAULT '0' NOT NULL, | ||
734 | 366 | _field_122 tinyint(4) DEFAULT '0' NOT NULL, | ||
735 | 367 | _field_126 tinyint(4), | ||
736 | 368 | _field_134 tinyint(4), | ||
737 | 369 | PRIMARY KEY (t1_id), | ||
738 | 370 | UNIQUE _field_72 (_field_72), | ||
739 | 371 | KEY _field_115 (_field_115), | ||
740 | 372 | KEY _field_122 (_field_122) | ||
741 | 373 | ); | ||
742 | 374 | INSERT INTO t1 VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,1,NULL,NULL); | ||
743 | 375 | INSERT INTO t1 VALUES (2,'hroberts','7415275a8c95952901e42b13a6b78566',0,1,NULL,NULL); | ||
744 | 376 | INSERT INTO t1 VALUES (3,'guest','d41d8cd98f00b204e9800998ecf8427e',1,0,NULL,NULL); | ||
745 | 377 | CREATE TABLE t2 ( | ||
746 | 378 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
747 | 379 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
748 | 380 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
749 | 381 | ); | ||
750 | 382 | INSERT INTO t2 VALUES (1,1); | ||
751 | 383 | INSERT INTO t2 VALUES (2,1); | ||
752 | 384 | INSERT INTO t2 VALUES (2,2); | ||
753 | 385 | CREATE TABLE t3 ( | ||
754 | 386 | t3_id bigint(21) NOT NULL auto_increment, | ||
755 | 387 | _field_131 varchar(128), | ||
756 | 388 | _field_133 tinyint(4) DEFAULT '0' NOT NULL, | ||
757 | 389 | _field_135 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, | ||
758 | 390 | _field_137 tinyint(4), | ||
759 | 391 | _field_139 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, | ||
760 | 392 | _field_140 blob, | ||
761 | 393 | _field_142 tinyint(4) DEFAULT '0' NOT NULL, | ||
762 | 394 | _field_145 tinyint(4) DEFAULT '0' NOT NULL, | ||
763 | 395 | _field_148 tinyint(4) DEFAULT '0' NOT NULL, | ||
764 | 396 | PRIMARY KEY (t3_id), | ||
765 | 397 | KEY _field_133 (_field_133), | ||
766 | 398 | KEY _field_135 (_field_135), | ||
767 | 399 | KEY _field_139 (_field_139), | ||
768 | 400 | KEY _field_142 (_field_142), | ||
769 | 401 | KEY _field_145 (_field_145), | ||
770 | 402 | KEY _field_148 (_field_148) | ||
771 | 403 | ); | ||
772 | 404 | INSERT 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); | ||
773 | 405 | INSERT INTO t3 VALUES (2,'test job 2',0,'0000-00-00 00:00:00',0,'1999-02-26 21:08:04','',0,0,0); | ||
774 | 406 | CREATE TABLE t4 ( | ||
775 | 407 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
776 | 408 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
777 | 409 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
778 | 410 | ); | ||
779 | 411 | INSERT INTO t4 VALUES (1,1); | ||
780 | 412 | INSERT INTO t4 VALUES (2,1); | ||
781 | 413 | CREATE TABLE t5 ( | ||
782 | 414 | t5_id bigint(21) NOT NULL auto_increment, | ||
783 | 415 | _field_149 tinyint(4), | ||
784 | 416 | _field_156 varchar(128) DEFAULT '' NOT NULL, | ||
785 | 417 | _field_157 varchar(128) DEFAULT '' NOT NULL, | ||
786 | 418 | _field_158 varchar(128) DEFAULT '' NOT NULL, | ||
787 | 419 | _field_159 varchar(128) DEFAULT '' NOT NULL, | ||
788 | 420 | _field_160 varchar(128) DEFAULT '' NOT NULL, | ||
789 | 421 | _field_161 varchar(128) DEFAULT '' NOT NULL, | ||
790 | 422 | PRIMARY KEY (t5_id), | ||
791 | 423 | KEY _field_156 (_field_156), | ||
792 | 424 | KEY _field_157 (_field_157), | ||
793 | 425 | KEY _field_158 (_field_158), | ||
794 | 426 | KEY _field_159 (_field_159), | ||
795 | 427 | KEY _field_160 (_field_160), | ||
796 | 428 | KEY _field_161 (_field_161) | ||
797 | 429 | ); | ||
798 | 430 | INSERT INTO t5 VALUES (1,0,'tomato','','','','',''); | ||
799 | 431 | INSERT INTO t5 VALUES (2,0,'cilantro','','','','',''); | ||
800 | 432 | CREATE TABLE t6 ( | ||
801 | 433 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
802 | 434 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
803 | 435 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
804 | 436 | ); | ||
805 | 437 | INSERT INTO t6 VALUES (1,1); | ||
806 | 438 | INSERT INTO t6 VALUES (1,2); | ||
807 | 439 | INSERT INTO t6 VALUES (2,2); | ||
808 | 440 | CREATE TABLE t7 ( | ||
809 | 441 | t7_id bigint(21) NOT NULL auto_increment, | ||
810 | 442 | _field_143 tinyint(4), | ||
811 | 443 | _field_165 varchar(32), | ||
812 | 444 | _field_166 smallint(6) DEFAULT '0' NOT NULL, | ||
813 | 445 | PRIMARY KEY (t7_id), | ||
814 | 446 | KEY _field_166 (_field_166) | ||
815 | 447 | ); | ||
816 | 448 | INSERT INTO t7 VALUES (1,0,'High',1); | ||
817 | 449 | INSERT INTO t7 VALUES (2,0,'Medium',2); | ||
818 | 450 | INSERT INTO t7 VALUES (3,0,'Low',3); | ||
819 | 451 | select 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; | ||
820 | 452 | 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_id | ||
821 | 453 | test^M | ||
822 | 454 | job^M | ||
823 | 455 | 1 1 test job 1 0000-00-00 00:00:00 1999-02-25 22:43:32 0 High admin 0 tomato test^M | ||
824 | 456 | job^M | ||
825 | 457 | 1 1 | ||
826 | 458 | drop table t1,t2,t3,t4,t5,t6,t7; | ||
827 | 459 | create table t1 (a blob); | ||
828 | 460 | insert into t1 values ("empty"),(""); | ||
829 | 461 | select a,reverse(a) from t1; | ||
830 | 462 | a reverse(a) | ||
831 | 463 | empty ytpme | ||
832 | 464 | |||
833 | 465 | drop table t1; | ||
834 | 466 | create table t1 (id integer auto_increment unique,imagem LONGBLOB not null default ''); | ||
835 | 467 | Warnings: | ||
836 | 468 | Warning 1101 BLOB/TEXT column 'imagem' can't have a default value | ||
837 | 469 | insert into t1 (id) values (1); | ||
838 | 470 | select | ||
839 | 471 | charset(load_file('../../std_data/words.dat')), | ||
840 | 472 | collation(load_file('../../std_data/words.dat')), | ||
841 | 473 | coercibility(load_file('../../std_data/words.dat')); | ||
842 | 474 | charset(load_file('../../std_data/words.dat')) collation(load_file('../../std_data/words.dat')) coercibility(load_file('../../std_data/words.dat')) | ||
843 | 475 | binary binary 4 | ||
844 | 476 | explain extended select | ||
845 | 477 | charset(load_file('MYSQLTEST_VARDIR/std_data/words.dat')), | ||
846 | 478 | collation(load_file('MYSQLTEST_VARDIR/std_data/words.dat')), | ||
847 | 479 | coercibility(load_file('MYSQLTEST_VARDIR/std_data/words.dat')); | ||
848 | 480 | id select_type table type possible_keys key key_len ref rows filtered Extra | ||
849 | 481 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used | ||
850 | 482 | Warnings: | ||
851 | 483 | Note 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'))` | ||
852 | 484 | update t1 set imagem=load_file('MYSQLTEST_VARDIR/std_data/words.dat') where id=1; | ||
853 | 485 | select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1; | ||
854 | 486 | if(imagem is null, "ERROR", "OK") length(imagem) | ||
855 | 487 | OK 581 | ||
856 | 488 | drop table t1; | ||
857 | 489 | create table t1 select load_file('MYSQLTEST_VARDIR/std_data/words.dat') l; | ||
858 | 490 | show full fields from t1; | ||
859 | 491 | Field Type Collation Null Key Default Extra Privileges Comment | ||
860 | 492 | l longblob NULL YES NULL # | ||
861 | 493 | drop table t1; | ||
862 | 494 | create table t1 (id integer primary key auto_increment, txt text not null); | ||
863 | 495 | insert into t1 (txt) values ('Chevy '); | ||
864 | 496 | select * from t1 where txt='Chevy'; | ||
865 | 497 | id txt | ||
866 | 498 | 1 Chevy | ||
867 | 499 | select * from t1 where txt='Chevy '; | ||
868 | 500 | id txt | ||
869 | 501 | 1 Chevy | ||
870 | 502 | select * from t1 where txt='Chevy ' or txt='Chevy'; | ||
871 | 503 | id txt | ||
872 | 504 | 1 Chevy | ||
873 | 505 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
874 | 506 | id txt | ||
875 | 507 | 1 Chevy | ||
876 | 508 | select * from t1 where id='1' or id='2'; | ||
877 | 509 | id txt | ||
878 | 510 | 1 Chevy | ||
879 | 511 | insert into t1 (txt) values('Ford'); | ||
880 | 512 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford'; | ||
881 | 513 | id txt | ||
882 | 514 | 1 Chevy | ||
883 | 515 | 2 Ford | ||
884 | 516 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
885 | 517 | id txt | ||
886 | 518 | 1 Chevy | ||
887 | 519 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy'; | ||
888 | 520 | id txt | ||
889 | 521 | 1 Chevy | ||
890 | 522 | select * from t1 where txt in ('Chevy ','Chevy'); | ||
891 | 523 | id txt | ||
892 | 524 | 1 Chevy | ||
893 | 525 | select * from t1 where txt in ('Chevy'); | ||
894 | 526 | id txt | ||
895 | 527 | 1 Chevy | ||
896 | 528 | select * from t1 where txt between 'Chevy' and 'Chevy'; | ||
897 | 529 | id txt | ||
898 | 530 | 1 Chevy | ||
899 | 531 | select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy '; | ||
900 | 532 | id txt | ||
901 | 533 | 1 Chevy | ||
902 | 534 | select * from t1 where txt between 'Chevy' and 'Chevy '; | ||
903 | 535 | id txt | ||
904 | 536 | 1 Chevy | ||
905 | 537 | select * from t1 where txt < 'Chevy '; | ||
906 | 538 | id txt | ||
907 | 539 | select * from t1 where txt <= 'Chevy'; | ||
908 | 540 | id txt | ||
909 | 541 | 1 Chevy | ||
910 | 542 | select * from t1 where txt > 'Chevy'; | ||
911 | 543 | id txt | ||
912 | 544 | 2 Ford | ||
913 | 545 | select * from t1 where txt >= 'Chevy'; | ||
914 | 546 | id txt | ||
915 | 547 | 1 Chevy | ||
916 | 548 | 2 Ford | ||
917 | 549 | drop table t1; | ||
918 | 550 | create table t1 (id integer primary key auto_increment, txt text); | ||
919 | 551 | insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL); | ||
920 | 552 | select * from t1 where txt='Chevy' or txt is NULL; | ||
921 | 553 | id txt | ||
922 | 554 | 1 Chevy | ||
923 | 555 | 2 Chevy | ||
924 | 556 | 3 NULL | ||
925 | 557 | explain select * from t1 where txt='Chevy' or txt is NULL; | ||
926 | 558 | id select_type table type possible_keys key key_len ref rows Extra | ||
927 | 559 | 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where | ||
928 | 560 | select * from t1 where txt='Chevy '; | ||
929 | 561 | id txt | ||
930 | 562 | 1 Chevy | ||
931 | 563 | 2 Chevy | ||
932 | 564 | select * from t1 where txt='Chevy ' or txt='Chevy'; | ||
933 | 565 | id txt | ||
934 | 566 | 1 Chevy | ||
935 | 567 | 2 Chevy | ||
936 | 568 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
937 | 569 | id txt | ||
938 | 570 | 1 Chevy | ||
939 | 571 | 2 Chevy | ||
940 | 572 | select * from t1 where id='1' or id='2'; | ||
941 | 573 | id txt | ||
942 | 574 | 1 Chevy | ||
943 | 575 | 2 Chevy | ||
944 | 576 | insert into t1 (txt) values('Ford'); | ||
945 | 577 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford'; | ||
946 | 578 | id txt | ||
947 | 579 | 1 Chevy | ||
948 | 580 | 2 Chevy | ||
949 | 581 | 4 Ford | ||
950 | 582 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
951 | 583 | id txt | ||
952 | 584 | 1 Chevy | ||
953 | 585 | 2 Chevy | ||
954 | 586 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy'; | ||
955 | 587 | id txt | ||
956 | 588 | 1 Chevy | ||
957 | 589 | 2 Chevy | ||
958 | 590 | select * from t1 where txt in ('Chevy ','Chevy'); | ||
959 | 591 | id txt | ||
960 | 592 | 1 Chevy | ||
961 | 593 | 2 Chevy | ||
962 | 594 | select * from t1 where txt in ('Chevy'); | ||
963 | 595 | id txt | ||
964 | 596 | 1 Chevy | ||
965 | 597 | 2 Chevy | ||
966 | 598 | select * from t1 where txt between 'Chevy' and 'Chevy'; | ||
967 | 599 | id txt | ||
968 | 600 | 1 Chevy | ||
969 | 601 | 2 Chevy | ||
970 | 602 | select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy '; | ||
971 | 603 | id txt | ||
972 | 604 | 1 Chevy | ||
973 | 605 | 2 Chevy | ||
974 | 606 | select * from t1 where txt between 'Chevy' and 'Chevy '; | ||
975 | 607 | id txt | ||
976 | 608 | 1 Chevy | ||
977 | 609 | 2 Chevy | ||
978 | 610 | select * from t1 where txt < 'Chevy '; | ||
979 | 611 | id txt | ||
980 | 612 | select * from t1 where txt < 'Chevy ' or txt is NULL; | ||
981 | 613 | id txt | ||
982 | 614 | 3 NULL | ||
983 | 615 | select * from t1 where txt <= 'Chevy'; | ||
984 | 616 | id txt | ||
985 | 617 | 1 Chevy | ||
986 | 618 | 2 Chevy | ||
987 | 619 | select * from t1 where txt > 'Chevy'; | ||
988 | 620 | id txt | ||
989 | 621 | 4 Ford | ||
990 | 622 | select * from t1 where txt >= 'Chevy'; | ||
991 | 623 | id txt | ||
992 | 624 | 1 Chevy | ||
993 | 625 | 2 Chevy | ||
994 | 626 | 4 Ford | ||
995 | 627 | alter table t1 modify column txt blob; | ||
996 | 628 | explain select * from t1 where txt='Chevy' or txt is NULL; | ||
997 | 629 | id select_type table type possible_keys key key_len ref rows Extra | ||
998 | 630 | 1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where | ||
999 | 631 | select * from t1 where txt='Chevy' or txt is NULL; | ||
1000 | 632 | id txt | ||
1001 | 633 | 1 Chevy | ||
1002 | 634 | 3 NULL | ||
1003 | 635 | explain select * from t1 where txt='Chevy' or txt is NULL order by txt; | ||
1004 | 636 | id select_type table type possible_keys key key_len ref rows Extra | ||
1005 | 637 | 1 SIMPLE t1 ALL NULL NULL NULL NULL 4 Using where; Using filesort | ||
1006 | 638 | select * from t1 where txt='Chevy' or txt is NULL order by txt; | ||
1007 | 639 | id txt | ||
1008 | 640 | 3 NULL | ||
1009 | 641 | 1 Chevy | ||
1010 | 642 | drop table t1; | ||
1011 | 643 | CREATE TABLE t1 ( i int(11) NOT NULL default '0', c text NOT NULL, d varchar(1) NOT NULL DEFAULT ' ', PRIMARY KEY (i)); | ||
1012 | 644 | INSERT t1 (i, c) VALUES (1,''),(2,''),(3,'asdfh'),(4,''); | ||
1013 | 645 | select max(i) from t1 where c = ''; | ||
1014 | 646 | max(i) | ||
1015 | 647 | 4 | ||
1016 | 648 | drop table t1; | ||
1017 | 649 | CREATE table t1 (a blob); | ||
1018 | 650 | insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL); | ||
1019 | 651 | select hex(a) from t1 order by a; | ||
1020 | 652 | hex(a) | ||
1021 | 653 | NULL | ||
1022 | 654 | 61 | ||
1023 | 655 | 6100 | ||
1024 | 656 | 6120 | ||
1025 | 657 | 6161 | ||
1026 | 658 | 62 | ||
1027 | 659 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1028 | 660 | b | ||
1029 | 661 | NULL | ||
1030 | 662 | 6100 | ||
1031 | 663 | 610000 | ||
1032 | 664 | 612000 | ||
1033 | 665 | 616100 | ||
1034 | 666 | 6200 | ||
1035 | 667 | alter table t1 modify a varbinary(5); | ||
1036 | 668 | select hex(a) from t1 order by a; | ||
1037 | 669 | hex(a) | ||
1038 | 670 | NULL | ||
1039 | 671 | 61 | ||
1040 | 672 | 6100 | ||
1041 | 673 | 6120 | ||
1042 | 674 | 6161 | ||
1043 | 675 | 62 | ||
1044 | 676 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1045 | 677 | b | ||
1046 | 678 | NULL | ||
1047 | 679 | 6100 | ||
1048 | 680 | 610000 | ||
1049 | 681 | 612000 | ||
1050 | 682 | 616100 | ||
1051 | 683 | 6200 | ||
1052 | 684 | alter table t1 modify a char(5); | ||
1053 | 685 | select hex(a) from t1 order by a; | ||
1054 | 686 | hex(a) | ||
1055 | 687 | NULL | ||
1056 | 688 | 6100 | ||
1057 | 689 | 61 | ||
1058 | 690 | 61 | ||
1059 | 691 | 6161 | ||
1060 | 692 | 62 | ||
1061 | 693 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1062 | 694 | b | ||
1063 | 695 | NULL | ||
1064 | 696 | 610000 | ||
1065 | 697 | 6100 | ||
1066 | 698 | 6100 | ||
1067 | 699 | 616100 | ||
1068 | 700 | 6200 | ||
1069 | 701 | alter table t1 modify a binary(5); | ||
1070 | 702 | select hex(a) from t1 order by a; | ||
1071 | 703 | hex(a) | ||
1072 | 704 | NULL | ||
1073 | 705 | 6100000000 | ||
1074 | 706 | 6100000000 | ||
1075 | 707 | 6100000000 | ||
1076 | 708 | 6161000000 | ||
1077 | 709 | 6200000000 | ||
1078 | 710 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1079 | 711 | b | ||
1080 | 712 | NULL | ||
1081 | 713 | 610000000000 | ||
1082 | 714 | 610000000000 | ||
1083 | 715 | 610000000000 | ||
1084 | 716 | 616100000000 | ||
1085 | 717 | 620000000000 | ||
1086 | 718 | drop table t1; | ||
1087 | 719 | create table t1 (a text default ''); | ||
1088 | 720 | Warnings: | ||
1089 | 721 | Warning 1101 BLOB/TEXT column 'a' can't have a default value | ||
1090 | 722 | show create table t1; | ||
1091 | 723 | Table Create Table | ||
1092 | 724 | t1 CREATE TABLE `t1` ( | ||
1093 | 725 | `a` text | ||
1094 | 726 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 | ||
1095 | 727 | insert into t1 values (default); | ||
1096 | 728 | select * from t1; | ||
1097 | 729 | a | ||
1098 | 730 | NULL | ||
1099 | 731 | drop table t1; | ||
1100 | 732 | set @@sql_mode='TRADITIONAL'; | ||
1101 | 733 | create table t1 (a text default ''); | ||
1102 | 734 | ERROR 42000: BLOB/TEXT column 'a' can't have a default value | ||
1103 | 735 | set @@sql_mode=''; | ||
1104 | 736 | CREATE TABLE t (c TEXT CHARSET ASCII); | ||
1105 | 737 | INSERT INTO t (c) VALUES (REPEAT('1',65537)); | ||
1106 | 738 | Warnings: | ||
1107 | 739 | Warning 1265 Data truncated for column 'c' at row 1 | ||
1108 | 740 | INSERT INTO t (c) VALUES (REPEAT('2',65536)); | ||
1109 | 741 | Warnings: | ||
1110 | 742 | Warning 1265 Data truncated for column 'c' at row 1 | ||
1111 | 743 | INSERT INTO t (c) VALUES (REPEAT('3',65535)); | ||
1112 | 744 | SELECT LENGTH(c), CHAR_LENGTH(c) FROM t; | ||
1113 | 745 | LENGTH(c) CHAR_LENGTH(c) | ||
1114 | 746 | 65535 65535 | ||
1115 | 747 | 65535 65535 | ||
1116 | 748 | 65535 65535 | ||
1117 | 749 | DROP TABLE t; | ||
1118 | 750 | drop table if exists b15776; | ||
1119 | 751 | create table b15776 (data blob(2147483647)); | ||
1120 | 752 | drop table b15776; | ||
1121 | 753 | create table b15776 (data blob(-1)); | ||
1122 | 754 | ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1))' at line 1 | ||
1123 | 755 | create table b15776 (data blob(2147483648)); | ||
1124 | 756 | drop table b15776; | ||
1125 | 757 | create table b15776 (data blob(4294967294)); | ||
1126 | 758 | drop table b15776; | ||
1127 | 759 | create table b15776 (data blob(4294967295)); | ||
1128 | 760 | drop table b15776; | ||
1129 | 761 | create table b15776 (data blob(4294967296)); | ||
1130 | 762 | ERROR 42000: Display width out of range for column 'data' (max = 4294967295) | ||
1131 | 763 | CREATE TABLE b15776 (a blob(2147483647), b blob(2147483648), c blob(4294967295), a1 text(2147483647), b1 text(2147483648), c1 text(4294967295) ); | ||
1132 | 764 | show columns from b15776; | ||
1133 | 765 | Field Type Null Key Default Extra | ||
1134 | 766 | a longblob YES NULL | ||
1135 | 767 | b longblob YES NULL | ||
1136 | 768 | c longblob YES NULL | ||
1137 | 769 | a1 longtext YES NULL | ||
1138 | 770 | b1 longtext YES NULL | ||
1139 | 771 | c1 longtext YES NULL | ||
1140 | 772 | drop table b15776; | ||
1141 | 773 | CREATE TABLE b15776 (a blob(4294967296)); | ||
1142 | 774 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1143 | 775 | CREATE TABLE b15776 (a text(4294967296)); | ||
1144 | 776 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1145 | 777 | CREATE TABLE b15776 (a blob(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1146 | 778 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1147 | 779 | CREATE TABLE b15776 (a text(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1148 | 780 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1149 | 781 | CREATE TABLE b15776 (a int(0)); | ||
1150 | 782 | INSERT INTO b15776 values (NULL), (1), (42), (654); | ||
1151 | 783 | SELECT * from b15776 ORDER BY a; | ||
1152 | 784 | a | ||
1153 | 785 | NULL | ||
1154 | 786 | 1 | ||
1155 | 787 | 42 | ||
1156 | 788 | 654 | ||
1157 | 789 | DROP TABLE b15776; | ||
1158 | 790 | CREATE TABLE b15776 (a int(-1)); | ||
1159 | 791 | ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1))' at line 1 | ||
1160 | 792 | CREATE TABLE b15776 (a int(255)); | ||
1161 | 793 | DROP TABLE b15776; | ||
1162 | 794 | CREATE TABLE b15776 (a int(256)); | ||
1163 | 795 | ERROR 42000: Display width out of range for column 'a' (max = 255) | ||
1164 | 796 | CREATE TABLE b15776 (data blob(-1)); | ||
1165 | 797 | ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1))' at line 1 | ||
1166 | 798 | CREATE TABLE b15776 (a char(2147483647)); | ||
1167 | 799 | ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead | ||
1168 | 800 | CREATE TABLE b15776 (a char(2147483648)); | ||
1169 | 801 | ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead | ||
1170 | 802 | CREATE TABLE b15776 (a char(4294967295)); | ||
1171 | 803 | ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead | ||
1172 | 804 | CREATE TABLE b15776 (a char(4294967296)); | ||
1173 | 805 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1174 | 806 | CREATE TABLE b15776 (a year(4294967295)); | ||
1175 | 807 | INSERT INTO b15776 VALUES (42); | ||
1176 | 808 | SELECT * FROM b15776; | ||
1177 | 809 | a | ||
1178 | 810 | 2042 | ||
1179 | 811 | DROP TABLE b15776; | ||
1180 | 812 | CREATE TABLE b15776 (a year(4294967296)); | ||
1181 | 813 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1182 | 814 | CREATE TABLE b15776 (a year(0)); | ||
1183 | 815 | DROP TABLE b15776; | ||
1184 | 816 | CREATE TABLE b15776 (a year(-2)); | ||
1185 | 817 | ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-2))' at line 1 | ||
1186 | 818 | CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1187 | 819 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1188 | 820 | CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1189 | 821 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1190 | 822 | CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1191 | 823 | ERROR 42000: Display width out of range for column 'a' (max = 4294967295) | ||
1192 | 824 | CREATE TABLE b15776 select cast(null as char(4294967295)); | ||
1193 | 825 | show columns from b15776; | ||
1194 | 826 | Field Type Null Key Default Extra | ||
1195 | 827 | cast(null as char(4294967295)) char(0) YES NULL | ||
1196 | 828 | drop table b15776; | ||
1197 | 829 | CREATE TABLE b15776 select cast(null as nchar(4294967295)); | ||
1198 | 830 | show columns from b15776; | ||
1199 | 831 | Field Type Null Key Default Extra | ||
1200 | 832 | cast(null as nchar(4294967295)) char(0) YES NULL | ||
1201 | 833 | drop table b15776; | ||
1202 | 834 | CREATE TABLE b15776 select cast(null as binary(4294967295)); | ||
1203 | 835 | show columns from b15776; | ||
1204 | 836 | Field Type Null Key Default Extra | ||
1205 | 837 | cast(null as binary(4294967295)) binary(0) YES NULL | ||
1206 | 838 | drop table b15776; | ||
1207 | 839 | explain select cast(1 as char(4294967295)); | ||
1208 | 840 | id select_type table type possible_keys key key_len ref rows Extra | ||
1209 | 841 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1210 | 842 | explain select cast(1 as nchar(4294967295)); | ||
1211 | 843 | id select_type table type possible_keys key key_len ref rows Extra | ||
1212 | 844 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1213 | 845 | explain select cast(1 as binary(4294967295)); | ||
1214 | 846 | id select_type table type possible_keys key key_len ref rows Extra | ||
1215 | 847 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1216 | 848 | explain select cast(1 as char(4294967296)); | ||
1217 | 849 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1218 | 850 | explain select cast(1 as nchar(4294967296)); | ||
1219 | 851 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1220 | 852 | explain select cast(1 as binary(4294967296)); | ||
1221 | 853 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1222 | 854 | explain select cast(1 as decimal(-1)); | ||
1223 | 855 | ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-1))' at line 1 | ||
1224 | 856 | explain select cast(1 as decimal(64, 30)); | ||
1225 | 857 | id select_type table type possible_keys key key_len ref rows Extra | ||
1226 | 858 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1227 | 859 | explain select cast(1 as decimal(64, 999999999999999999999999999999)); | ||
1228 | 860 | Got one of the listed errors | ||
1229 | 861 | explain select cast(1 as decimal(4294967296)); | ||
1230 | 862 | Got one of the listed errors | ||
1231 | 863 | explain select cast(1 as decimal(999999999999999999999999999999999999)); | ||
1232 | 864 | Got one of the listed errors | ||
1233 | 865 | explain select convert(1, char(4294967295)); | ||
1234 | 866 | id select_type table type possible_keys key key_len ref rows Extra | ||
1235 | 867 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1236 | 868 | explain select convert(1, char(4294967296)); | ||
1237 | 869 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1238 | 870 | explain select convert(1, char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1239 | 871 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1240 | 872 | explain select convert(1, nchar(4294967295)); | ||
1241 | 873 | id select_type table type possible_keys key key_len ref rows Extra | ||
1242 | 874 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1243 | 875 | explain select convert(1, nchar(4294967296)); | ||
1244 | 876 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1245 | 877 | explain select convert(1, nchar(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1246 | 878 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1247 | 879 | explain select convert(1, binary(4294967295)); | ||
1248 | 880 | id select_type table type possible_keys key key_len ref rows Extra | ||
1249 | 881 | 1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used | ||
1250 | 882 | explain select convert(1, binary(4294967296)); | ||
1251 | 883 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1252 | 884 | explain select convert(1, binary(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1253 | 885 | ERROR 42000: Display width out of range for column 'cast as char' (max = 4294967295) | ||
1254 | 886 | End of 5.0 tests | ||
1255 | 887 | CREATE TABLE t1(id INT NOT NULL); | ||
1256 | 888 | CREATE TABLE t2(id INT NOT NULL, c TEXT NOT NULL); | ||
1257 | 889 | INSERT INTO t1 VALUES (1); | ||
1258 | 890 | INSERT INTO t2 VALUES (1, ''); | ||
1259 | 891 | UPDATE t2 SET c = REPEAT('1', 70000); | ||
1260 | 892 | Warnings: | ||
1261 | 893 | Warning 1265 Data truncated for column 'c' at row 1 | ||
1262 | 894 | SELECT LENGTH(c) FROM t2; | ||
1263 | 895 | LENGTH(c) | ||
1264 | 896 | 65535 | ||
1265 | 897 | UPDATE t1 LEFT JOIN t2 USING(id) SET t2.c = REPEAT('1', 70000) WHERE t1.id = 1; | ||
1266 | 898 | Warnings: | ||
1267 | 899 | Warning 1265 Data truncated for column 'c' at row 1 | ||
1268 | 900 | SELECT LENGTH(c) FROM t2; | ||
1269 | 901 | LENGTH(c) | ||
1270 | 902 | 65535 | ||
1271 | 903 | DROP TABLE t1, t2; | ||
1272 | 904 | # Bug #52160: crash and inconsistent results when grouping | ||
1273 | 905 | # by a function and column | ||
1274 | 906 | CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1; | ||
1275 | 907 | CREATE TABLE t1(a CHAR(1)); | ||
1276 | 908 | INSERT INTO t1 VALUES ('0'), ('0'); | ||
1277 | 909 | SELECT COUNT(*) FROM t1 GROUP BY f1(), a; | ||
1278 | 910 | COUNT(*) | ||
1279 | 911 | 2 | ||
1280 | 912 | DROP FUNCTION f1; | ||
1281 | 913 | DROP TABLE t1; | ||
1282 | 914 | SET default_storage_engine=@old_default_storage_engine; | ||
1283 | 915 | SET @old_max_heap_table_size = @@global.max_heap_table_size; | ||
1284 | 916 | SET @old_max_allowed_packet = @@global.max_allowed_packet; | ||
1285 | 917 | SET GLOBAL max_heap_table_size = 18 * 1024 * 1024; | ||
1286 | 918 | SET GLOBAL max_allowed_packet = 24 * 1024 * 1024; | ||
1287 | 919 | drop table if exists t1; | ||
1288 | 920 | CREATE TABLE t1 (data LONGBLOB) ENGINE=memory; | ||
1289 | 921 | INSERT INTO t1 (data) VALUES (NULL); | ||
1290 | 922 | UPDATE t1 set data=repeat('a',18*1024*1024); | ||
1291 | 923 | select length(data) from t1; | ||
1292 | 924 | length(data) | ||
1293 | 925 | 18874368 | ||
1294 | 926 | delete from t1 where left(data,1)='a'; | ||
1295 | 927 | truncate table t1; | ||
1296 | 928 | INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024)); | ||
1297 | 929 | INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024)); | ||
1298 | 930 | delete from t1 where left(data,1)='b'; | ||
1299 | 931 | UPDATE t1 set data=repeat('c',17*1024*1024); | ||
1300 | 932 | delete from t1 where left(data,1)='c'; | ||
1301 | 933 | INSERT INTO t1 set data=repeat('a',18*1024*1024); | ||
1302 | 934 | select length(data) from t1; | ||
1303 | 935 | length(data) | ||
1304 | 936 | 18874368 | ||
1305 | 937 | alter table t1 modify data blob; | ||
1306 | 938 | select length(data) from t1; | ||
1307 | 939 | length(data) | ||
1308 | 940 | 0 | ||
1309 | 941 | drop table t1; | ||
1310 | 942 | CREATE TABLE t1 (data BLOB) ENGINE=myisam; | ||
1311 | 943 | INSERT INTO t1 (data) VALUES (NULL); | ||
1312 | 944 | UPDATE t1 set data=repeat('a',18*1024*1024); | ||
1313 | 945 | Warnings: | ||
1314 | 946 | Warning 1265 Data truncated for column 'data' at row 1 | ||
1315 | 947 | select length(data) from t1; | ||
1316 | 948 | length(data) | ||
1317 | 949 | 65535 | ||
1318 | 950 | drop table t1; | ||
1319 | 951 | SET GLOBAL max_allowed_packet = @old_max_allowed_packet; | ||
1320 | 952 | SET GLOBAL max_heap_table_size = @old_max_heap_table_size; | ||
1321 | 953 | 0 | ||
1322 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test' | |||
1323 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test 2011-08-22 11:28:27 +0000 | |||
1324 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_blob.test 1970-01-01 00:00:00 +0000 | |||
1325 | @@ -1,642 +0,0 @@ | |||
1326 | 1 | ######################################################################## | ||
1327 | 2 | # Test blobs with the HEAP/MEMORY storage engine | ||
1328 | 3 | ######################################################################## | ||
1329 | 4 | |||
1330 | 5 | ######################################################################## | ||
1331 | 6 | # Modified tests from type_blob.test | ||
1332 | 7 | ######################################################################## | ||
1333 | 8 | |||
1334 | 9 | SET @old_default_storage_engine=@@default_storage_engine; | ||
1335 | 10 | SET default_storage_engine=MEMORY; | ||
1336 | 11 | |||
1337 | 12 | # | ||
1338 | 13 | # Basic cleanup | ||
1339 | 14 | # | ||
1340 | 15 | --disable_warnings | ||
1341 | 16 | drop table if exists t1,t2,t3,t4,t5,t6,t7; | ||
1342 | 17 | --enable_warnings | ||
1343 | 18 | |||
1344 | 19 | |||
1345 | 20 | # | ||
1346 | 21 | # Check syntax for creating BLOB/TEXT | ||
1347 | 22 | # | ||
1348 | 23 | |||
1349 | 24 | CREATE TABLE t1 (a blob, b text, c blob(250), d text(70000), e text(70000000)); | ||
1350 | 25 | show columns from t1; | ||
1351 | 26 | # PS doesn't give errors on prepare yet | ||
1352 | 27 | CREATE TABLE t2 (a char(255), b varbinary(70000), c varchar(70000000)); | ||
1353 | 28 | CREATE TABLE t4 (c varchar(65530) character set utf8 not null); | ||
1354 | 29 | show columns from t2; | ||
1355 | 30 | create table t3 (a long, b long byte); | ||
1356 | 31 | show create TABLE t3; | ||
1357 | 32 | show create TABLE t4; | ||
1358 | 33 | drop table t1,t2,t3,t4; | ||
1359 | 34 | |||
1360 | 35 | # | ||
1361 | 36 | # Check errors with blob | ||
1362 | 37 | # | ||
1363 | 38 | |||
1364 | 39 | --error 1074 | ||
1365 | 40 | CREATE TABLE t1 (a char(257) default "hello"); | ||
1366 | 41 | --error 1074 | ||
1367 | 42 | CREATE TABLE t2 (a char(256)); | ||
1368 | 43 | --error 1074 | ||
1369 | 44 | CREATE TABLE t1 (a varchar(70000) default "hello"); | ||
1370 | 45 | --error 1101 | ||
1371 | 46 | CREATE TABLE t2 (a blob default "hello"); | ||
1372 | 47 | |||
1373 | 48 | # Safety to be able to continue with other tests if above fails | ||
1374 | 49 | --disable_warnings | ||
1375 | 50 | drop table if exists t1,t2; | ||
1376 | 51 | --enable_warnings | ||
1377 | 52 | |||
1378 | 53 | # | ||
1379 | 54 | # test of full join with blob | ||
1380 | 55 | # | ||
1381 | 56 | |||
1382 | 57 | create table t1 (nr int(5) not null auto_increment,b blob,str char(10), primary key (nr)); | ||
1383 | 58 | insert into t1 values (null,"a","A"); | ||
1384 | 59 | insert into t1 values (null,"bbb","BBB"); | ||
1385 | 60 | insert into t1 values (null,"ccc","CCC"); | ||
1386 | 61 | select last_insert_id(); | ||
1387 | 62 | select * from t1,t1 as t2; | ||
1388 | 63 | |||
1389 | 64 | drop table t1; | ||
1390 | 65 | |||
1391 | 66 | # | ||
1392 | 67 | # Test of changing TEXT column | ||
1393 | 68 | # | ||
1394 | 69 | |||
1395 | 70 | create table t1 (a text); | ||
1396 | 71 | insert into t1 values ('where'); | ||
1397 | 72 | update t1 set a='Where'; | ||
1398 | 73 | select * from t1; | ||
1399 | 74 | drop table t1; | ||
1400 | 75 | |||
1401 | 76 | # | ||
1402 | 77 | # test of blob, text, char and varbinary | ||
1403 | 78 | # | ||
1404 | 79 | create table t1 (t text,c char(10),b blob, d varbinary(10)); | ||
1405 | 80 | insert into t1 values (NULL,NULL,NULL,NULL); | ||
1406 | 81 | insert into t1 values ("","","",""); | ||
1407 | 82 | insert into t1 values ("hello","hello","hello","hello"); | ||
1408 | 83 | insert into t1 values ("HELLO","HELLO","HELLO","HELLO"); | ||
1409 | 84 | insert into t1 values ("HELLO MY","HELLO MY","HELLO MY","HELLO MY"); | ||
1410 | 85 | insert into t1 values ("a","a","a","a"); | ||
1411 | 86 | insert into t1 values (1,1,1,1); | ||
1412 | 87 | insert into t1 values (NULL,NULL,NULL,NULL); | ||
1413 | 88 | update t1 set c="",b=null where c="1"; | ||
1414 | 89 | |||
1415 | 90 | lock tables t1 READ; | ||
1416 | 91 | # We mask out the Privileges column because it differs for embedded server | ||
1417 | 92 | --replace_column 8 # | ||
1418 | 93 | show full fields from t1; | ||
1419 | 94 | lock tables t1 WRITE; | ||
1420 | 95 | --replace_column 8 # | ||
1421 | 96 | show full fields from t1; | ||
1422 | 97 | unlock tables; | ||
1423 | 98 | |||
1424 | 99 | select t from t1 where t like "hello"; | ||
1425 | 100 | select c from t1 where c like "hello"; | ||
1426 | 101 | select b from t1 where b like "hello"; | ||
1427 | 102 | select d from t1 where d like "hello"; | ||
1428 | 103 | select c from t1 having c like "hello"; | ||
1429 | 104 | select d from t1 having d like "hello"; | ||
1430 | 105 | select t from t1 where t like "%HELLO%"; | ||
1431 | 106 | select c from t1 where c like "%HELLO%"; | ||
1432 | 107 | select b from t1 where b like "%HELLO%"; | ||
1433 | 108 | select d from t1 where d like "%HELLO%"; | ||
1434 | 109 | select c from t1 having c like "%HELLO%"; | ||
1435 | 110 | select d from t1 having d like "%HELLO%"; | ||
1436 | 111 | select d from t1 having d like "%HE%LLO%"; | ||
1437 | 112 | select t from t1 order by t; | ||
1438 | 113 | select c from t1 order by c; | ||
1439 | 114 | select b from t1 order by b; | ||
1440 | 115 | select d from t1 order by d; | ||
1441 | 116 | select distinct t from t1; | ||
1442 | 117 | select distinct b from t1; | ||
1443 | 118 | select distinct t from t1 order by t; | ||
1444 | 119 | select distinct b from t1 order by b; | ||
1445 | 120 | select t from t1 group by t; | ||
1446 | 121 | select b from t1 group by b; | ||
1447 | 122 | set option sql_big_tables=1; | ||
1448 | 123 | select distinct t from t1; | ||
1449 | 124 | select distinct b from t1; | ||
1450 | 125 | select distinct t from t1 order by t; | ||
1451 | 126 | select distinct b from t1 order by b; | ||
1452 | 127 | select distinct c from t1; | ||
1453 | 128 | select distinct d from t1; | ||
1454 | 129 | select distinct c from t1 order by c; | ||
1455 | 130 | select distinct d from t1 order by d; | ||
1456 | 131 | select c from t1 group by c; | ||
1457 | 132 | select d from t1 group by d; | ||
1458 | 133 | set option sql_big_tables=0; | ||
1459 | 134 | select distinct * from t1; | ||
1460 | 135 | select t,count(*) from t1 group by t; | ||
1461 | 136 | select b,count(*) from t1 group by b; | ||
1462 | 137 | select c,count(*) from t1 group by c; | ||
1463 | 138 | select d,count(*) from t1 group by d; | ||
1464 | 139 | drop table t1; | ||
1465 | 140 | |||
1466 | 141 | |||
1467 | 142 | # | ||
1468 | 143 | # Test of join with blobs and min | ||
1469 | 144 | # | ||
1470 | 145 | |||
1471 | 146 | CREATE TABLE t1 ( | ||
1472 | 147 | t1_id bigint(21) NOT NULL auto_increment, | ||
1473 | 148 | _field_72 varchar(128) DEFAULT '' NOT NULL, | ||
1474 | 149 | _field_95 varchar(32), | ||
1475 | 150 | _field_115 tinyint(4) DEFAULT '0' NOT NULL, | ||
1476 | 151 | _field_122 tinyint(4) DEFAULT '0' NOT NULL, | ||
1477 | 152 | _field_126 tinyint(4), | ||
1478 | 153 | _field_134 tinyint(4), | ||
1479 | 154 | PRIMARY KEY (t1_id), | ||
1480 | 155 | UNIQUE _field_72 (_field_72), | ||
1481 | 156 | KEY _field_115 (_field_115), | ||
1482 | 157 | KEY _field_122 (_field_122) | ||
1483 | 158 | ); | ||
1484 | 159 | |||
1485 | 160 | |||
1486 | 161 | INSERT INTO t1 VALUES (1,'admin','21232f297a57a5a743894a0e4a801fc3',0,1,NULL,NULL); | ||
1487 | 162 | INSERT INTO t1 VALUES (2,'hroberts','7415275a8c95952901e42b13a6b78566',0,1,NULL,NULL); | ||
1488 | 163 | INSERT INTO t1 VALUES (3,'guest','d41d8cd98f00b204e9800998ecf8427e',1,0,NULL,NULL); | ||
1489 | 164 | |||
1490 | 165 | |||
1491 | 166 | CREATE TABLE t2 ( | ||
1492 | 167 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
1493 | 168 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
1494 | 169 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
1495 | 170 | ); | ||
1496 | 171 | |||
1497 | 172 | |||
1498 | 173 | INSERT INTO t2 VALUES (1,1); | ||
1499 | 174 | INSERT INTO t2 VALUES (2,1); | ||
1500 | 175 | INSERT INTO t2 VALUES (2,2); | ||
1501 | 176 | |||
1502 | 177 | CREATE TABLE t3 ( | ||
1503 | 178 | t3_id bigint(21) NOT NULL auto_increment, | ||
1504 | 179 | _field_131 varchar(128), | ||
1505 | 180 | _field_133 tinyint(4) DEFAULT '0' NOT NULL, | ||
1506 | 181 | _field_135 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, | ||
1507 | 182 | _field_137 tinyint(4), | ||
1508 | 183 | _field_139 datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, | ||
1509 | 184 | _field_140 blob, | ||
1510 | 185 | _field_142 tinyint(4) DEFAULT '0' NOT NULL, | ||
1511 | 186 | _field_145 tinyint(4) DEFAULT '0' NOT NULL, | ||
1512 | 187 | _field_148 tinyint(4) DEFAULT '0' NOT NULL, | ||
1513 | 188 | PRIMARY KEY (t3_id), | ||
1514 | 189 | KEY _field_133 (_field_133), | ||
1515 | 190 | KEY _field_135 (_field_135), | ||
1516 | 191 | KEY _field_139 (_field_139), | ||
1517 | 192 | KEY _field_142 (_field_142), | ||
1518 | 193 | KEY _field_145 (_field_145), | ||
1519 | 194 | KEY _field_148 (_field_148) | ||
1520 | 195 | ); | ||
1521 | 196 | |||
1522 | 197 | |||
1523 | 198 | INSERT 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); | ||
1524 | 199 | INSERT INTO t3 VALUES (2,'test job 2',0,'0000-00-00 00:00:00',0,'1999-02-26 21:08:04','',0,0,0); | ||
1525 | 200 | |||
1526 | 201 | |||
1527 | 202 | CREATE TABLE t4 ( | ||
1528 | 203 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
1529 | 204 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
1530 | 205 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
1531 | 206 | ); | ||
1532 | 207 | |||
1533 | 208 | |||
1534 | 209 | INSERT INTO t4 VALUES (1,1); | ||
1535 | 210 | INSERT INTO t4 VALUES (2,1); | ||
1536 | 211 | |||
1537 | 212 | CREATE TABLE t5 ( | ||
1538 | 213 | t5_id bigint(21) NOT NULL auto_increment, | ||
1539 | 214 | _field_149 tinyint(4), | ||
1540 | 215 | _field_156 varchar(128) DEFAULT '' NOT NULL, | ||
1541 | 216 | _field_157 varchar(128) DEFAULT '' NOT NULL, | ||
1542 | 217 | _field_158 varchar(128) DEFAULT '' NOT NULL, | ||
1543 | 218 | _field_159 varchar(128) DEFAULT '' NOT NULL, | ||
1544 | 219 | _field_160 varchar(128) DEFAULT '' NOT NULL, | ||
1545 | 220 | _field_161 varchar(128) DEFAULT '' NOT NULL, | ||
1546 | 221 | PRIMARY KEY (t5_id), | ||
1547 | 222 | KEY _field_156 (_field_156), | ||
1548 | 223 | KEY _field_157 (_field_157), | ||
1549 | 224 | KEY _field_158 (_field_158), | ||
1550 | 225 | KEY _field_159 (_field_159), | ||
1551 | 226 | KEY _field_160 (_field_160), | ||
1552 | 227 | KEY _field_161 (_field_161) | ||
1553 | 228 | ); | ||
1554 | 229 | |||
1555 | 230 | |||
1556 | 231 | INSERT INTO t5 VALUES (1,0,'tomato','','','','',''); | ||
1557 | 232 | INSERT INTO t5 VALUES (2,0,'cilantro','','','','',''); | ||
1558 | 233 | |||
1559 | 234 | CREATE TABLE t6 ( | ||
1560 | 235 | seq_0_id bigint(21) DEFAULT '0' NOT NULL, | ||
1561 | 236 | seq_1_id bigint(21) DEFAULT '0' NOT NULL, | ||
1562 | 237 | PRIMARY KEY (seq_0_id,seq_1_id) | ||
1563 | 238 | ); | ||
1564 | 239 | |||
1565 | 240 | INSERT INTO t6 VALUES (1,1); | ||
1566 | 241 | INSERT INTO t6 VALUES (1,2); | ||
1567 | 242 | INSERT INTO t6 VALUES (2,2); | ||
1568 | 243 | |||
1569 | 244 | CREATE TABLE t7 ( | ||
1570 | 245 | t7_id bigint(21) NOT NULL auto_increment, | ||
1571 | 246 | _field_143 tinyint(4), | ||
1572 | 247 | _field_165 varchar(32), | ||
1573 | 248 | _field_166 smallint(6) DEFAULT '0' NOT NULL, | ||
1574 | 249 | PRIMARY KEY (t7_id), | ||
1575 | 250 | KEY _field_166 (_field_166) | ||
1576 | 251 | ); | ||
1577 | 252 | |||
1578 | 253 | |||
1579 | 254 | INSERT INTO t7 VALUES (1,0,'High',1); | ||
1580 | 255 | INSERT INTO t7 VALUES (2,0,'Medium',2); | ||
1581 | 256 | INSERT INTO t7 VALUES (3,0,'Low',3); | ||
1582 | 257 | |||
1583 | 258 | select 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; | ||
1584 | 259 | |||
1585 | 260 | drop table t1,t2,t3,t4,t5,t6,t7; | ||
1586 | 261 | |||
1587 | 262 | # | ||
1588 | 263 | # Test of reverse with empty blob | ||
1589 | 264 | # | ||
1590 | 265 | |||
1591 | 266 | create table t1 (a blob); | ||
1592 | 267 | insert into t1 values ("empty"),(""); | ||
1593 | 268 | select a,reverse(a) from t1; | ||
1594 | 269 | drop table t1; | ||
1595 | 270 | |||
1596 | 271 | # | ||
1597 | 272 | # Bug when blob is updated | ||
1598 | 273 | # | ||
1599 | 274 | |||
1600 | 275 | create table t1 (id integer auto_increment unique,imagem LONGBLOB not null default ''); | ||
1601 | 276 | insert into t1 (id) values (1); | ||
1602 | 277 | # We have to clean up the path in the results for safe comparison | ||
1603 | 278 | eval select | ||
1604 | 279 | charset(load_file('../../std_data/words.dat')), | ||
1605 | 280 | collation(load_file('../../std_data/words.dat')), | ||
1606 | 281 | coercibility(load_file('../../std_data/words.dat')); | ||
1607 | 282 | --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
1608 | 283 | eval explain extended select | ||
1609 | 284 | charset(load_file('$MYSQLTEST_VARDIR/std_data/words.dat')), | ||
1610 | 285 | collation(load_file('$MYSQLTEST_VARDIR/std_data/words.dat')), | ||
1611 | 286 | coercibility(load_file('$MYSQLTEST_VARDIR/std_data/words.dat')); | ||
1612 | 287 | --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
1613 | 288 | eval update t1 set imagem=load_file('$MYSQLTEST_VARDIR/std_data/words.dat') where id=1; | ||
1614 | 289 | select if(imagem is null, "ERROR", "OK"),length(imagem) from t1 where id = 1; | ||
1615 | 290 | drop table t1; | ||
1616 | 291 | --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR | ||
1617 | 292 | eval create table t1 select load_file('$MYSQLTEST_VARDIR/std_data/words.dat') l; | ||
1618 | 293 | # We mask out the Privileges column because it differs for embedded server | ||
1619 | 294 | --replace_column 8 # | ||
1620 | 295 | show full fields from t1; | ||
1621 | 296 | drop table t1; | ||
1622 | 297 | |||
1623 | 298 | # | ||
1624 | 299 | # Test blob's with end space (Bug #1651) | ||
1625 | 300 | # This is a bit changed since we now have true varchar | ||
1626 | 301 | # | ||
1627 | 302 | |||
1628 | 303 | create table t1 (id integer primary key auto_increment, txt text not null); | ||
1629 | 304 | insert into t1 (txt) values ('Chevy '); | ||
1630 | 305 | select * from t1 where txt='Chevy'; | ||
1631 | 306 | select * from t1 where txt='Chevy '; | ||
1632 | 307 | select * from t1 where txt='Chevy ' or txt='Chevy'; | ||
1633 | 308 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
1634 | 309 | select * from t1 where id='1' or id='2'; | ||
1635 | 310 | insert into t1 (txt) values('Ford'); | ||
1636 | 311 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford'; | ||
1637 | 312 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
1638 | 313 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy'; | ||
1639 | 314 | select * from t1 where txt in ('Chevy ','Chevy'); | ||
1640 | 315 | select * from t1 where txt in ('Chevy'); | ||
1641 | 316 | select * from t1 where txt between 'Chevy' and 'Chevy'; | ||
1642 | 317 | select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy '; | ||
1643 | 318 | select * from t1 where txt between 'Chevy' and 'Chevy '; | ||
1644 | 319 | select * from t1 where txt < 'Chevy '; | ||
1645 | 320 | select * from t1 where txt <= 'Chevy'; | ||
1646 | 321 | select * from t1 where txt > 'Chevy'; | ||
1647 | 322 | select * from t1 where txt >= 'Chevy'; | ||
1648 | 323 | drop table t1; | ||
1649 | 324 | |||
1650 | 325 | create table t1 (id integer primary key auto_increment, txt text); | ||
1651 | 326 | insert into t1 (txt) values ('Chevy'), ('Chevy '), (NULL); | ||
1652 | 327 | select * from t1 where txt='Chevy' or txt is NULL; | ||
1653 | 328 | explain select * from t1 where txt='Chevy' or txt is NULL; | ||
1654 | 329 | select * from t1 where txt='Chevy '; | ||
1655 | 330 | select * from t1 where txt='Chevy ' or txt='Chevy'; | ||
1656 | 331 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
1657 | 332 | select * from t1 where id='1' or id='2'; | ||
1658 | 333 | insert into t1 (txt) values('Ford'); | ||
1659 | 334 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt='Ford'; | ||
1660 | 335 | select * from t1 where txt='Chevy' or txt='Chevy '; | ||
1661 | 336 | select * from t1 where txt='Chevy' or txt='Chevy ' or txt=' Chevy'; | ||
1662 | 337 | select * from t1 where txt in ('Chevy ','Chevy'); | ||
1663 | 338 | select * from t1 where txt in ('Chevy'); | ||
1664 | 339 | select * from t1 where txt between 'Chevy' and 'Chevy'; | ||
1665 | 340 | select * from t1 where txt between 'Chevy' and 'Chevy' or txt='Chevy '; | ||
1666 | 341 | select * from t1 where txt between 'Chevy' and 'Chevy '; | ||
1667 | 342 | select * from t1 where txt < 'Chevy '; | ||
1668 | 343 | select * from t1 where txt < 'Chevy ' or txt is NULL; | ||
1669 | 344 | select * from t1 where txt <= 'Chevy'; | ||
1670 | 345 | select * from t1 where txt > 'Chevy'; | ||
1671 | 346 | select * from t1 where txt >= 'Chevy'; | ||
1672 | 347 | alter table t1 modify column txt blob; | ||
1673 | 348 | explain select * from t1 where txt='Chevy' or txt is NULL; | ||
1674 | 349 | select * from t1 where txt='Chevy' or txt is NULL; | ||
1675 | 350 | explain select * from t1 where txt='Chevy' or txt is NULL order by txt; | ||
1676 | 351 | select * from t1 where txt='Chevy' or txt is NULL order by txt; | ||
1677 | 352 | drop table t1; | ||
1678 | 353 | |||
1679 | 354 | CREATE TABLE t1 ( i int(11) NOT NULL default '0', c text NOT NULL, d varchar(1) NOT NULL DEFAULT ' ', PRIMARY KEY (i)); | ||
1680 | 355 | INSERT t1 (i, c) VALUES (1,''),(2,''),(3,'asdfh'),(4,''); | ||
1681 | 356 | select max(i) from t1 where c = ''; | ||
1682 | 357 | drop table t1; | ||
1683 | 358 | |||
1684 | 359 | # End of 4.1 tests | ||
1685 | 360 | |||
1686 | 361 | # | ||
1687 | 362 | # Test that blob's and varbinary are sorted according to length | ||
1688 | 363 | # | ||
1689 | 364 | |||
1690 | 365 | CREATE table t1 (a blob); | ||
1691 | 366 | insert into t1 values ('b'),('a\0'),('a'),('a '),('aa'),(NULL); | ||
1692 | 367 | select hex(a) from t1 order by a; | ||
1693 | 368 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1694 | 369 | alter table t1 modify a varbinary(5); | ||
1695 | 370 | select hex(a) from t1 order by a; | ||
1696 | 371 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1697 | 372 | alter table t1 modify a char(5); | ||
1698 | 373 | select hex(a) from t1 order by a; | ||
1699 | 374 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1700 | 375 | alter table t1 modify a binary(5); | ||
1701 | 376 | select hex(a) from t1 order by a; | ||
1702 | 377 | select hex(concat(a,'\0')) as b from t1 order by concat(a,'\0'); | ||
1703 | 378 | drop table t1; | ||
1704 | 379 | |||
1705 | 380 | # | ||
1706 | 381 | # Bug #19489: Inconsistent support for DEFAULT in TEXT columns | ||
1707 | 382 | # | ||
1708 | 383 | create table t1 (a text default ''); | ||
1709 | 384 | show create table t1; | ||
1710 | 385 | insert into t1 values (default); | ||
1711 | 386 | select * from t1; | ||
1712 | 387 | drop table t1; | ||
1713 | 388 | set @@sql_mode='TRADITIONAL'; | ||
1714 | 389 | --error ER_BLOB_CANT_HAVE_DEFAULT | ||
1715 | 390 | create table t1 (a text default ''); | ||
1716 | 391 | set @@sql_mode=''; | ||
1717 | 392 | |||
1718 | 393 | # | ||
1719 | 394 | # Bug #32282: TEXT silently truncates when value is exactly 65536 bytes | ||
1720 | 395 | # | ||
1721 | 396 | |||
1722 | 397 | CREATE TABLE t (c TEXT CHARSET ASCII); | ||
1723 | 398 | INSERT INTO t (c) VALUES (REPEAT('1',65537)); | ||
1724 | 399 | INSERT INTO t (c) VALUES (REPEAT('2',65536)); | ||
1725 | 400 | INSERT INTO t (c) VALUES (REPEAT('3',65535)); | ||
1726 | 401 | SELECT LENGTH(c), CHAR_LENGTH(c) FROM t; | ||
1727 | 402 | DROP TABLE t; | ||
1728 | 403 | # Bug#15776: 32-bit signed int used for length of blob | ||
1729 | 404 | # """LONGBLOB: A BLOB column with a maximum length of 4,294,967,295 or 4GB.""" | ||
1730 | 405 | # | ||
1731 | 406 | # Conditions should be in this order: | ||
1732 | 407 | # A size is not in the allowed bounds. | ||
1733 | 408 | # If the type is char-ish AND size is within the max blob size: | ||
1734 | 409 | # raise ER_TOO_BIG_FIELDLENGTH (suggest using BLOB) | ||
1735 | 410 | # If size is too small: | ||
1736 | 411 | # raise ER_PARSE_ERROR | ||
1737 | 412 | # raise ER_TOO_BIG_DISPLAYWIDTH | ||
1738 | 413 | |||
1739 | 414 | # BLOB and TEXT types | ||
1740 | 415 | --disable_warnings | ||
1741 | 416 | drop table if exists b15776; | ||
1742 | 417 | --enable_warnings | ||
1743 | 418 | create table b15776 (data blob(2147483647)); | ||
1744 | 419 | drop table b15776; | ||
1745 | 420 | --error ER_PARSE_ERROR | ||
1746 | 421 | create table b15776 (data blob(-1)); | ||
1747 | 422 | create table b15776 (data blob(2147483648)); | ||
1748 | 423 | drop table b15776; | ||
1749 | 424 | create table b15776 (data blob(4294967294)); | ||
1750 | 425 | drop table b15776; | ||
1751 | 426 | create table b15776 (data blob(4294967295)); | ||
1752 | 427 | drop table b15776; | ||
1753 | 428 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1754 | 429 | create table b15776 (data blob(4294967296)); | ||
1755 | 430 | |||
1756 | 431 | CREATE TABLE b15776 (a blob(2147483647), b blob(2147483648), c blob(4294967295), a1 text(2147483647), b1 text(2147483648), c1 text(4294967295) ); | ||
1757 | 432 | show columns from b15776; | ||
1758 | 433 | drop table b15776; | ||
1759 | 434 | |||
1760 | 435 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1761 | 436 | CREATE TABLE b15776 (a blob(4294967296)); | ||
1762 | 437 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1763 | 438 | CREATE TABLE b15776 (a text(4294967296)); | ||
1764 | 439 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1765 | 440 | CREATE TABLE b15776 (a blob(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1766 | 441 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1767 | 442 | CREATE TABLE b15776 (a text(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1768 | 443 | |||
1769 | 444 | # Int types | ||
1770 | 445 | # "Another extension is supported by MySQL for optionally specifying the | ||
1771 | 446 | # display width of integer data types in parentheses following the base keyword | ||
1772 | 447 | # for the type (for example, INT(4)). This optional display width is used to | ||
1773 | 448 | # display integer values having a width less than the width specified for the | ||
1774 | 449 | # column by left-padding them with spaces." § Numeric Types | ||
1775 | 450 | CREATE TABLE b15776 (a int(0)); # 0 is special case, means default size | ||
1776 | 451 | INSERT INTO b15776 values (NULL), (1), (42), (654); | ||
1777 | 452 | SELECT * from b15776 ORDER BY a; | ||
1778 | 453 | DROP TABLE b15776; | ||
1779 | 454 | --error ER_PARSE_ERROR | ||
1780 | 455 | CREATE TABLE b15776 (a int(-1)); | ||
1781 | 456 | CREATE TABLE b15776 (a int(255)); | ||
1782 | 457 | DROP TABLE b15776; | ||
1783 | 458 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1784 | 459 | CREATE TABLE b15776 (a int(256)); | ||
1785 | 460 | --error ER_PARSE_ERROR | ||
1786 | 461 | CREATE TABLE b15776 (data blob(-1)); | ||
1787 | 462 | |||
1788 | 463 | # Char types | ||
1789 | 464 | # Recommend BLOB | ||
1790 | 465 | --error ER_TOO_BIG_FIELDLENGTH | ||
1791 | 466 | CREATE TABLE b15776 (a char(2147483647)); | ||
1792 | 467 | --error ER_TOO_BIG_FIELDLENGTH | ||
1793 | 468 | CREATE TABLE b15776 (a char(2147483648)); | ||
1794 | 469 | --error ER_TOO_BIG_FIELDLENGTH | ||
1795 | 470 | CREATE TABLE b15776 (a char(4294967295)); | ||
1796 | 471 | # Even BLOB won't hold | ||
1797 | 472 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1798 | 473 | CREATE TABLE b15776 (a char(4294967296)); | ||
1799 | 474 | |||
1800 | 475 | |||
1801 | 476 | # Other numeric-ish types | ||
1802 | 477 | ## For year, widths not "2" or "4" are silently rewritten to "4". But | ||
1803 | 478 | ## When we complain about it, we say that the max is 255. We may be | ||
1804 | 479 | ## talking about different things. It's confusing. | ||
1805 | 480 | CREATE TABLE b15776 (a year(4294967295)); | ||
1806 | 481 | INSERT INTO b15776 VALUES (42); | ||
1807 | 482 | SELECT * FROM b15776; | ||
1808 | 483 | DROP TABLE b15776; | ||
1809 | 484 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1810 | 485 | CREATE TABLE b15776 (a year(4294967296)); | ||
1811 | 486 | CREATE TABLE b15776 (a year(0)); # 0 is special case, means default size | ||
1812 | 487 | DROP TABLE b15776; | ||
1813 | 488 | --error ER_PARSE_ERROR | ||
1814 | 489 | CREATE TABLE b15776 (a year(-2)); | ||
1815 | 490 | |||
1816 | 491 | |||
1817 | 492 | # We've already tested the case, but this should visually show that | ||
1818 | 493 | # widths that are too large to be interpreted cause DISPLAYWIDTH errors. | ||
1819 | 494 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1820 | 495 | CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1821 | 496 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1822 | 497 | CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1823 | 498 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1824 | 499 | CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1825 | 500 | |||
1826 | 501 | ## Do not select, too much memory needed. | ||
1827 | 502 | CREATE TABLE b15776 select cast(null as char(4294967295)); | ||
1828 | 503 | show columns from b15776; | ||
1829 | 504 | drop table b15776; | ||
1830 | 505 | CREATE TABLE b15776 select cast(null as nchar(4294967295)); | ||
1831 | 506 | show columns from b15776; | ||
1832 | 507 | drop table b15776; | ||
1833 | 508 | CREATE TABLE b15776 select cast(null as binary(4294967295)); | ||
1834 | 509 | show columns from b15776; | ||
1835 | 510 | drop table b15776; | ||
1836 | 511 | |||
1837 | 512 | explain select cast(1 as char(4294967295)); | ||
1838 | 513 | explain select cast(1 as nchar(4294967295)); | ||
1839 | 514 | explain select cast(1 as binary(4294967295)); | ||
1840 | 515 | |||
1841 | 516 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1842 | 517 | explain select cast(1 as char(4294967296)); | ||
1843 | 518 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1844 | 519 | explain select cast(1 as nchar(4294967296)); | ||
1845 | 520 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1846 | 521 | explain select cast(1 as binary(4294967296)); | ||
1847 | 522 | |||
1848 | 523 | --error ER_PARSE_ERROR | ||
1849 | 524 | explain select cast(1 as decimal(-1)); | ||
1850 | 525 | explain select cast(1 as decimal(64, 30)); | ||
1851 | 526 | # It's not as important which errors are raised for these, since the | ||
1852 | 527 | # limit is nowhere near 2**32. We may fix these eventually to take | ||
1853 | 528 | # 4294967295 and still reject it because it's greater than 64 or 30, | ||
1854 | 529 | # but that's not a high priority and the parser needn't worry about | ||
1855 | 530 | # such a weird case. | ||
1856 | 531 | --error ER_TOO_BIG_SCALE,ER_PARSE_ERROR | ||
1857 | 532 | explain select cast(1 as decimal(64, 999999999999999999999999999999)); | ||
1858 | 533 | --error ER_TOO_BIG_PRECISION,ER_PARSE_ERROR | ||
1859 | 534 | explain select cast(1 as decimal(4294967296)); | ||
1860 | 535 | --error ER_TOO_BIG_PRECISION,ER_PARSE_ERROR | ||
1861 | 536 | explain select cast(1 as decimal(999999999999999999999999999999999999)); | ||
1862 | 537 | |||
1863 | 538 | explain select convert(1, char(4294967295)); | ||
1864 | 539 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1865 | 540 | explain select convert(1, char(4294967296)); | ||
1866 | 541 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1867 | 542 | explain select convert(1, char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1868 | 543 | explain select convert(1, nchar(4294967295)); | ||
1869 | 544 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1870 | 545 | explain select convert(1, nchar(4294967296)); | ||
1871 | 546 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1872 | 547 | explain select convert(1, nchar(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1873 | 548 | explain select convert(1, binary(4294967295)); | ||
1874 | 549 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1875 | 550 | explain select convert(1, binary(4294967296)); | ||
1876 | 551 | --error ER_TOO_BIG_DISPLAYWIDTH | ||
1877 | 552 | explain select convert(1, binary(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); | ||
1878 | 553 | |||
1879 | 554 | --echo End of 5.0 tests | ||
1880 | 555 | |||
1881 | 556 | # | ||
1882 | 557 | # Bug #33969: Updating a text field via a left join | ||
1883 | 558 | # | ||
1884 | 559 | |||
1885 | 560 | CREATE TABLE t1(id INT NOT NULL); | ||
1886 | 561 | CREATE TABLE t2(id INT NOT NULL, c TEXT NOT NULL); | ||
1887 | 562 | |||
1888 | 563 | INSERT INTO t1 VALUES (1); | ||
1889 | 564 | INSERT INTO t2 VALUES (1, ''); | ||
1890 | 565 | |||
1891 | 566 | UPDATE t2 SET c = REPEAT('1', 70000); | ||
1892 | 567 | SELECT LENGTH(c) FROM t2; | ||
1893 | 568 | |||
1894 | 569 | UPDATE t1 LEFT JOIN t2 USING(id) SET t2.c = REPEAT('1', 70000) WHERE t1.id = 1; | ||
1895 | 570 | SELECT LENGTH(c) FROM t2; | ||
1896 | 571 | |||
1897 | 572 | DROP TABLE t1, t2; | ||
1898 | 573 | |||
1899 | 574 | --echo # Bug #52160: crash and inconsistent results when grouping | ||
1900 | 575 | --echo # by a function and column | ||
1901 | 576 | |||
1902 | 577 | CREATE FUNCTION f1() RETURNS TINYBLOB RETURN 1; | ||
1903 | 578 | |||
1904 | 579 | CREATE TABLE t1(a CHAR(1)); | ||
1905 | 580 | INSERT INTO t1 VALUES ('0'), ('0'); | ||
1906 | 581 | |||
1907 | 582 | SELECT COUNT(*) FROM t1 GROUP BY f1(), a; | ||
1908 | 583 | |||
1909 | 584 | DROP FUNCTION f1; | ||
1910 | 585 | DROP TABLE t1; | ||
1911 | 586 | |||
1912 | 587 | |||
1913 | 588 | |||
1914 | 589 | SET default_storage_engine=@old_default_storage_engine; | ||
1915 | 590 | |||
1916 | 591 | |||
1917 | 592 | ######################################################################## | ||
1918 | 593 | # Modified test from myisam-blob.test | ||
1919 | 594 | ######################################################################## | ||
1920 | 595 | |||
1921 | 596 | SET @old_max_heap_table_size = @@global.max_heap_table_size; | ||
1922 | 597 | SET @old_max_allowed_packet = @@global.max_allowed_packet; | ||
1923 | 598 | SET GLOBAL max_heap_table_size = 18 * 1024 * 1024; | ||
1924 | 599 | SET GLOBAL max_allowed_packet = 24 * 1024 * 1024; | ||
1925 | 600 | |||
1926 | 601 | connect(con1, localhost, root,,); | ||
1927 | 602 | connection con1; | ||
1928 | 603 | |||
1929 | 604 | --disable_warnings | ||
1930 | 605 | drop table if exists t1; | ||
1931 | 606 | --enable_warnings | ||
1932 | 607 | |||
1933 | 608 | # Bug #2159 (Problem with update of blob to > 16M) | ||
1934 | 609 | |||
1935 | 610 | CREATE TABLE t1 (data LONGBLOB) ENGINE=memory; | ||
1936 | 611 | INSERT INTO t1 (data) VALUES (NULL); | ||
1937 | 612 | UPDATE t1 set data=repeat('a',18*1024*1024); | ||
1938 | 613 | select length(data) from t1; | ||
1939 | 614 | delete from t1 where left(data,1)='a'; | ||
1940 | 615 | truncate table t1; | ||
1941 | 616 | INSERT INTO t1 (data) VALUES (repeat('a',1*1024*1024)); | ||
1942 | 617 | INSERT INTO t1 (data) VALUES (repeat('b',16*1024*1024-1024)); | ||
1943 | 618 | delete from t1 where left(data,1)='b'; | ||
1944 | 619 | |||
1945 | 620 | # now we have two blocks in the table, first is a 1M record and second is | ||
1946 | 621 | # a 16M delete block. | ||
1947 | 622 | |||
1948 | 623 | UPDATE t1 set data=repeat('c',17*1024*1024); | ||
1949 | 624 | delete from t1 where left(data,1)='c'; | ||
1950 | 625 | |||
1951 | 626 | INSERT INTO t1 set data=repeat('a',18*1024*1024); | ||
1952 | 627 | select length(data) from t1; | ||
1953 | 628 | alter table t1 modify data blob; | ||
1954 | 629 | select length(data) from t1; | ||
1955 | 630 | drop table t1; | ||
1956 | 631 | |||
1957 | 632 | CREATE TABLE t1 (data BLOB) ENGINE=myisam; | ||
1958 | 633 | INSERT INTO t1 (data) VALUES (NULL); | ||
1959 | 634 | UPDATE t1 set data=repeat('a',18*1024*1024); | ||
1960 | 635 | select length(data) from t1; | ||
1961 | 636 | drop table t1; | ||
1962 | 637 | |||
1963 | 638 | disconnect con1; | ||
1964 | 639 | connection default; | ||
1965 | 640 | |||
1966 | 641 | SET GLOBAL max_allowed_packet = @old_max_allowed_packet; | ||
1967 | 642 | SET GLOBAL max_heap_table_size = @old_max_heap_table_size; | ||
1968 | 643 | 0 | ||
1969 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result' | |||
1970 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result 2011-06-06 10:34:16 +0000 | |||
1971 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.result 1970-01-01 00:00:00 +0000 | |||
1972 | @@ -1,14 +0,0 @@ | |||
1973 | 1 | drop table if exists t1; | ||
1974 | 2 | CREATE TABLE t1 ( | ||
1975 | 3 | f1 VARCHAR ( 128 ) , | ||
1976 | 4 | f2 VARCHAR ( 32 ), | ||
1977 | 5 | PRIMARY KEY ( f2 ( 2 ) , f1 ) | ||
1978 | 6 | ) | ||
1979 | 7 | ENGINE=HEAP KEY_BLOCK_SIZE = 512; | ||
1980 | 8 | INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' ); | ||
1981 | 9 | Warnings: | ||
1982 | 10 | Warning 1048 Column 'f1' cannot be null | ||
1983 | 11 | INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' ); | ||
1984 | 12 | Warnings: | ||
1985 | 13 | Warning 1048 Column 'f1' cannot be null | ||
1986 | 14 | DROP TABLE t1; | ||
1987 | 15 | 0 | ||
1988 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test' | |||
1989 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test 2011-08-22 11:28:27 +0000 | |||
1990 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783366.test 1970-01-01 00:00:00 +0000 | |||
1991 | @@ -1,19 +0,0 @@ | |||
1992 | 1 | # | ||
1993 | 2 | # Test for bug lp:783366 | ||
1994 | 3 | # | ||
1995 | 4 | |||
1996 | 5 | --disable_warnings | ||
1997 | 6 | drop table if exists t1; | ||
1998 | 7 | --enable_warnings | ||
1999 | 8 | |||
2000 | 9 | CREATE TABLE t1 ( | ||
2001 | 10 | f1 VARCHAR ( 128 ) , | ||
2002 | 11 | f2 VARCHAR ( 32 ), | ||
2003 | 12 | PRIMARY KEY ( f2 ( 2 ) , f1 ) | ||
2004 | 13 | ) | ||
2005 | 14 | ENGINE=HEAP KEY_BLOCK_SIZE = 512; | ||
2006 | 15 | INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' ); | ||
2007 | 16 | INSERT IGNORE INTO t1 VALUES ( 'te' , 'm') , ( NULL , 'think' ); | ||
2008 | 17 | |||
2009 | 18 | DROP TABLE t1; | ||
2010 | 19 | |||
2011 | 20 | 0 | ||
2012 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result' | |||
2013 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result 2011-06-06 10:34:16 +0000 | |||
2014 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.result 1970-01-01 00:00:00 +0000 | |||
2015 | @@ -1,132 +0,0 @@ | |||
2016 | 1 | DROP TABLE IF EXISTS local_1_1; | ||
2017 | 2 | CREATE 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; | ||
2018 | 3 | INSERT 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) ); | ||
2019 | 4 | Warnings: | ||
2020 | 5 | Warning 1048 Column 'f3' cannot be null | ||
2021 | 6 | Warning 1048 Column 'f4' cannot be null | ||
2022 | 7 | Warning 1265 Data truncated for column 'f4' at row 2 | ||
2023 | 8 | Warning 1048 Column 'f1' cannot be null | ||
2024 | 9 | Warning 1048 Column 'f2' cannot be null | ||
2025 | 10 | Warning 1265 Data truncated for column 'f3' at row 3 | ||
2026 | 11 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2027 | 12 | Warning 1048 Column 'f4' cannot be null | ||
2028 | 13 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2029 | 14 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2030 | 15 | Warning 1048 Column 'f1' cannot be null | ||
2031 | 16 | Warning 1265 Data truncated for column 'f2' at row 4 | ||
2032 | 17 | Warning 1048 Column 'f3' cannot be null | ||
2033 | 18 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2034 | 19 | Warning 1048 Column 'f4' cannot be null | ||
2035 | 20 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2036 | 21 | Warning 1048 Column 'f1' cannot be null | ||
2037 | 22 | Warning 1265 Data truncated for column 'f1' at row 6 | ||
2038 | 23 | Warning 1048 Column 'f4' cannot be null | ||
2039 | 24 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2040 | 25 | Warning 1048 Column 'f2' cannot be null | ||
2041 | 26 | Warning 1048 Column 'f4' cannot be null | ||
2042 | 27 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2043 | 28 | INSERT 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 ); | ||
2044 | 29 | Warnings: | ||
2045 | 30 | Warning 1048 Column 'f2' cannot be null | ||
2046 | 31 | Warning 1265 Data truncated for column 'f3' at row 1 | ||
2047 | 32 | Warning 1265 Data truncated for column 'f1' at row 2 | ||
2048 | 33 | Warning 1265 Data truncated for column 'f2' at row 2 | ||
2049 | 34 | Warning 1265 Data truncated for column 'f4' at row 2 | ||
2050 | 35 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2051 | 36 | Warning 1048 Column 'f2' cannot be null | ||
2052 | 37 | Warning 1048 Column 'f3' cannot be null | ||
2053 | 38 | Warning 1048 Column 'f4' cannot be null | ||
2054 | 39 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2055 | 40 | Warning 1265 Data truncated for column 'f1' at row 4 | ||
2056 | 41 | Warning 1265 Data truncated for column 'f3' at row 4 | ||
2057 | 42 | Warning 1048 Column 'f4' cannot be null | ||
2058 | 43 | Warning 1048 Column 'f1' cannot be null | ||
2059 | 44 | Warning 1048 Column 'f2' cannot be null | ||
2060 | 45 | Warning 1265 Data truncated for column 'f4' at row 5 | ||
2061 | 46 | INSERT 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' ); | ||
2062 | 47 | Warnings: | ||
2063 | 48 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2064 | 49 | Warning 1048 Column 'f1' cannot be null | ||
2065 | 50 | Warning 1048 Column 'f2' cannot be null | ||
2066 | 51 | Warning 1048 Column 'f3' cannot be null | ||
2067 | 52 | Warning 1048 Column 'f4' cannot be null | ||
2068 | 53 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2069 | 54 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2070 | 55 | Warning 1048 Column 'f1' cannot be null | ||
2071 | 56 | Warning 1048 Column 'f2' cannot be null | ||
2072 | 57 | Warning 1301 Result of repeat() was larger than max_allowed_packet (1048576) - truncated | ||
2073 | 58 | Warning 1048 Column 'f3' cannot be null | ||
2074 | 59 | Warning 1048 Column 'f1' cannot be null | ||
2075 | 60 | Warning 1048 Column 'f3' cannot be null | ||
2076 | 61 | Warning 1048 Column 'f1' cannot be null | ||
2077 | 62 | Warning 1048 Column 'f2' cannot be null | ||
2078 | 63 | Warning 1048 Column 'f3' cannot be null | ||
2079 | 64 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2080 | 65 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2081 | 66 | UPDATE local_1_1 SET f5 = REPEAT ('X', 215566); | ||
2082 | 67 | Warnings: | ||
2083 | 68 | Warning 1265 Data truncated for column 'f5' at row 1 | ||
2084 | 69 | Warning 1265 Data truncated for column 'f5' at row 2 | ||
2085 | 70 | Warning 1265 Data truncated for column 'f5' at row 3 | ||
2086 | 71 | Warning 1265 Data truncated for column 'f5' at row 4 | ||
2087 | 72 | Warning 1265 Data truncated for column 'f5' at row 5 | ||
2088 | 73 | Warning 1265 Data truncated for column 'f5' at row 6 | ||
2089 | 74 | Warning 1265 Data truncated for column 'f5' at row 7 | ||
2090 | 75 | Warning 1265 Data truncated for column 'f5' at row 8 | ||
2091 | 76 | Warning 1265 Data truncated for column 'f5' at row 9 | ||
2092 | 77 | Warning 1265 Data truncated for column 'f5' at row 10 | ||
2093 | 78 | Warning 1265 Data truncated for column 'f5' at row 11 | ||
2094 | 79 | Warning 1265 Data truncated for column 'f5' at row 12 | ||
2095 | 80 | Warning 1265 Data truncated for column 'f5' at row 13 | ||
2096 | 81 | Warning 1265 Data truncated for column 'f5' at row 14 | ||
2097 | 82 | Warning 1265 Data truncated for column 'f5' at row 15 | ||
2098 | 83 | Warning 1265 Data truncated for column 'f5' at row 16 | ||
2099 | 84 | Warning 1265 Data truncated for column 'f5' at row 17 | ||
2100 | 85 | Warning 1265 Data truncated for column 'f5' at row 18 | ||
2101 | 86 | Warning 1265 Data truncated for column 'f5' at row 19 | ||
2102 | 87 | Warning 1265 Data truncated for column 'f5' at row 20 | ||
2103 | 88 | Warning 1265 Data truncated for column 'f5' at row 21 | ||
2104 | 89 | Warning 1265 Data truncated for column 'f5' at row 22 | ||
2105 | 90 | Warning 1265 Data truncated for column 'f5' at row 23 | ||
2106 | 91 | Warning 1265 Data truncated for column 'f5' at row 24 | ||
2107 | 92 | Warning 1265 Data truncated for column 'f5' at row 25 | ||
2108 | 93 | Warning 1265 Data truncated for column 'f5' at row 26 | ||
2109 | 94 | Warning 1265 Data truncated for column 'f5' at row 27 | ||
2110 | 95 | Warning 1265 Data truncated for column 'f5' at row 28 | ||
2111 | 96 | Warning 1265 Data truncated for column 'f5' at row 29 | ||
2112 | 97 | Warning 1265 Data truncated for column 'f5' at row 30 | ||
2113 | 98 | Warning 1265 Data truncated for column 'f5' at row 31 | ||
2114 | 99 | Warning 1265 Data truncated for column 'f5' at row 32 | ||
2115 | 100 | Warning 1265 Data truncated for column 'f5' at row 33 | ||
2116 | 101 | Warning 1265 Data truncated for column 'f5' at row 34 | ||
2117 | 102 | Warning 1265 Data truncated for column 'f5' at row 35 | ||
2118 | 103 | Warning 1265 Data truncated for column 'f5' at row 36 | ||
2119 | 104 | Warning 1265 Data truncated for column 'f5' at row 37 | ||
2120 | 105 | Warning 1265 Data truncated for column 'f5' at row 38 | ||
2121 | 106 | Warning 1265 Data truncated for column 'f5' at row 39 | ||
2122 | 107 | Warning 1265 Data truncated for column 'f5' at row 40 | ||
2123 | 108 | Warning 1265 Data truncated for column 'f5' at row 41 | ||
2124 | 109 | Warning 1265 Data truncated for column 'f5' at row 42 | ||
2125 | 110 | Warning 1265 Data truncated for column 'f5' at row 43 | ||
2126 | 111 | Warning 1265 Data truncated for column 'f5' at row 44 | ||
2127 | 112 | Warning 1265 Data truncated for column 'f5' at row 45 | ||
2128 | 113 | Warning 1265 Data truncated for column 'f5' at row 46 | ||
2129 | 114 | Warning 1265 Data truncated for column 'f5' at row 47 | ||
2130 | 115 | Warning 1265 Data truncated for column 'f5' at row 48 | ||
2131 | 116 | Warning 1265 Data truncated for column 'f5' at row 49 | ||
2132 | 117 | Warning 1265 Data truncated for column 'f5' at row 50 | ||
2133 | 118 | Warning 1265 Data truncated for column 'f5' at row 51 | ||
2134 | 119 | Warning 1265 Data truncated for column 'f5' at row 52 | ||
2135 | 120 | Warning 1265 Data truncated for column 'f5' at row 53 | ||
2136 | 121 | Warning 1265 Data truncated for column 'f5' at row 54 | ||
2137 | 122 | Warning 1265 Data truncated for column 'f5' at row 55 | ||
2138 | 123 | Warning 1265 Data truncated for column 'f5' at row 56 | ||
2139 | 124 | Warning 1265 Data truncated for column 'f5' at row 57 | ||
2140 | 125 | Warning 1265 Data truncated for column 'f5' at row 58 | ||
2141 | 126 | Warning 1265 Data truncated for column 'f5' at row 59 | ||
2142 | 127 | Warning 1265 Data truncated for column 'f5' at row 60 | ||
2143 | 128 | Warning 1265 Data truncated for column 'f5' at row 61 | ||
2144 | 129 | Warning 1265 Data truncated for column 'f5' at row 62 | ||
2145 | 130 | Warning 1265 Data truncated for column 'f5' at row 63 | ||
2146 | 131 | Warning 1265 Data truncated for column 'f5' at row 64 | ||
2147 | 132 | DROP TABLE local_1_1; | ||
2148 | 133 | 0 | ||
2149 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test' | |||
2150 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test 2011-08-22 11:28:27 +0000 | |||
2151 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug783451.test 1970-01-01 00:00:00 +0000 | |||
2152 | @@ -1,16 +0,0 @@ | |||
2153 | 1 | # Testcase for the bug https://bugs.launchpad.net/percona-projects-qa/+bug/783451 | ||
2154 | 2 | # With dynamic row format in HEAP and the UPDATE statement that significantly | ||
2155 | 3 | # increases the data size, the table scan in-progress desyncs its table position state. | ||
2156 | 4 | # Run with Valgrind if it does not crash for you. | ||
2157 | 5 | --disable_warnings | ||
2158 | 6 | DROP TABLE IF EXISTS local_1_1; | ||
2159 | 7 | --enable_warnings | ||
2160 | 8 | CREATE 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; | ||
2161 | 9 | INSERT 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) ); | ||
2162 | 10 | INSERT 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 ); | ||
2163 | 11 | INSERT 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' ); | ||
2164 | 12 | --enable_warnings | ||
2165 | 13 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2166 | 14 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2167 | 15 | UPDATE local_1_1 SET f5 = REPEAT ('X', 215566); | ||
2168 | 16 | DROP TABLE local_1_1; | ||
2169 | 17 | 0 | ||
2170 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result' | |||
2171 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result 2011-08-22 11:28:27 +0000 | |||
2172 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.result 1970-01-01 00:00:00 +0000 | |||
2173 | @@ -1,58 +0,0 @@ | |||
2174 | 1 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2175 | 2 | PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2176 | 3 | SHOW TABLE STATUS LIKE 't1'; | ||
2177 | 4 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2178 | 5 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC | ||
2179 | 6 | DROP TABLE t1; | ||
2180 | 7 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2181 | 8 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2182 | 9 | ERROR 42000: Incorrect usage/placement of 'key_block_size' | ||
2183 | 10 | SHOW TABLE STATUS LIKE 't1'; | ||
2184 | 11 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2185 | 12 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2186 | 13 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2187 | 14 | SHOW TABLE STATUS LIKE 't1'; | ||
2188 | 15 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2189 | 16 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=34 | ||
2190 | 17 | DROP TABLE t1; | ||
2191 | 18 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2192 | 19 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=123 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2193 | 20 | SHOW TABLE STATUS LIKE 't1'; | ||
2194 | 21 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2195 | 22 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=123 | ||
2196 | 23 | DROP TABLE t1; | ||
2197 | 24 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2198 | 25 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2199 | 26 | SHOW TABLE STATUS LIKE 't1'; | ||
2200 | 27 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2201 | 28 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=1000 | ||
2202 | 29 | DROP TABLE t1; | ||
2203 | 30 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2204 | 31 | PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2205 | 32 | SHOW TABLE STATUS LIKE 't1'; | ||
2206 | 33 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2207 | 34 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC | ||
2208 | 35 | DROP TABLE t1; | ||
2209 | 36 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2210 | 37 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2211 | 38 | ERROR 42000: Incorrect usage/placement of 'key_block_size' | ||
2212 | 39 | SHOW TABLE STATUS LIKE 't1'; | ||
2213 | 40 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2214 | 41 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2215 | 42 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2216 | 43 | SHOW TABLE STATUS LIKE 't1'; | ||
2217 | 44 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2218 | 45 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=34 | ||
2219 | 46 | DROP TABLE t1; | ||
2220 | 47 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2221 | 48 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=121 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2222 | 49 | SHOW TABLE STATUS LIKE 't1'; | ||
2223 | 50 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2224 | 51 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=121 | ||
2225 | 52 | DROP TABLE t1; | ||
2226 | 53 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2227 | 54 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2228 | 55 | SHOW TABLE STATUS LIKE 't1'; | ||
2229 | 56 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2230 | 57 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=1000 | ||
2231 | 58 | DROP TABLE t1; | ||
2232 | 59 | 0 | ||
2233 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test' | |||
2234 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test 2011-08-22 11:28:27 +0000 | |||
2235 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464.test 1970-01-01 00:00:00 +0000 | |||
2236 | @@ -1,64 +0,0 @@ | |||
2237 | 1 | # | ||
2238 | 2 | # Bug #784464: Silent conversion from Dynamic to Fixed row_format for certain | ||
2239 | 3 | # values of key_block_size. | ||
2240 | 4 | # Also see percona_heap_bug784464_32bit and percona_heap_bug784464_64bit tests. | ||
2241 | 5 | # | ||
2242 | 6 | |||
2243 | 7 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2244 | 8 | PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2245 | 9 | --replace_column 6 X 8 X | ||
2246 | 10 | SHOW TABLE STATUS LIKE 't1'; | ||
2247 | 11 | DROP TABLE t1; | ||
2248 | 12 | |||
2249 | 13 | --error ER_CANT_USE_OPTION_HERE | ||
2250 | 14 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2251 | 15 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2252 | 16 | SHOW TABLE STATUS LIKE 't1'; | ||
2253 | 17 | |||
2254 | 18 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2255 | 19 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2256 | 20 | --replace_column 6 X 8 X | ||
2257 | 21 | SHOW TABLE STATUS LIKE 't1'; | ||
2258 | 22 | DROP TABLE t1; | ||
2259 | 23 | |||
2260 | 24 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2261 | 25 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=123 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2262 | 26 | --replace_column 6 X 8 X | ||
2263 | 27 | SHOW TABLE STATUS LIKE 't1'; | ||
2264 | 28 | DROP TABLE t1; | ||
2265 | 29 | |||
2266 | 30 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2267 | 31 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2268 | 32 | --replace_column 6 X 8 X | ||
2269 | 33 | SHOW TABLE STATUS LIKE 't1'; | ||
2270 | 34 | DROP TABLE t1; | ||
2271 | 35 | |||
2272 | 36 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2273 | 37 | PRIMARY KEY (f1)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2274 | 38 | --replace_column 6 X 8 X | ||
2275 | 39 | SHOW TABLE STATUS LIKE 't1'; | ||
2276 | 40 | DROP TABLE t1; | ||
2277 | 41 | |||
2278 | 42 | --error ER_CANT_USE_OPTION_HERE | ||
2279 | 43 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2280 | 44 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=33 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2281 | 45 | SHOW TABLE STATUS LIKE 't1'; | ||
2282 | 46 | |||
2283 | 47 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2284 | 48 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=34 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2285 | 49 | --replace_column 6 X 8 X | ||
2286 | 50 | SHOW TABLE STATUS LIKE 't1'; | ||
2287 | 51 | DROP TABLE t1; | ||
2288 | 52 | |||
2289 | 53 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2290 | 54 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=121 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2291 | 55 | --replace_column 6 X 8 X | ||
2292 | 56 | SHOW TABLE STATUS LIKE 't1'; | ||
2293 | 57 | DROP TABLE t1; | ||
2294 | 58 | |||
2295 | 59 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2296 | 60 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=1000 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2297 | 61 | --replace_column 6 X 8 X | ||
2298 | 62 | SHOW TABLE STATUS LIKE 't1'; | ||
2299 | 63 | DROP TABLE t1; | ||
2300 | 64 | |||
2301 | 65 | 0 | ||
2302 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result' | |||
2303 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result 2011-08-22 11:28:27 +0000 | |||
2304 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.result 1970-01-01 00:00:00 +0000 | |||
2305 | @@ -1,12 +0,0 @@ | |||
2306 | 1 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2307 | 2 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2308 | 3 | SHOW TABLE STATUS LIKE 't1'; | ||
2309 | 4 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2310 | 5 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=124 | ||
2311 | 6 | DROP TABLE t1; | ||
2312 | 7 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2313 | 8 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2314 | 9 | SHOW TABLE STATUS LIKE 't1'; | ||
2315 | 10 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2316 | 11 | t1 MEMORY 10 Dynamic 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=122 | ||
2317 | 12 | DROP TABLE t1; | ||
2318 | 13 | 0 | ||
2319 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test' | |||
2320 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test 2011-08-22 11:28:27 +0000 | |||
2321 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_32bit.test 1970-01-01 00:00:00 +0000 | |||
2322 | @@ -1,15 +0,0 @@ | |||
2323 | 1 | # 32-bit platform specific parts of tests for LP bug #784464 | ||
2324 | 2 | |||
2325 | 3 | --source include/have_32bit.inc | ||
2326 | 4 | |||
2327 | 5 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2328 | 6 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2329 | 7 | --replace_column 6 X 8 X | ||
2330 | 8 | SHOW TABLE STATUS LIKE 't1'; | ||
2331 | 9 | DROP TABLE t1; | ||
2332 | 10 | |||
2333 | 11 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2334 | 12 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2335 | 13 | --replace_column 6 X 8 X | ||
2336 | 14 | SHOW TABLE STATUS LIKE 't1'; | ||
2337 | 15 | DROP TABLE t1; | ||
2338 | 16 | 0 | ||
2339 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result' | |||
2340 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result 2011-08-22 11:28:27 +0000 | |||
2341 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.result 1970-01-01 00:00:00 +0000 | |||
2342 | @@ -1,12 +0,0 @@ | |||
2343 | 1 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2344 | 2 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2345 | 3 | SHOW TABLE STATUS LIKE 't1'; | ||
2346 | 4 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2347 | 5 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=124 | ||
2348 | 6 | DROP TABLE t1; | ||
2349 | 7 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2350 | 8 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2351 | 9 | SHOW TABLE STATUS LIKE 't1'; | ||
2352 | 10 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2353 | 11 | t1 MEMORY 10 Fixed 0 X 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC KEY_BLOCK_SIZE=122 | ||
2354 | 12 | DROP TABLE t1; | ||
2355 | 13 | 0 | ||
2356 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test' | |||
2357 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test 2011-08-22 11:28:27 +0000 | |||
2358 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784464_64bit.test 1970-01-01 00:00:00 +0000 | |||
2359 | @@ -1,15 +0,0 @@ | |||
2360 | 1 | # 64-bit platform specific parts of tests for LP bug #784464 | ||
2361 | 2 | |||
2362 | 3 | --source include/have_64bit.inc | ||
2363 | 4 | |||
2364 | 5 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(32), f3 VARCHAR(32), f4 VARCHAR(32), | ||
2365 | 6 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=124 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2366 | 7 | --replace_column 6 X 8 X | ||
2367 | 8 | SHOW TABLE STATUS LIKE 't1'; | ||
2368 | 9 | DROP TABLE t1; | ||
2369 | 10 | |||
2370 | 11 | CREATE TABLE t1 (f1 VARCHAR(32), f2 VARCHAR(96), | ||
2371 | 12 | PRIMARY KEY (f1)) KEY_BLOCK_SIZE=122 ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2372 | 13 | --replace_column 6 X 8 X | ||
2373 | 14 | SHOW TABLE STATUS LIKE 't1'; | ||
2374 | 15 | DROP TABLE t1; | ||
2375 | 16 | 0 | ||
2376 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result' | |||
2377 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result 2011-08-22 11:28:27 +0000 | |||
2378 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.result 1970-01-01 00:00:00 +0000 | |||
2379 | @@ -1,15 +0,0 @@ | |||
2380 | 1 | CREATE TABLE t1 ( f1 VARCHAR(30)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2381 | 2 | SHOW TABLE STATUS LIKE 't1'; | ||
2382 | 3 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2383 | 4 | t1 MEMORY 10 Fixed 0 32 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC | ||
2384 | 5 | DROP TABLE t1; | ||
2385 | 6 | CREATE TABLE t1 ( f1 VARCHAR(31)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2386 | 7 | SHOW TABLE STATUS LIKE 't1'; | ||
2387 | 8 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2388 | 9 | t1 MEMORY 10 Fixed 0 33 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC | ||
2389 | 10 | DROP TABLE t1; | ||
2390 | 11 | CREATE TABLE t1 ( f1 VARCHAR(32)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2391 | 12 | SHOW TABLE STATUS LIKE 't1'; | ||
2392 | 13 | Name Engine Version Row_format Rows Avg_row_length Data_length Max_data_length Index_length Data_free Auto_increment Create_time Update_time Check_time Collation Checksum Create_options Comment | ||
2393 | 14 | t1 MEMORY 10 Fixed 0 34 0 X 0 0 NULL NULL NULL NULL latin1_swedish_ci NULL row_format=DYNAMIC | ||
2394 | 15 | DROP TABLE t1; | ||
2395 | 16 | 0 | ||
2396 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test' | |||
2397 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test 2011-08-22 11:28:27 +0000 | |||
2398 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug784468.test 1970-01-01 00:00:00 +0000 | |||
2399 | @@ -1,19 +0,0 @@ | |||
2400 | 1 | # | ||
2401 | 2 | # Bug #784468: Tables with VARCHAR(<31) are created as row_format = Fixed | ||
2402 | 3 | # | ||
2403 | 4 | |||
2404 | 5 | CREATE TABLE t1 ( f1 VARCHAR(30)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2405 | 6 | --replace_column 8 X | ||
2406 | 7 | SHOW TABLE STATUS LIKE 't1'; | ||
2407 | 8 | DROP TABLE t1; | ||
2408 | 9 | |||
2409 | 10 | CREATE TABLE t1 ( f1 VARCHAR(31)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2410 | 11 | --replace_column 8 X | ||
2411 | 12 | SHOW TABLE STATUS LIKE 't1'; | ||
2412 | 13 | DROP TABLE t1; | ||
2413 | 14 | |||
2414 | 15 | CREATE TABLE t1 ( f1 VARCHAR(32)) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2415 | 16 | --replace_column 8 X | ||
2416 | 17 | SHOW TABLE STATUS LIKE 't1'; | ||
2417 | 18 | DROP TABLE t1; | ||
2418 | 19 | |||
2419 | 20 | 0 | ||
2420 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result' | |||
2421 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result 2011-06-06 10:34:16 +0000 | |||
2422 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.result 1970-01-01 00:00:00 +0000 | |||
2423 | @@ -1,9 +0,0 @@ | |||
2424 | 1 | CREATE TABLE t1 (f2 VARCHAR (32), f4 LONGBLOB, f5 TEXT) ENGINE=HEAP; | ||
2425 | 2 | INSERT INTO t1 VALUES ('a', NULL, NULL), | ||
2426 | 3 | ('b' , REPEAT('a' , 593338), REPEAT('a', 800)); | ||
2427 | 4 | UPDATE t1 SET f2 = 'c' WHERE f4 = 'd'; | ||
2428 | 5 | SELECT LENGTH(f2), LENGTH(f4), LENGTH(f5) FROM t1; | ||
2429 | 6 | LENGTH(f2) LENGTH(f4) LENGTH(f5) | ||
2430 | 7 | 1 NULL NULL | ||
2431 | 8 | 1 593338 800 | ||
2432 | 9 | DROP TABLE t1; | ||
2433 | 10 | 0 | ||
2434 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test' | |||
2435 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test 2011-08-22 11:28:27 +0000 | |||
2436 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788544.test 1970-01-01 00:00:00 +0000 | |||
2437 | @@ -1,15 +0,0 @@ | |||
2438 | 1 | # | ||
2439 | 2 | # Bug #788544: Valgrind warnings/crash in mysql-55-eb-blobs in | ||
2440 | 3 | # hp_extract_record / hp_process_field_data_to_chunkset | ||
2441 | 4 | # | ||
2442 | 5 | |||
2443 | 6 | CREATE TABLE t1 (f2 VARCHAR (32), f4 LONGBLOB, f5 TEXT) ENGINE=HEAP; | ||
2444 | 7 | |||
2445 | 8 | INSERT INTO t1 VALUES ('a', NULL, NULL), | ||
2446 | 9 | ('b' , REPEAT('a' , 593338), REPEAT('a', 800)); | ||
2447 | 10 | |||
2448 | 11 | UPDATE t1 SET f2 = 'c' WHERE f4 = 'd'; | ||
2449 | 12 | |||
2450 | 13 | SELECT LENGTH(f2), LENGTH(f4), LENGTH(f5) FROM t1; | ||
2451 | 14 | |||
2452 | 15 | DROP TABLE t1; | ||
2453 | 16 | 0 | ||
2454 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result' | |||
2455 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result 2011-06-06 10:34:16 +0000 | |||
2456 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.result 1970-01-01 00:00:00 +0000 | |||
2457 | @@ -1,19 +0,0 @@ | |||
2458 | 1 | CREATE TABLE t1 (f1 VARCHAR (32), f2 VARCHAR (128), f3 VARBINARY (128), | ||
2459 | 2 | f4 VARBINARY (512), f5 VARBINARY (1024), | ||
2460 | 3 | KEY (f2(1))) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2461 | 4 | INSERT IGNORE INTO t1 VALUES (2, NULL, 6, REPEAT('glugcgqk', 5), 'look'), | ||
2462 | 5 | (REPEAT( 'kglugcgqkin', 6), 'if', 'was', NULL, NULL), | ||
2463 | 6 | (NULL, NULL, NULL, NULL, 7); | ||
2464 | 7 | Warnings: | ||
2465 | 8 | Warning 1265 Data truncated for column 'f1' at row 2 | ||
2466 | 9 | SELECT * FROM t1; | ||
2467 | 10 | f1 f2 f3 f4 f5 | ||
2468 | 11 | 2 NULL 6 glugcgqkglugcgqkglugcgqkglugcgqkglugcgqk look | ||
2469 | 12 | kglugcgqkinkglugcgqkinkglugcgqki if was NULL NULL | ||
2470 | 13 | NULL NULL NULL NULL 7 | ||
2471 | 14 | DELETE FROM t1 WHERE f5 <=> NULL; | ||
2472 | 15 | SELECT * FROM t1; | ||
2473 | 16 | f1 f2 f3 f4 f5 | ||
2474 | 17 | 2 NULL 6 glugcgqkglugcgqkglugcgqkglugcgqkglugcgqk look | ||
2475 | 18 | NULL NULL NULL NULL 7 | ||
2476 | 19 | DROP TABLE t1; | ||
2477 | 20 | 0 | ||
2478 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test' | |||
2479 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test 2011-08-22 11:28:27 +0000 | |||
2480 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788576.test 1970-01-01 00:00:00 +0000 | |||
2481 | @@ -1,19 +0,0 @@ | |||
2482 | 1 | # | ||
2483 | 2 | # Bug #788576: Second crash in hp_movelink with mysql-55-eb | ||
2484 | 3 | # | ||
2485 | 4 | |||
2486 | 5 | CREATE TABLE t1 (f1 VARCHAR (32), f2 VARCHAR (128), f3 VARBINARY (128), | ||
2487 | 6 | f4 VARBINARY (512), f5 VARBINARY (1024), | ||
2488 | 7 | KEY (f2(1))) ENGINE=HEAP ROW_FORMAT=DYNAMIC; | ||
2489 | 8 | |||
2490 | 9 | INSERT IGNORE INTO t1 VALUES (2, NULL, 6, REPEAT('glugcgqk', 5), 'look'), | ||
2491 | 10 | (REPEAT( 'kglugcgqkin', 6), 'if', 'was', NULL, NULL), | ||
2492 | 11 | (NULL, NULL, NULL, NULL, 7); | ||
2493 | 12 | |||
2494 | 13 | SELECT * FROM t1; | ||
2495 | 14 | |||
2496 | 15 | DELETE FROM t1 WHERE f5 <=> NULL; | ||
2497 | 16 | |||
2498 | 17 | SELECT * FROM t1; | ||
2499 | 18 | |||
2500 | 19 | DROP TABLE t1; | ||
2501 | 20 | 0 | ||
2502 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result' | |||
2503 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result 2011-06-06 10:34:16 +0000 | |||
2504 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.result 1970-01-01 00:00:00 +0000 | |||
2505 | @@ -1,18 +0,0 @@ | |||
2506 | 1 | CREATE TABLE IF NOT EXISTS local_1_1 (f1 VARCHAR (32) NOT NULL, | ||
2507 | 2 | f2 VARCHAR (128) NOT NULL, | ||
2508 | 3 | f3 BLOB NOT NULL, | ||
2509 | 4 | f4 TEXT, | ||
2510 | 5 | f5 BLOB (1024), | ||
2511 | 6 | PRIMARY KEY (f1), | ||
2512 | 7 | KEY (f1 , f2) | ||
2513 | 8 | ) ENGINE=HEAP ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE = 2048; | ||
2514 | 9 | INSERT IGNORE INTO local_1_1 VALUES | ||
2515 | 10 | (REPEAT('egqeqfxwaejpqixuvvtentruyqadxiybjdfqjspfbyjdjczrrwjnagkzsoagatqookhsgtrvvbxacppljfzaseidqggxvuirm' , 5), NULL, NULL, NULL, REPEAT('hegqeqfxwaejpqixuvvtentruyqadxiy', 1)), | ||
2516 | 11 | ('you', NULL, 0, REPEAT("X", 2048) , 0); | ||
2517 | 12 | Warnings: | ||
2518 | 13 | Warning 1265 Data truncated for column 'f1' at row 1 | ||
2519 | 14 | Warning 1048 Column 'f2' cannot be null | ||
2520 | 15 | Warning 1048 Column 'f3' cannot be null | ||
2521 | 16 | Warning 1048 Column 'f2' cannot be null | ||
2522 | 17 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2523 | 18 | DROP TABLE local_1_1; | ||
2524 | 19 | 0 | ||
2525 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test' | |||
2526 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test 2011-08-22 11:28:27 +0000 | |||
2527 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug788722.test 1970-01-01 00:00:00 +0000 | |||
2528 | @@ -1,20 +0,0 @@ | |||
2529 | 1 | # | ||
2530 | 2 | # Bug #788722: Second valgrind warning around hp_extract_record in mysql-55-eb-blobs | ||
2531 | 3 | # | ||
2532 | 4 | |||
2533 | 5 | CREATE TABLE IF NOT EXISTS local_1_1 (f1 VARCHAR (32) NOT NULL, | ||
2534 | 6 | f2 VARCHAR (128) NOT NULL, | ||
2535 | 7 | f3 BLOB NOT NULL, | ||
2536 | 8 | f4 TEXT, | ||
2537 | 9 | f5 BLOB (1024), | ||
2538 | 10 | PRIMARY KEY (f1), | ||
2539 | 11 | KEY (f1 , f2) | ||
2540 | 12 | ) ENGINE=HEAP ROW_FORMAT=DYNAMIC KEY_BLOCK_SIZE = 2048; | ||
2541 | 13 | |||
2542 | 14 | INSERT IGNORE INTO local_1_1 VALUES | ||
2543 | 15 | (REPEAT('egqeqfxwaejpqixuvvtentruyqadxiybjdfqjspfbyjdjczrrwjnagkzsoagatqookhsgtrvvbxacppljfzaseidqggxvuirm' , 5), NULL, NULL, NULL, REPEAT('hegqeqfxwaejpqixuvvtentruyqadxiy', 1)), | ||
2544 | 16 | ('you', NULL, 0, REPEAT("X", 2048) , 0); | ||
2545 | 17 | |||
2546 | 18 | INSERT IGNORE INTO local_1_1 SELECT * FROM local_1_1; | ||
2547 | 19 | |||
2548 | 20 | DROP TABLE local_1_1; | ||
2549 | 21 | 0 | ||
2550 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result' | |||
2551 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result 2011-06-06 10:34:16 +0000 | |||
2552 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.result 1970-01-01 00:00:00 +0000 | |||
2553 | @@ -1,7 +0,0 @@ | |||
2554 | 1 | CREATE TABLE t1 (f1 VARCHAR (128), f2 VARCHAR (128), f3 VARBINARY (512), | ||
2555 | 2 | f4 TEXT (65525), f5 VARCHAR (128), KEY (f1(1))) ENGINE=HEAP; | ||
2556 | 3 | INSERT IGNORE INTO t1 VALUES | ||
2557 | 4 | ( 'o' , "" , NULL , "" , 0 ) , | ||
2558 | 5 | (NULL, "" , "" , "" , 'f' ) ; | ||
2559 | 6 | INSERT IGNORE INTO t1 SELECT * FROM t1; | ||
2560 | 7 | DROP TABLE t1; | ||
2561 | 8 | 0 | ||
2562 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test' | |||
2563 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test 2011-08-22 11:28:27 +0000 | |||
2564 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_bug789131.test 1970-01-01 00:00:00 +0000 | |||
2565 | @@ -1,14 +0,0 @@ | |||
2566 | 1 | # | ||
2567 | 2 | # Bug #789131: Valgrind warning in MyISAM in mysql-55-eb-blobs | ||
2568 | 3 | # | ||
2569 | 4 | |||
2570 | 5 | CREATE TABLE t1 (f1 VARCHAR (128), f2 VARCHAR (128), f3 VARBINARY (512), | ||
2571 | 6 | f4 TEXT (65525), f5 VARCHAR (128), KEY (f1(1))) ENGINE=HEAP; | ||
2572 | 7 | |||
2573 | 8 | INSERT IGNORE INTO t1 VALUES | ||
2574 | 9 | ( 'o' , "" , NULL , "" , 0 ) , | ||
2575 | 10 | (NULL, "" , "" , "" , 'f' ) ; | ||
2576 | 11 | |||
2577 | 12 | INSERT IGNORE INTO t1 SELECT * FROM t1; | ||
2578 | 13 | |||
2579 | 14 | DROP TABLE t1; | ||
2580 | 15 | \ No newline at end of file | 0 | \ No newline at end of file |
2581 | 16 | 1 | ||
2582 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_var.result' | |||
2583 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_var.result 2011-08-22 11:28:27 +0000 | |||
2584 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_var.result 1970-01-01 00:00:00 +0000 | |||
2585 | @@ -1,194 +0,0 @@ | |||
2586 | 1 | drop table if exists t1; | ||
2587 | 2 | set @@session.max_heap_table_size=16*1024*1024; | ||
2588 | 3 | create 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; | ||
2589 | 4 | ERROR 42000: Incorrect usage/placement of 'key_block_size' | ||
2590 | 5 | create 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; | ||
2591 | 6 | ERROR 42000: Incorrect usage/placement of 'key_block_size' | ||
2592 | 7 | create 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; | ||
2593 | 8 | show table status like "t1"; | ||
2594 | 9 | Name t1 | ||
2595 | 10 | Engine MEMORY | ||
2596 | 11 | Version 10 | ||
2597 | 12 | Row_format Dynamic | ||
2598 | 13 | Rows 0 | ||
2599 | 14 | Avg_row_length X | ||
2600 | 15 | Data_length X | ||
2601 | 16 | Max_data_length X | ||
2602 | 17 | Index_length X | ||
2603 | 18 | Data_free X | ||
2604 | 19 | Auto_increment X | ||
2605 | 20 | Create_time X | ||
2606 | 21 | Update_time X | ||
2607 | 22 | Check_time X | ||
2608 | 23 | Collation latin1_swedish_ci | ||
2609 | 24 | Checksum NULL | ||
2610 | 25 | Create_options KEY_BLOCK_SIZE=24 | ||
2611 | 26 | Comment testing heaps | ||
2612 | 27 | insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789'); | ||
2613 | 28 | select * from t1; | ||
2614 | 29 | a b c d | ||
2615 | 30 | 1 1 012 NULL | ||
2616 | 31 | 2 2 0123456789 NULL | ||
2617 | 32 | 3 3 012345678901234567890123456789 NULL | ||
2618 | 33 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2619 | 34 | delete from t1 where a = 3; | ||
2620 | 35 | select * from t1; | ||
2621 | 36 | a b c d | ||
2622 | 37 | 1 1 012 NULL | ||
2623 | 38 | 2 2 0123456789 NULL | ||
2624 | 39 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2625 | 40 | insert into t1 values (5,5,NULL,'0123'), (6,6,NULL,'0123'); | ||
2626 | 41 | select * from t1; | ||
2627 | 42 | a b c d | ||
2628 | 43 | 1 1 012 NULL | ||
2629 | 44 | 2 2 0123456789 NULL | ||
2630 | 45 | 6 6 NULL 0123 | ||
2631 | 46 | 5 5 NULL 0123 | ||
2632 | 47 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2633 | 48 | update t1 set c = '012345678901234567890123456789' where a = 2; | ||
2634 | 49 | select * from t1; | ||
2635 | 50 | a b c d | ||
2636 | 51 | 1 1 012 NULL | ||
2637 | 52 | 2 2 012345678901234567890123456789 NULL | ||
2638 | 53 | 6 6 NULL 0123 | ||
2639 | 54 | 5 5 NULL 0123 | ||
2640 | 55 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2641 | 56 | update t1 set c = '0123456789' where a = 2; | ||
2642 | 57 | select * from t1; | ||
2643 | 58 | a b c d | ||
2644 | 59 | 1 1 012 NULL | ||
2645 | 60 | 2 2 0123456789 NULL | ||
2646 | 61 | 6 6 NULL 0123 | ||
2647 | 62 | 5 5 NULL 0123 | ||
2648 | 63 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2649 | 64 | insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL); | ||
2650 | 65 | select * from t1; | ||
2651 | 66 | a b c d | ||
2652 | 67 | 1 1 012 NULL | ||
2653 | 68 | 2 2 0123456789 NULL | ||
2654 | 69 | 6 6 NULL 0123 | ||
2655 | 70 | 5 5 NULL 0123 | ||
2656 | 71 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2657 | 72 | 7 7 0123 NULL | ||
2658 | 73 | 8 8 0123 NULL | ||
2659 | 74 | show table status like "t1"; | ||
2660 | 75 | Name t1 | ||
2661 | 76 | Engine MEMORY | ||
2662 | 77 | Version 10 | ||
2663 | 78 | Row_format Dynamic | ||
2664 | 79 | Rows 7 | ||
2665 | 80 | Avg_row_length X | ||
2666 | 81 | Data_length X | ||
2667 | 82 | Max_data_length X | ||
2668 | 83 | Index_length X | ||
2669 | 84 | Data_free X | ||
2670 | 85 | Auto_increment X | ||
2671 | 86 | Create_time X | ||
2672 | 87 | Update_time X | ||
2673 | 88 | Check_time X | ||
2674 | 89 | Collation latin1_swedish_ci | ||
2675 | 90 | Checksum NULL | ||
2676 | 91 | Create_options KEY_BLOCK_SIZE=24 | ||
2677 | 92 | Comment testing heaps | ||
2678 | 93 | alter table t1 key_block_size = 0; | ||
2679 | 94 | show table status like "t1"; | ||
2680 | 95 | Name t1 | ||
2681 | 96 | Engine MEMORY | ||
2682 | 97 | Version 10 | ||
2683 | 98 | Row_format Dynamic | ||
2684 | 99 | Rows 7 | ||
2685 | 100 | Avg_row_length X | ||
2686 | 101 | Data_length X | ||
2687 | 102 | Max_data_length X | ||
2688 | 103 | Index_length X | ||
2689 | 104 | Data_free X | ||
2690 | 105 | Auto_increment X | ||
2691 | 106 | Create_time X | ||
2692 | 107 | Update_time X | ||
2693 | 108 | Check_time X | ||
2694 | 109 | Collation latin1_swedish_ci | ||
2695 | 110 | Checksum NULL | ||
2696 | 111 | Create_options | ||
2697 | 112 | Comment testing heaps | ||
2698 | 113 | alter table t1 row_format = dynamic; | ||
2699 | 114 | show table status like "t1"; | ||
2700 | 115 | Name t1 | ||
2701 | 116 | Engine MEMORY | ||
2702 | 117 | Version 10 | ||
2703 | 118 | Row_format Dynamic | ||
2704 | 119 | Rows 7 | ||
2705 | 120 | Avg_row_length X | ||
2706 | 121 | Data_length X | ||
2707 | 122 | Max_data_length X | ||
2708 | 123 | Index_length X | ||
2709 | 124 | Data_free X | ||
2710 | 125 | Auto_increment X | ||
2711 | 126 | Create_time X | ||
2712 | 127 | Update_time X | ||
2713 | 128 | Check_time X | ||
2714 | 129 | Collation latin1_swedish_ci | ||
2715 | 130 | Checksum NULL | ||
2716 | 131 | Create_options row_format=DYNAMIC KEY_BLOCK_SIZE=X | ||
2717 | 132 | Comment testing heaps | ||
2718 | 133 | alter table t1 key_block_size = 128, max_rows = 10001; | ||
2719 | 134 | show table status like "t1"; | ||
2720 | 135 | Name t1 | ||
2721 | 136 | Engine MEMORY | ||
2722 | 137 | Version 10 | ||
2723 | 138 | Row_format Dynamic | ||
2724 | 139 | Rows 7 | ||
2725 | 140 | Avg_row_length X | ||
2726 | 141 | Data_length X | ||
2727 | 142 | Max_data_length X | ||
2728 | 143 | Index_length X | ||
2729 | 144 | Data_free X | ||
2730 | 145 | Auto_increment X | ||
2731 | 146 | Create_time X | ||
2732 | 147 | Update_time X | ||
2733 | 148 | Check_time X | ||
2734 | 149 | Collation latin1_swedish_ci | ||
2735 | 150 | Checksum NULL | ||
2736 | 151 | Create_options max_rows=10001 row_format=DYNAMIC KEY_BLOCK_SIZE=128 | ||
2737 | 152 | Comment testing heaps | ||
2738 | 153 | select * from t1; | ||
2739 | 154 | a b c d | ||
2740 | 155 | 1 1 012 NULL | ||
2741 | 156 | 2 2 0123456789 NULL | ||
2742 | 157 | 6 6 NULL 0123 | ||
2743 | 158 | 5 5 NULL 0123 | ||
2744 | 159 | 4 4 NULL 0123456789012345678901234567890123456789012345678901234567890123456789 | ||
2745 | 160 | 7 7 0123 NULL | ||
2746 | 161 | 8 8 0123 NULL | ||
2747 | 162 | delete from t1; | ||
2748 | 163 | select * from t1; | ||
2749 | 164 | a b c d | ||
2750 | 165 | call mtr.add_suppression("The table 't1' is full"); | ||
2751 | 166 | select count(*) from t1; | ||
2752 | 167 | count(*) | ||
2753 | 168 | 10001 | ||
2754 | 169 | insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123'); | ||
2755 | 170 | ERROR HY000: The table 't1' is full | ||
2756 | 171 | show table status like "t1"; | ||
2757 | 172 | Name t1 | ||
2758 | 173 | Engine MEMORY | ||
2759 | 174 | Version 10 | ||
2760 | 175 | Row_format Dynamic | ||
2761 | 176 | Rows 10001 | ||
2762 | 177 | Avg_row_length X | ||
2763 | 178 | Data_length X | ||
2764 | 179 | Max_data_length X | ||
2765 | 180 | Index_length X | ||
2766 | 181 | Data_free X | ||
2767 | 182 | Auto_increment X | ||
2768 | 183 | Create_time X | ||
2769 | 184 | Update_time X | ||
2770 | 185 | Check_time X | ||
2771 | 186 | Collation latin1_swedish_ci | ||
2772 | 187 | Checksum NULL | ||
2773 | 188 | Create_options max_rows=10001 row_format=DYNAMIC KEY_BLOCK_SIZE=128 | ||
2774 | 189 | Comment testing heaps | ||
2775 | 190 | select count(*) from t1; | ||
2776 | 191 | count(*) | ||
2777 | 192 | 10001 | ||
2778 | 193 | set @@session.max_heap_table_size=default; | ||
2779 | 194 | drop table t1; | ||
2780 | 195 | 0 | ||
2781 | === removed file 'mysql-test/memory_dynamic_rows.patch/percona_heap_var.test' | |||
2782 | --- mysql-test/memory_dynamic_rows.patch/percona_heap_var.test 2011-08-22 11:28:27 +0000 | |||
2783 | +++ mysql-test/memory_dynamic_rows.patch/percona_heap_var.test 1970-01-01 00:00:00 +0000 | |||
2784 | @@ -1,85 +0,0 @@ | |||
2785 | 1 | # | ||
2786 | 2 | # Test heap tables with variable-sized records. | ||
2787 | 3 | # | ||
2788 | 4 | |||
2789 | 5 | --disable_warnings | ||
2790 | 6 | drop table if exists t1; | ||
2791 | 7 | --enable_warnings | ||
2792 | 8 | |||
2793 | 9 | set @@session.max_heap_table_size=16*1024*1024; | ||
2794 | 10 | |||
2795 | 11 | --error 1234 | ||
2796 | 12 | create 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; | ||
2797 | 13 | |||
2798 | 14 | --error 1234 | ||
2799 | 15 | create 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; | ||
2800 | 16 | |||
2801 | 17 | create 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; | ||
2802 | 18 | |||
2803 | 19 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2804 | 20 | --query_vertical show table status like "t1" | ||
2805 | 21 | |||
2806 | 22 | insert into t1 values (1,1,'012',NULL), (2,2,'0123456789',NULL), (3,3,'012345678901234567890123456789',NULL), (4,4,NULL,'0123456789012345678901234567890123456789012345678901234567890123456789'); | ||
2807 | 23 | select * from t1; | ||
2808 | 24 | |||
2809 | 25 | delete from t1 where a = 3; | ||
2810 | 26 | select * from t1; | ||
2811 | 27 | |||
2812 | 28 | insert into t1 values (5,5,NULL,'0123'), (6,6,NULL,'0123'); | ||
2813 | 29 | select * from t1; | ||
2814 | 30 | |||
2815 | 31 | update t1 set c = '012345678901234567890123456789' where a = 2; | ||
2816 | 32 | select * from t1; | ||
2817 | 33 | |||
2818 | 34 | update t1 set c = '0123456789' where a = 2; | ||
2819 | 35 | select * from t1; | ||
2820 | 36 | |||
2821 | 37 | insert into t1 values (7,7,'0123',NULL), (8,8,'0123',NULL); | ||
2822 | 38 | select * from t1; | ||
2823 | 39 | |||
2824 | 40 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2825 | 41 | --query_vertical show table status like "t1" | ||
2826 | 42 | alter table t1 key_block_size = 0; | ||
2827 | 43 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2828 | 44 | --query_vertical show table status like "t1" | ||
2829 | 45 | alter table t1 row_format = dynamic; | ||
2830 | 46 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2831 | 47 | --replace_regex /KEY_BLOCK_SIZE=[[:digit:]]+/KEY_BLOCK_SIZE=X/ | ||
2832 | 48 | --query_vertical show table status like "t1" | ||
2833 | 49 | alter table t1 key_block_size = 128, max_rows = 10001; | ||
2834 | 50 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2835 | 51 | --query_vertical show table status like "t1" | ||
2836 | 52 | |||
2837 | 53 | select * from t1; | ||
2838 | 54 | |||
2839 | 55 | delete from t1; | ||
2840 | 56 | select * from t1; | ||
2841 | 57 | |||
2842 | 58 | let $1=10001; | ||
2843 | 59 | |||
2844 | 60 | call mtr.add_suppression("The table 't1' is full"); | ||
2845 | 61 | |||
2846 | 62 | disable_query_log; | ||
2847 | 63 | |||
2848 | 64 | while ($1) | ||
2849 | 65 | { | ||
2850 | 66 | |||
2851 | 67 | eval insert into t1 values ($1,$1,$1,$1); | ||
2852 | 68 | |||
2853 | 69 | dec $1; | ||
2854 | 70 | |||
2855 | 71 | } | ||
2856 | 72 | enable_query_log; | ||
2857 | 73 | |||
2858 | 74 | select count(*) from t1; | ||
2859 | 75 | |||
2860 | 76 | --error 1114 | ||
2861 | 77 | insert into t1 values (100000,100000,NULL,'0123'), (100000,100000,NULL,'0123'); | ||
2862 | 78 | |||
2863 | 79 | --replace_column 6 X 7 X 8 X 9 X 10 X 11 X 12 X 13 X 14 X | ||
2864 | 80 | --query_vertical show table status like "t1" | ||
2865 | 81 | select count(*) from t1; | ||
2866 | 82 | |||
2867 | 83 | set @@session.max_heap_table_size=default; | ||
2868 | 84 | |||
2869 | 85 | drop table t1; | ||
2870 | 86 | 0 | ||
2871 | === removed file 'mysql-test/percona_innodb_buffer_pool_shm-master.opt' | |||
2872 | --- mysql-test/percona_innodb_buffer_pool_shm-master.opt 2010-12-09 18:30:58 +0000 | |||
2873 | +++ mysql-test/percona_innodb_buffer_pool_shm-master.opt 1970-01-01 00:00:00 +0000 | |||
2874 | @@ -1,1 +0,0 @@ | |||
2875 | 1 | --innodb_buffer_pool_shm_key=123456 | ||
2876 | 2 | 0 | ||
2877 | === removed file 'mysql-test/percona_innodb_buffer_pool_shm.result' | |||
2878 | --- mysql-test/percona_innodb_buffer_pool_shm.result 2011-06-22 02:59:28 +0000 | |||
2879 | +++ mysql-test/percona_innodb_buffer_pool_shm.result 1970-01-01 00:00:00 +0000 | |||
2880 | @@ -1,4 +0,0 @@ | |||
2881 | 1 | show variables like 'innodb_buffer_pool_shm%'; | ||
2882 | 2 | Variable_name Value | ||
2883 | 3 | innodb_buffer_pool_shm_checksum ON | ||
2884 | 4 | innodb_buffer_pool_shm_key 123456 | ||
2885 | 5 | 0 | ||
2886 | === removed file 'mysql-test/percona_innodb_buffer_pool_shm.test' | |||
2887 | --- mysql-test/percona_innodb_buffer_pool_shm.test 2011-06-22 02:59:28 +0000 | |||
2888 | +++ mysql-test/percona_innodb_buffer_pool_shm.test 1970-01-01 00:00:00 +0000 | |||
2889 | @@ -1,2 +0,0 @@ | |||
2890 | 1 | --source include/have_innodb.inc | ||
2891 | 2 | show variables like 'innodb_buffer_pool_shm%'; | ||
2892 | 3 | 0 | ||
2893 | === removed file 'mysql-test/percona_innodb_doublewrite_file-master.opt' | |||
2894 | --- mysql-test/percona_innodb_doublewrite_file-master.opt 2010-12-09 18:30:58 +0000 | |||
2895 | +++ mysql-test/percona_innodb_doublewrite_file-master.opt 1970-01-01 00:00:00 +0000 | |||
2896 | @@ -1,1 +0,0 @@ | |||
2897 | 1 | --innodb_doublewrite_file=ib_doublewrite | ||
2898 | 2 | 0 | ||
2899 | === removed file 'mysql-test/percona_innodb_doublewrite_file.result' | |||
2900 | --- mysql-test/percona_innodb_doublewrite_file.result 2010-12-09 18:30:58 +0000 | |||
2901 | +++ mysql-test/percona_innodb_doublewrite_file.result 1970-01-01 00:00:00 +0000 | |||
2902 | @@ -1,4 +0,0 @@ | |||
2903 | 1 | show variables like 'innodb_doublewrite%'; | ||
2904 | 2 | Variable_name Value | ||
2905 | 3 | innodb_doublewrite ON | ||
2906 | 4 | innodb_doublewrite_file ib_doublewrite | ||
2907 | 5 | 0 | ||
2908 | === removed file 'mysql-test/percona_innodb_doublewrite_file.test' | |||
2909 | --- mysql-test/percona_innodb_doublewrite_file.test 2010-12-09 18:30:58 +0000 | |||
2910 | +++ mysql-test/percona_innodb_doublewrite_file.test 1970-01-01 00:00:00 +0000 | |||
2911 | @@ -1,2 +0,0 @@ | |||
2912 | 1 | --source include/have_innodb.inc | ||
2913 | 2 | show variables like 'innodb_doublewrite%'; | ||
2914 | 3 | 0 | ||
2915 | === removed file 'mysql-test/percona_innodb_use_sys_stats_table-master.opt' | |||
2916 | --- mysql-test/percona_innodb_use_sys_stats_table-master.opt 2010-12-09 18:30:58 +0000 | |||
2917 | +++ mysql-test/percona_innodb_use_sys_stats_table-master.opt 1970-01-01 00:00:00 +0000 | |||
2918 | @@ -1,1 +0,0 @@ | |||
2919 | 1 | --innodb_use_sys_stats_table | ||
2920 | 2 | 0 | ||
2921 | === removed file 'mysql-test/percona_innodb_use_sys_stats_table.result' | |||
2922 | --- mysql-test/percona_innodb_use_sys_stats_table.result 2010-12-09 18:30:58 +0000 | |||
2923 | +++ mysql-test/percona_innodb_use_sys_stats_table.result 1970-01-01 00:00:00 +0000 | |||
2924 | @@ -1,3 +0,0 @@ | |||
2925 | 1 | show variables like 'innodb_use_sys_stats%'; | ||
2926 | 2 | Variable_name Value | ||
2927 | 3 | innodb_use_sys_stats_table ON | ||
2928 | 4 | 0 | ||
2929 | === removed file 'mysql-test/percona_innodb_use_sys_stats_table.test' | |||
2930 | --- mysql-test/percona_innodb_use_sys_stats_table.test 2010-12-09 18:30:58 +0000 | |||
2931 | +++ mysql-test/percona_innodb_use_sys_stats_table.test 1970-01-01 00:00:00 +0000 | |||
2932 | @@ -1,2 +0,0 @@ | |||
2933 | 1 | --source include/have_innodb.inc | ||
2934 | 2 | show variables like 'innodb_use_sys_stats%'; | ||
2935 | 3 | 0 | ||
2936 | === removed file 'mysql-test/percona_server_variables.inc' | |||
2937 | --- mysql-test/percona_server_variables.inc 2011-06-23 02:11:07 +0000 | |||
2938 | +++ mysql-test/percona_server_variables.inc 1970-01-01 00:00:00 +0000 | |||
2939 | @@ -1,3 +0,0 @@ | |||
2940 | 1 | --source include/have_response_time_distribution.inc | ||
2941 | 2 | --source include/have_innodb.inc | ||
2942 | 3 | SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1; | ||
2943 | 4 | 0 | ||
2944 | === removed file 'mysql-test/percona_server_variables_debug.result' | |||
2945 | --- mysql-test/percona_server_variables_debug.result 2011-08-04 23:23:45 +0000 | |||
2946 | +++ mysql-test/percona_server_variables_debug.result 1970-01-01 00:00:00 +0000 | |||
2947 | @@ -1,372 +0,0 @@ | |||
2948 | 1 | SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1; | ||
2949 | 2 | Variable_name | ||
2950 | 3 | AUTOCOMMIT | ||
2951 | 4 | AUTOMATIC_SP_PRIVILEGES | ||
2952 | 5 | AUTO_INCREMENT_INCREMENT | ||
2953 | 6 | AUTO_INCREMENT_OFFSET | ||
2954 | 7 | BACK_LOG | ||
2955 | 8 | BASEDIR | ||
2956 | 9 | BIG_TABLES | ||
2957 | 10 | BINLOG_CACHE_SIZE | ||
2958 | 11 | BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES | ||
2959 | 12 | BINLOG_FORMAT | ||
2960 | 13 | BINLOG_STMT_CACHE_SIZE | ||
2961 | 14 | BULK_INSERT_BUFFER_SIZE | ||
2962 | 15 | CHARACTER_SETS_DIR | ||
2963 | 16 | CHARACTER_SET_CLIENT | ||
2964 | 17 | CHARACTER_SET_CONNECTION | ||
2965 | 18 | CHARACTER_SET_DATABASE | ||
2966 | 19 | CHARACTER_SET_FILESYSTEM | ||
2967 | 20 | CHARACTER_SET_RESULTS | ||
2968 | 21 | CHARACTER_SET_SERVER | ||
2969 | 22 | CHARACTER_SET_SYSTEM | ||
2970 | 23 | COLLATION_CONNECTION | ||
2971 | 24 | COLLATION_DATABASE | ||
2972 | 25 | COLLATION_SERVER | ||
2973 | 26 | COMPLETION_TYPE | ||
2974 | 27 | CONCURRENT_INSERT | ||
2975 | 28 | CONNECT_TIMEOUT | ||
2976 | 29 | DATADIR | ||
2977 | 30 | DATETIME_FORMAT | ||
2978 | 31 | DATE_FORMAT | ||
2979 | 32 | DEBUG | ||
2980 | 33 | DEBUG_SYNC | ||
2981 | 34 | DEFAULT_STORAGE_ENGINE | ||
2982 | 35 | DEFAULT_WEEK_FORMAT | ||
2983 | 36 | DELAYED_INSERT_LIMIT | ||
2984 | 37 | DELAYED_INSERT_TIMEOUT | ||
2985 | 38 | DELAYED_QUEUE_SIZE | ||
2986 | 39 | DELAY_KEY_WRITE | ||
2987 | 40 | DIV_PRECISION_INCREMENT | ||
2988 | 41 | ENGINE_CONDITION_PUSHDOWN | ||
2989 | 42 | ERROR_COUNT | ||
2990 | 43 | EVENT_SCHEDULER | ||
2991 | 44 | EXPIRE_LOGS_DAYS | ||
2992 | 45 | EXTERNAL_USER | ||
2993 | 46 | FAST_INDEX_CREATION | ||
2994 | 47 | FLUSH | ||
2995 | 48 | FLUSH_TIME | ||
2996 | 49 | FOREIGN_KEY_CHECKS | ||
2997 | 50 | FT_BOOLEAN_SYNTAX | ||
2998 | 51 | FT_MAX_WORD_LEN | ||
2999 | 52 | FT_MIN_WORD_LEN | ||
3000 | 53 | FT_QUERY_EXPANSION_LIMIT | ||
3001 | 54 | FT_STOPWORD_FILE | ||
3002 | 55 | GENERAL_LOG | ||
3003 | 56 | GENERAL_LOG_FILE | ||
3004 | 57 | GROUP_CONCAT_MAX_LEN | ||
3005 | 58 | HAVE_COMPRESS | ||
3006 | 59 | HAVE_CRYPT | ||
3007 | 60 | HAVE_CSV | ||
3008 | 61 | HAVE_DYNAMIC_LOADING | ||
3009 | 62 | HAVE_GEOMETRY | ||
3010 | 63 | HAVE_INNODB | ||
3011 | 64 | HAVE_NDBCLUSTER | ||
3012 | 65 | HAVE_OPENSSL | ||
3013 | 66 | HAVE_PARTITIONING | ||
3014 | 67 | HAVE_PROFILING | ||
3015 | 68 | HAVE_QUERY_CACHE | ||
3016 | 69 | HAVE_RESPONSE_TIME_DISTRIBUTION | ||
3017 | 70 | HAVE_RTREE_KEYS | ||
3018 | 71 | HAVE_SSL | ||
3019 | 72 | HAVE_SYMLINK | ||
3020 | 73 | HOSTNAME | ||
3021 | 74 | IDENTITY | ||
3022 | 75 | IGNORE_BUILTIN_INNODB | ||
3023 | 76 | INIT_CONNECT | ||
3024 | 77 | INIT_FILE | ||
3025 | 78 | INIT_SLAVE | ||
3026 | 79 | INNODB_ADAPTIVE_FLUSHING | ||
3027 | 80 | INNODB_ADAPTIVE_FLUSHING_METHOD | ||
3028 | 81 | INNODB_ADAPTIVE_HASH_INDEX | ||
3029 | 82 | INNODB_ADAPTIVE_HASH_INDEX_PARTITIONS | ||
3030 | 83 | INNODB_ADDITIONAL_MEM_POOL_SIZE | ||
3031 | 84 | INNODB_AUTOEXTEND_INCREMENT | ||
3032 | 85 | INNODB_AUTOINC_LOCK_MODE | ||
3033 | 86 | INNODB_BUFFER_POOL_INSTANCES | ||
3034 | 87 | INNODB_BUFFER_POOL_RESTORE_AT_STARTUP | ||
3035 | 88 | INNODB_BUFFER_POOL_SHM_CHECKSUM | ||
3036 | 89 | INNODB_BUFFER_POOL_SHM_KEY | ||
3037 | 90 | INNODB_BUFFER_POOL_SIZE | ||
3038 | 91 | INNODB_CHANGE_BUFFERING | ||
3039 | 92 | INNODB_CHANGE_BUFFERING_DEBUG | ||
3040 | 93 | INNODB_CHECKPOINT_AGE_TARGET | ||
3041 | 94 | INNODB_CHECKSUMS | ||
3042 | 95 | INNODB_COMMIT_CONCURRENCY | ||
3043 | 96 | INNODB_CONCURRENCY_TICKETS | ||
3044 | 97 | INNODB_CORRUPT_TABLE_ACTION | ||
3045 | 98 | INNODB_DATA_FILE_PATH | ||
3046 | 99 | INNODB_DATA_HOME_DIR | ||
3047 | 100 | INNODB_DICT_SIZE_LIMIT | ||
3048 | 101 | INNODB_DOUBLEWRITE | ||
3049 | 102 | INNODB_DOUBLEWRITE_FILE | ||
3050 | 103 | INNODB_FAST_CHECKSUM | ||
3051 | 104 | INNODB_FAST_SHUTDOWN | ||
3052 | 105 | INNODB_FILE_FORMAT | ||
3053 | 106 | INNODB_FILE_FORMAT_CHECK | ||
3054 | 107 | INNODB_FILE_FORMAT_MAX | ||
3055 | 108 | INNODB_FILE_PER_TABLE | ||
3056 | 109 | INNODB_FLUSH_LOG_AT_TRX_COMMIT | ||
3057 | 110 | INNODB_FLUSH_METHOD | ||
3058 | 111 | INNODB_FLUSH_NEIGHBOR_PAGES | ||
3059 | 112 | INNODB_FORCE_RECOVERY | ||
3060 | 113 | INNODB_IBUF_ACCEL_RATE | ||
3061 | 114 | INNODB_IBUF_ACTIVE_CONTRACT | ||
3062 | 115 | INNODB_IBUF_MAX_SIZE | ||
3063 | 116 | INNODB_IMPORT_TABLE_FROM_XTRABACKUP | ||
3064 | 117 | INNODB_IO_CAPACITY | ||
3065 | 118 | INNODB_LARGE_PREFIX | ||
3066 | 119 | INNODB_LAZY_DROP_TABLE | ||
3067 | 120 | INNODB_LOCKS_UNSAFE_FOR_BINLOG | ||
3068 | 121 | INNODB_LOCK_WAIT_TIMEOUT | ||
3069 | 122 | INNODB_LOG_BLOCK_SIZE | ||
3070 | 123 | INNODB_LOG_BUFFER_SIZE | ||
3071 | 124 | INNODB_LOG_FILES_IN_GROUP | ||
3072 | 125 | INNODB_LOG_FILE_SIZE | ||
3073 | 126 | INNODB_LOG_GROUP_HOME_DIR | ||
3074 | 127 | INNODB_MAX_DIRTY_PAGES_PCT | ||
3075 | 128 | INNODB_MAX_PURGE_LAG | ||
3076 | 129 | INNODB_MIRRORED_LOG_GROUPS | ||
3077 | 130 | INNODB_OLD_BLOCKS_PCT | ||
3078 | 131 | INNODB_OLD_BLOCKS_TIME | ||
3079 | 132 | INNODB_OPEN_FILES | ||
3080 | 133 | INNODB_PAGE_SIZE | ||
3081 | 134 | INNODB_PURGE_BATCH_SIZE | ||
3082 | 135 | INNODB_PURGE_THREADS | ||
3083 | 136 | INNODB_READ_AHEAD | ||
3084 | 137 | INNODB_READ_AHEAD_THRESHOLD | ||
3085 | 138 | INNODB_READ_IO_THREADS | ||
3086 | 139 | INNODB_RECOVERY_STATS | ||
3087 | 140 | INNODB_RECOVERY_UPDATE_RELAY_LOG | ||
3088 | 141 | INNODB_REPLICATION_DELAY | ||
3089 | 142 | INNODB_ROLLBACK_ON_TIMEOUT | ||
3090 | 143 | INNODB_ROLLBACK_SEGMENTS | ||
3091 | 144 | INNODB_SHOW_LOCKS_HELD | ||
3092 | 145 | INNODB_SHOW_VERBOSE_LOCKS | ||
3093 | 146 | INNODB_SPIN_WAIT_DELAY | ||
3094 | 147 | INNODB_STATS_AUTO_UPDATE | ||
3095 | 148 | INNODB_STATS_METHOD | ||
3096 | 149 | INNODB_STATS_ON_METADATA | ||
3097 | 150 | INNODB_STATS_SAMPLE_PAGES | ||
3098 | 151 | INNODB_STATS_UPDATE_NEED_LOCK | ||
3099 | 152 | INNODB_STRICT_MODE | ||
3100 | 153 | INNODB_SUPPORT_XA | ||
3101 | 154 | INNODB_SYNC_SPIN_LOOPS | ||
3102 | 155 | INNODB_TABLE_LOCKS | ||
3103 | 156 | INNODB_THREAD_CONCURRENCY | ||
3104 | 157 | INNODB_THREAD_CONCURRENCY_TIMER_BASED | ||
3105 | 158 | INNODB_THREAD_SLEEP_DELAY | ||
3106 | 159 | INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT | ||
3107 | 160 | INNODB_USE_NATIVE_AIO | ||
3108 | 161 | INNODB_USE_SYS_MALLOC | ||
3109 | 162 | INNODB_USE_SYS_STATS_TABLE | ||
3110 | 163 | INNODB_VERSION | ||
3111 | 164 | INNODB_WRITE_IO_THREADS | ||
3112 | 165 | INSERT_ID | ||
3113 | 166 | INTERACTIVE_TIMEOUT | ||
3114 | 167 | JOIN_BUFFER_SIZE | ||
3115 | 168 | KEEP_FILES_ON_CREATE | ||
3116 | 169 | KEY_BUFFER_SIZE | ||
3117 | 170 | KEY_CACHE_AGE_THRESHOLD | ||
3118 | 171 | KEY_CACHE_BLOCK_SIZE | ||
3119 | 172 | KEY_CACHE_DIVISION_LIMIT | ||
3120 | 173 | LARGE_FILES_SUPPORT | ||
3121 | 174 | LARGE_PAGES | ||
3122 | 175 | LARGE_PAGE_SIZE | ||
3123 | 176 | LAST_INSERT_ID | ||
3124 | 177 | LC_MESSAGES | ||
3125 | 178 | LC_MESSAGES_DIR | ||
3126 | 179 | LC_TIME_NAMES | ||
3127 | 180 | LICENSE | ||
3128 | 181 | LOCAL_INFILE | ||
3129 | 182 | LOCKED_IN_MEMORY | ||
3130 | 183 | LOCK_WAIT_TIMEOUT | ||
3131 | 184 | LOG | ||
3132 | 185 | LOG_BIN | ||
3133 | 186 | LOG_BIN_TRUST_FUNCTION_CREATORS | ||
3134 | 187 | LOG_ERROR | ||
3135 | 188 | LOG_OUTPUT | ||
3136 | 189 | LOG_QUERIES_NOT_USING_INDEXES | ||
3137 | 190 | LOG_SLAVE_UPDATES | ||
3138 | 191 | LOG_SLOW_FILTER | ||
3139 | 192 | LOG_SLOW_QUERIES | ||
3140 | 193 | LOG_SLOW_RATE_LIMIT | ||
3141 | 194 | LOG_SLOW_SLAVE_STATEMENTS | ||
3142 | 195 | LOG_SLOW_SP_STATEMENTS | ||
3143 | 196 | LOG_SLOW_VERBOSITY | ||
3144 | 197 | LOG_WARNINGS | ||
3145 | 198 | LOG_WARNINGS_SUPPRESS | ||
3146 | 199 | LONG_QUERY_TIME | ||
3147 | 200 | LOWER_CASE_FILE_SYSTEM | ||
3148 | 201 | LOWER_CASE_TABLE_NAMES | ||
3149 | 202 | LOW_PRIORITY_UPDATES | ||
3150 | 203 | MAX_ALLOWED_PACKET | ||
3151 | 204 | MAX_BINLOG_CACHE_SIZE | ||
3152 | 205 | MAX_BINLOG_SIZE | ||
3153 | 206 | MAX_BINLOG_STMT_CACHE_SIZE | ||
3154 | 207 | MAX_CONNECTIONS | ||
3155 | 208 | MAX_CONNECT_ERRORS | ||
3156 | 209 | MAX_DELAYED_THREADS | ||
3157 | 210 | MAX_ERROR_COUNT | ||
3158 | 211 | MAX_HEAP_TABLE_SIZE | ||
3159 | 212 | MAX_INSERT_DELAYED_THREADS | ||
3160 | 213 | MAX_JOIN_SIZE | ||
3161 | 214 | MAX_LENGTH_FOR_SORT_DATA | ||
3162 | 215 | MAX_LONG_DATA_SIZE | ||
3163 | 216 | MAX_PREPARED_STMT_COUNT | ||
3164 | 217 | MAX_RELAY_LOG_SIZE | ||
3165 | 218 | MAX_SEEKS_FOR_KEY | ||
3166 | 219 | MAX_SORT_LENGTH | ||
3167 | 220 | MAX_SP_RECURSION_DEPTH | ||
3168 | 221 | MAX_TMP_TABLES | ||
3169 | 222 | MAX_USER_CONNECTIONS | ||
3170 | 223 | MAX_WRITE_LOCK_COUNT | ||
3171 | 224 | MIN_EXAMINED_ROW_LIMIT | ||
3172 | 225 | MULTI_RANGE_COUNT | ||
3173 | 226 | MYISAM_DATA_POINTER_SIZE | ||
3174 | 227 | MYISAM_MAX_SORT_FILE_SIZE | ||
3175 | 228 | MYISAM_MMAP_SIZE | ||
3176 | 229 | MYISAM_RECOVER_OPTIONS | ||
3177 | 230 | MYISAM_REPAIR_THREADS | ||
3178 | 231 | MYISAM_SORT_BUFFER_SIZE | ||
3179 | 232 | MYISAM_STATS_METHOD | ||
3180 | 233 | MYISAM_USE_MMAP | ||
3181 | 234 | NET_BUFFER_LENGTH | ||
3182 | 235 | NET_READ_TIMEOUT | ||
3183 | 236 | NET_RETRY_COUNT | ||
3184 | 237 | NET_WRITE_TIMEOUT | ||
3185 | 238 | NEW | ||
3186 | 239 | OLD | ||
3187 | 240 | OLD_ALTER_TABLE | ||
3188 | 241 | OLD_PASSWORDS | ||
3189 | 242 | OPEN_FILES_LIMIT | ||
3190 | 243 | OPTIMIZER_FIX | ||
3191 | 244 | OPTIMIZER_PRUNE_LEVEL | ||
3192 | 245 | OPTIMIZER_SEARCH_DEPTH | ||
3193 | 246 | OPTIMIZER_SWITCH | ||
3194 | 247 | PERFORMANCE_SCHEMA | ||
3195 | 248 | PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE | ||
3196 | 249 | PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE | ||
3197 | 250 | PERFORMANCE_SCHEMA_MAX_COND_CLASSES | ||
3198 | 251 | PERFORMANCE_SCHEMA_MAX_COND_INSTANCES | ||
3199 | 252 | PERFORMANCE_SCHEMA_MAX_FILE_CLASSES | ||
3200 | 253 | PERFORMANCE_SCHEMA_MAX_FILE_HANDLES | ||
3201 | 254 | PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES | ||
3202 | 255 | PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES | ||
3203 | 256 | PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES | ||
3204 | 257 | PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES | ||
3205 | 258 | PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES | ||
3206 | 259 | PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES | ||
3207 | 260 | PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES | ||
3208 | 261 | PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES | ||
3209 | 262 | PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES | ||
3210 | 263 | PID_FILE | ||
3211 | 264 | PLUGIN_DIR | ||
3212 | 265 | PORT | ||
3213 | 266 | PRELOAD_BUFFER_SIZE | ||
3214 | 267 | PROFILING | ||
3215 | 268 | PROFILING_HISTORY_SIZE | ||
3216 | 269 | PROTOCOL_VERSION | ||
3217 | 270 | PROXY_USER | ||
3218 | 271 | PSEUDO_THREAD_ID | ||
3219 | 272 | QUERY_ALLOC_BLOCK_SIZE | ||
3220 | 273 | QUERY_CACHE_LIMIT | ||
3221 | 274 | QUERY_CACHE_MIN_RES_UNIT | ||
3222 | 275 | QUERY_CACHE_SIZE | ||
3223 | 276 | QUERY_CACHE_STRIP_COMMENTS | ||
3224 | 277 | QUERY_CACHE_TYPE | ||
3225 | 278 | QUERY_CACHE_WLOCK_INVALIDATE | ||
3226 | 279 | QUERY_PREALLOC_SIZE | ||
3227 | 280 | QUERY_RESPONSE_TIME_RANGE_BASE | ||
3228 | 281 | QUERY_RESPONSE_TIME_STATS | ||
3229 | 282 | RAND_SEED1 | ||
3230 | 283 | RAND_SEED2 | ||
3231 | 284 | RANGE_ALLOC_BLOCK_SIZE | ||
3232 | 285 | READ_BUFFER_SIZE | ||
3233 | 286 | READ_ONLY | ||
3234 | 287 | READ_RND_BUFFER_SIZE | ||
3235 | 288 | RELAY_LOG | ||
3236 | 289 | RELAY_LOG_INDEX | ||
3237 | 290 | RELAY_LOG_INFO_FILE | ||
3238 | 291 | RELAY_LOG_PURGE | ||
3239 | 292 | RELAY_LOG_RECOVERY | ||
3240 | 293 | RELAY_LOG_SPACE_LIMIT | ||
3241 | 294 | REPORT_HOST | ||
3242 | 295 | REPORT_PASSWORD | ||
3243 | 296 | REPORT_PORT | ||
3244 | 297 | REPORT_USER | ||
3245 | 298 | RPL_RECOVERY_RANK | ||
3246 | 299 | SECURE_AUTH | ||
3247 | 300 | SECURE_FILE_PRIV | ||
3248 | 301 | SERVER_ID | ||
3249 | 302 | SKIP_EXTERNAL_LOCKING | ||
3250 | 303 | SKIP_NAME_RESOLVE | ||
3251 | 304 | SKIP_NETWORKING | ||
3252 | 305 | SKIP_SHOW_DATABASE | ||
3253 | 306 | SLAVE_COMPRESSED_PROTOCOL | ||
3254 | 307 | SLAVE_EXEC_MODE | ||
3255 | 308 | SLAVE_LOAD_TMPDIR | ||
3256 | 309 | SLAVE_NET_TIMEOUT | ||
3257 | 310 | SLAVE_SKIP_ERRORS | ||
3258 | 311 | SLAVE_TRANSACTION_RETRIES | ||
3259 | 312 | SLAVE_TYPE_CONVERSIONS | ||
3260 | 313 | SLOW_LAUNCH_TIME | ||
3261 | 314 | SLOW_QUERY_LOG | ||
3262 | 315 | SLOW_QUERY_LOG_FILE | ||
3263 | 316 | SLOW_QUERY_LOG_TIMESTAMP_ALWAYS | ||
3264 | 317 | SLOW_QUERY_LOG_TIMESTAMP_PRECISION | ||
3265 | 318 | SLOW_QUERY_LOG_USE_GLOBAL_CONTROL | ||
3266 | 319 | SOCKET | ||
3267 | 320 | SORT_BUFFER_SIZE | ||
3268 | 321 | SQL_AUTO_IS_NULL | ||
3269 | 322 | SQL_BIG_SELECTS | ||
3270 | 323 | SQL_BIG_TABLES | ||
3271 | 324 | SQL_BUFFER_RESULT | ||
3272 | 325 | SQL_LOG_BIN | ||
3273 | 326 | SQL_LOG_OFF | ||
3274 | 327 | SQL_LOW_PRIORITY_UPDATES | ||
3275 | 328 | SQL_MAX_JOIN_SIZE | ||
3276 | 329 | SQL_MODE | ||
3277 | 330 | SQL_NOTES | ||
3278 | 331 | SQL_QUOTE_SHOW_CREATE | ||
3279 | 332 | SQL_SAFE_UPDATES | ||
3280 | 333 | SQL_SELECT_LIMIT | ||
3281 | 334 | SQL_SLAVE_SKIP_COUNTER | ||
3282 | 335 | SQL_WARNINGS | ||
3283 | 336 | SSL_CA | ||
3284 | 337 | SSL_CAPATH | ||
3285 | 338 | SSL_CERT | ||
3286 | 339 | SSL_CIPHER | ||
3287 | 340 | SSL_KEY | ||
3288 | 341 | STORAGE_ENGINE | ||
3289 | 342 | SYNC_BINLOG | ||
3290 | 343 | SYNC_FRM | ||
3291 | 344 | SYNC_MASTER_INFO | ||
3292 | 345 | SYNC_RELAY_LOG | ||
3293 | 346 | SYNC_RELAY_LOG_INFO | ||
3294 | 347 | SYSTEM_TIME_ZONE | ||
3295 | 348 | TABLE_DEFINITION_CACHE | ||
3296 | 349 | TABLE_OPEN_CACHE | ||
3297 | 350 | THREAD_CACHE_SIZE | ||
3298 | 351 | THREAD_CONCURRENCY | ||
3299 | 352 | THREAD_HANDLING | ||
3300 | 353 | THREAD_STACK | ||
3301 | 354 | THREAD_STATISTICS | ||
3302 | 355 | TIMED_MUTEXES | ||
3303 | 356 | TIMESTAMP | ||
3304 | 357 | TIME_FORMAT | ||
3305 | 358 | TIME_ZONE | ||
3306 | 359 | TMPDIR | ||
3307 | 360 | TMP_TABLE_SIZE | ||
3308 | 361 | TRANSACTION_ALLOC_BLOCK_SIZE | ||
3309 | 362 | TRANSACTION_PREALLOC_SIZE | ||
3310 | 363 | TX_ISOLATION | ||
3311 | 364 | UNIQUE_CHECKS | ||
3312 | 365 | UPDATABLE_VIEWS_WITH_LIMIT | ||
3313 | 366 | USERSTAT | ||
3314 | 367 | VERSION | ||
3315 | 368 | VERSION_COMMENT | ||
3316 | 369 | VERSION_COMPILE_MACHINE | ||
3317 | 370 | VERSION_COMPILE_OS | ||
3318 | 371 | WAIT_TIMEOUT | ||
3319 | 372 | WARNING_COUNT | ||
3320 | 373 | 0 | ||
3321 | === removed file 'mysql-test/percona_server_variables_debug.test' | |||
3322 | --- mysql-test/percona_server_variables_debug.test 2011-06-23 02:11:07 +0000 | |||
3323 | +++ mysql-test/percona_server_variables_debug.test 1970-01-01 00:00:00 +0000 | |||
3324 | @@ -1,2 +0,0 @@ | |||
3325 | 1 | --source include/have_debug.inc | ||
3326 | 2 | --source include/percona_server_variables.inc | ||
3327 | 3 | 0 | ||
3328 | === removed file 'mysql-test/percona_server_variables_release.result' | |||
3329 | --- mysql-test/percona_server_variables_release.result 2011-08-04 19:16:18 +0000 | |||
3330 | +++ mysql-test/percona_server_variables_release.result 1970-01-01 00:00:00 +0000 | |||
3331 | @@ -1,369 +0,0 @@ | |||
3332 | 1 | SELECT Variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES ORDER BY 1; | ||
3333 | 2 | Variable_name | ||
3334 | 3 | AUTOCOMMIT | ||
3335 | 4 | AUTOMATIC_SP_PRIVILEGES | ||
3336 | 5 | AUTO_INCREMENT_INCREMENT | ||
3337 | 6 | AUTO_INCREMENT_OFFSET | ||
3338 | 7 | BACK_LOG | ||
3339 | 8 | BASEDIR | ||
3340 | 9 | BIG_TABLES | ||
3341 | 10 | BINLOG_CACHE_SIZE | ||
3342 | 11 | BINLOG_DIRECT_NON_TRANSACTIONAL_UPDATES | ||
3343 | 12 | BINLOG_FORMAT | ||
3344 | 13 | BINLOG_STMT_CACHE_SIZE | ||
3345 | 14 | BULK_INSERT_BUFFER_SIZE | ||
3346 | 15 | CHARACTER_SETS_DIR | ||
3347 | 16 | CHARACTER_SET_CLIENT | ||
3348 | 17 | CHARACTER_SET_CONNECTION | ||
3349 | 18 | CHARACTER_SET_DATABASE | ||
3350 | 19 | CHARACTER_SET_FILESYSTEM | ||
3351 | 20 | CHARACTER_SET_RESULTS | ||
3352 | 21 | CHARACTER_SET_SERVER | ||
3353 | 22 | CHARACTER_SET_SYSTEM | ||
3354 | 23 | COLLATION_CONNECTION | ||
3355 | 24 | COLLATION_DATABASE | ||
3356 | 25 | COLLATION_SERVER | ||
3357 | 26 | COMPLETION_TYPE | ||
3358 | 27 | CONCURRENT_INSERT | ||
3359 | 28 | CONNECT_TIMEOUT | ||
3360 | 29 | DATADIR | ||
3361 | 30 | DATETIME_FORMAT | ||
3362 | 31 | DATE_FORMAT | ||
3363 | 32 | DEFAULT_STORAGE_ENGINE | ||
3364 | 33 | DEFAULT_WEEK_FORMAT | ||
3365 | 34 | DELAYED_INSERT_LIMIT | ||
3366 | 35 | DELAYED_INSERT_TIMEOUT | ||
3367 | 36 | DELAYED_QUEUE_SIZE | ||
3368 | 37 | DELAY_KEY_WRITE | ||
3369 | 38 | DIV_PRECISION_INCREMENT | ||
3370 | 39 | ENGINE_CONDITION_PUSHDOWN | ||
3371 | 40 | ERROR_COUNT | ||
3372 | 41 | EVENT_SCHEDULER | ||
3373 | 42 | EXPIRE_LOGS_DAYS | ||
3374 | 43 | EXTERNAL_USER | ||
3375 | 44 | FAST_INDEX_CREATION | ||
3376 | 45 | FLUSH | ||
3377 | 46 | FLUSH_TIME | ||
3378 | 47 | FOREIGN_KEY_CHECKS | ||
3379 | 48 | FT_BOOLEAN_SYNTAX | ||
3380 | 49 | FT_MAX_WORD_LEN | ||
3381 | 50 | FT_MIN_WORD_LEN | ||
3382 | 51 | FT_QUERY_EXPANSION_LIMIT | ||
3383 | 52 | FT_STOPWORD_FILE | ||
3384 | 53 | GENERAL_LOG | ||
3385 | 54 | GENERAL_LOG_FILE | ||
3386 | 55 | GROUP_CONCAT_MAX_LEN | ||
3387 | 56 | HAVE_COMPRESS | ||
3388 | 57 | HAVE_CRYPT | ||
3389 | 58 | HAVE_CSV | ||
3390 | 59 | HAVE_DYNAMIC_LOADING | ||
3391 | 60 | HAVE_GEOMETRY | ||
3392 | 61 | HAVE_INNODB | ||
3393 | 62 | HAVE_NDBCLUSTER | ||
3394 | 63 | HAVE_OPENSSL | ||
3395 | 64 | HAVE_PARTITIONING | ||
3396 | 65 | HAVE_PROFILING | ||
3397 | 66 | HAVE_QUERY_CACHE | ||
3398 | 67 | HAVE_RESPONSE_TIME_DISTRIBUTION | ||
3399 | 68 | HAVE_RTREE_KEYS | ||
3400 | 69 | HAVE_SSL | ||
3401 | 70 | HAVE_SYMLINK | ||
3402 | 71 | HOSTNAME | ||
3403 | 72 | IDENTITY | ||
3404 | 73 | IGNORE_BUILTIN_INNODB | ||
3405 | 74 | INIT_CONNECT | ||
3406 | 75 | INIT_FILE | ||
3407 | 76 | INIT_SLAVE | ||
3408 | 77 | INNODB_ADAPTIVE_FLUSHING | ||
3409 | 78 | INNODB_ADAPTIVE_FLUSHING_METHOD | ||
3410 | 79 | INNODB_ADAPTIVE_HASH_INDEX | ||
3411 | 80 | INNODB_ADAPTIVE_HASH_INDEX_PARTITIONS | ||
3412 | 81 | INNODB_ADDITIONAL_MEM_POOL_SIZE | ||
3413 | 82 | INNODB_AUTOEXTEND_INCREMENT | ||
3414 | 83 | INNODB_AUTOINC_LOCK_MODE | ||
3415 | 84 | INNODB_BUFFER_POOL_INSTANCES | ||
3416 | 85 | INNODB_BUFFER_POOL_RESTORE_AT_STARTUP | ||
3417 | 86 | INNODB_BUFFER_POOL_SHM_CHECKSUM | ||
3418 | 87 | INNODB_BUFFER_POOL_SHM_KEY | ||
3419 | 88 | INNODB_BUFFER_POOL_SIZE | ||
3420 | 89 | INNODB_CHANGE_BUFFERING | ||
3421 | 90 | INNODB_CHECKPOINT_AGE_TARGET | ||
3422 | 91 | INNODB_CHECKSUMS | ||
3423 | 92 | INNODB_COMMIT_CONCURRENCY | ||
3424 | 93 | INNODB_CONCURRENCY_TICKETS | ||
3425 | 94 | INNODB_CORRUPT_TABLE_ACTION | ||
3426 | 95 | INNODB_DATA_FILE_PATH | ||
3427 | 96 | INNODB_DATA_HOME_DIR | ||
3428 | 97 | INNODB_DICT_SIZE_LIMIT | ||
3429 | 98 | INNODB_DOUBLEWRITE | ||
3430 | 99 | INNODB_DOUBLEWRITE_FILE | ||
3431 | 100 | INNODB_FAST_CHECKSUM | ||
3432 | 101 | INNODB_FAST_SHUTDOWN | ||
3433 | 102 | INNODB_FILE_FORMAT | ||
3434 | 103 | INNODB_FILE_FORMAT_CHECK | ||
3435 | 104 | INNODB_FILE_FORMAT_MAX | ||
3436 | 105 | INNODB_FILE_PER_TABLE | ||
3437 | 106 | INNODB_FLUSH_LOG_AT_TRX_COMMIT | ||
3438 | 107 | INNODB_FLUSH_METHOD | ||
3439 | 108 | INNODB_FLUSH_NEIGHBOR_PAGES | ||
3440 | 109 | INNODB_FORCE_RECOVERY | ||
3441 | 110 | INNODB_IBUF_ACCEL_RATE | ||
3442 | 111 | INNODB_IBUF_ACTIVE_CONTRACT | ||
3443 | 112 | INNODB_IBUF_MAX_SIZE | ||
3444 | 113 | INNODB_IMPORT_TABLE_FROM_XTRABACKUP | ||
3445 | 114 | INNODB_IO_CAPACITY | ||
3446 | 115 | INNODB_LARGE_PREFIX | ||
3447 | 116 | INNODB_LAZY_DROP_TABLE | ||
3448 | 117 | INNODB_LOCKS_UNSAFE_FOR_BINLOG | ||
3449 | 118 | INNODB_LOCK_WAIT_TIMEOUT | ||
3450 | 119 | INNODB_LOG_BLOCK_SIZE | ||
3451 | 120 | INNODB_LOG_BUFFER_SIZE | ||
3452 | 121 | INNODB_LOG_FILES_IN_GROUP | ||
3453 | 122 | INNODB_LOG_FILE_SIZE | ||
3454 | 123 | INNODB_LOG_GROUP_HOME_DIR | ||
3455 | 124 | INNODB_MAX_DIRTY_PAGES_PCT | ||
3456 | 125 | INNODB_MAX_PURGE_LAG | ||
3457 | 126 | INNODB_MIRRORED_LOG_GROUPS | ||
3458 | 127 | INNODB_OLD_BLOCKS_PCT | ||
3459 | 128 | INNODB_OLD_BLOCKS_TIME | ||
3460 | 129 | INNODB_OPEN_FILES | ||
3461 | 130 | INNODB_PAGE_SIZE | ||
3462 | 131 | INNODB_PURGE_BATCH_SIZE | ||
3463 | 132 | INNODB_PURGE_THREADS | ||
3464 | 133 | INNODB_READ_AHEAD | ||
3465 | 134 | INNODB_READ_AHEAD_THRESHOLD | ||
3466 | 135 | INNODB_READ_IO_THREADS | ||
3467 | 136 | INNODB_RECOVERY_STATS | ||
3468 | 137 | INNODB_RECOVERY_UPDATE_RELAY_LOG | ||
3469 | 138 | INNODB_REPLICATION_DELAY | ||
3470 | 139 | INNODB_ROLLBACK_ON_TIMEOUT | ||
3471 | 140 | INNODB_ROLLBACK_SEGMENTS | ||
3472 | 141 | INNODB_SHOW_LOCKS_HELD | ||
3473 | 142 | INNODB_SHOW_VERBOSE_LOCKS | ||
3474 | 143 | INNODB_SPIN_WAIT_DELAY | ||
3475 | 144 | INNODB_STATS_AUTO_UPDATE | ||
3476 | 145 | INNODB_STATS_METHOD | ||
3477 | 146 | INNODB_STATS_ON_METADATA | ||
3478 | 147 | INNODB_STATS_SAMPLE_PAGES | ||
3479 | 148 | INNODB_STATS_UPDATE_NEED_LOCK | ||
3480 | 149 | INNODB_STRICT_MODE | ||
3481 | 150 | INNODB_SUPPORT_XA | ||
3482 | 151 | INNODB_SYNC_SPIN_LOOPS | ||
3483 | 152 | INNODB_TABLE_LOCKS | ||
3484 | 153 | INNODB_THREAD_CONCURRENCY | ||
3485 | 154 | INNODB_THREAD_CONCURRENCY_TIMER_BASED | ||
3486 | 155 | INNODB_THREAD_SLEEP_DELAY | ||
3487 | 156 | INNODB_USE_GLOBAL_FLUSH_LOG_AT_TRX_COMMIT | ||
3488 | 157 | INNODB_USE_NATIVE_AIO | ||
3489 | 158 | INNODB_USE_SYS_MALLOC | ||
3490 | 159 | INNODB_USE_SYS_STATS_TABLE | ||
3491 | 160 | INNODB_VERSION | ||
3492 | 161 | INNODB_WRITE_IO_THREADS | ||
3493 | 162 | INSERT_ID | ||
3494 | 163 | INTERACTIVE_TIMEOUT | ||
3495 | 164 | JOIN_BUFFER_SIZE | ||
3496 | 165 | KEEP_FILES_ON_CREATE | ||
3497 | 166 | KEY_BUFFER_SIZE | ||
3498 | 167 | KEY_CACHE_AGE_THRESHOLD | ||
3499 | 168 | KEY_CACHE_BLOCK_SIZE | ||
3500 | 169 | KEY_CACHE_DIVISION_LIMIT | ||
3501 | 170 | LARGE_FILES_SUPPORT | ||
3502 | 171 | LARGE_PAGES | ||
3503 | 172 | LARGE_PAGE_SIZE | ||
3504 | 173 | LAST_INSERT_ID | ||
3505 | 174 | LC_MESSAGES | ||
3506 | 175 | LC_MESSAGES_DIR | ||
3507 | 176 | LC_TIME_NAMES | ||
3508 | 177 | LICENSE | ||
3509 | 178 | LOCAL_INFILE | ||
3510 | 179 | LOCKED_IN_MEMORY | ||
3511 | 180 | LOCK_WAIT_TIMEOUT | ||
3512 | 181 | LOG | ||
3513 | 182 | LOG_BIN | ||
3514 | 183 | LOG_BIN_TRUST_FUNCTION_CREATORS | ||
3515 | 184 | LOG_ERROR | ||
3516 | 185 | LOG_OUTPUT | ||
3517 | 186 | LOG_QUERIES_NOT_USING_INDEXES | ||
3518 | 187 | LOG_SLAVE_UPDATES | ||
3519 | 188 | LOG_SLOW_FILTER | ||
3520 | 189 | LOG_SLOW_QUERIES | ||
3521 | 190 | LOG_SLOW_RATE_LIMIT | ||
3522 | 191 | LOG_SLOW_SLAVE_STATEMENTS | ||
3523 | 192 | LOG_SLOW_SP_STATEMENTS | ||
3524 | 193 | LOG_SLOW_VERBOSITY | ||
3525 | 194 | LOG_WARNINGS | ||
3526 | 195 | LOG_WARNINGS_SUPPRESS | ||
3527 | 196 | LONG_QUERY_TIME | ||
3528 | 197 | LOWER_CASE_FILE_SYSTEM | ||
3529 | 198 | LOWER_CASE_TABLE_NAMES | ||
3530 | 199 | LOW_PRIORITY_UPDATES | ||
3531 | 200 | MAX_ALLOWED_PACKET | ||
3532 | 201 | MAX_BINLOG_CACHE_SIZE | ||
3533 | 202 | MAX_BINLOG_SIZE | ||
3534 | 203 | MAX_BINLOG_STMT_CACHE_SIZE | ||
3535 | 204 | MAX_CONNECTIONS | ||
3536 | 205 | MAX_CONNECT_ERRORS | ||
3537 | 206 | MAX_DELAYED_THREADS | ||
3538 | 207 | MAX_ERROR_COUNT | ||
3539 | 208 | MAX_HEAP_TABLE_SIZE | ||
3540 | 209 | MAX_INSERT_DELAYED_THREADS | ||
3541 | 210 | MAX_JOIN_SIZE | ||
3542 | 211 | MAX_LENGTH_FOR_SORT_DATA | ||
3543 | 212 | MAX_LONG_DATA_SIZE | ||
3544 | 213 | MAX_PREPARED_STMT_COUNT | ||
3545 | 214 | MAX_RELAY_LOG_SIZE | ||
3546 | 215 | MAX_SEEKS_FOR_KEY | ||
3547 | 216 | MAX_SORT_LENGTH | ||
3548 | 217 | MAX_SP_RECURSION_DEPTH | ||
3549 | 218 | MAX_TMP_TABLES | ||
3550 | 219 | MAX_USER_CONNECTIONS | ||
3551 | 220 | MAX_WRITE_LOCK_COUNT | ||
3552 | 221 | MIN_EXAMINED_ROW_LIMIT | ||
3553 | 222 | MULTI_RANGE_COUNT | ||
3554 | 223 | MYISAM_DATA_POINTER_SIZE | ||
3555 | 224 | MYISAM_MAX_SORT_FILE_SIZE | ||
3556 | 225 | MYISAM_MMAP_SIZE | ||
3557 | 226 | MYISAM_RECOVER_OPTIONS | ||
3558 | 227 | MYISAM_REPAIR_THREADS | ||
3559 | 228 | MYISAM_SORT_BUFFER_SIZE | ||
3560 | 229 | MYISAM_STATS_METHOD | ||
3561 | 230 | MYISAM_USE_MMAP | ||
3562 | 231 | NET_BUFFER_LENGTH | ||
3563 | 232 | NET_READ_TIMEOUT | ||
3564 | 233 | NET_RETRY_COUNT | ||
3565 | 234 | NET_WRITE_TIMEOUT | ||
3566 | 235 | NEW | ||
3567 | 236 | OLD | ||
3568 | 237 | OLD_ALTER_TABLE | ||
3569 | 238 | OLD_PASSWORDS | ||
3570 | 239 | OPEN_FILES_LIMIT | ||
3571 | 240 | OPTIMIZER_FIX | ||
3572 | 241 | OPTIMIZER_PRUNE_LEVEL | ||
3573 | 242 | OPTIMIZER_SEARCH_DEPTH | ||
3574 | 243 | OPTIMIZER_SWITCH | ||
3575 | 244 | PERFORMANCE_SCHEMA | ||
3576 | 245 | PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_LONG_SIZE | ||
3577 | 246 | PERFORMANCE_SCHEMA_EVENTS_WAITS_HISTORY_SIZE | ||
3578 | 247 | PERFORMANCE_SCHEMA_MAX_COND_CLASSES | ||
3579 | 248 | PERFORMANCE_SCHEMA_MAX_COND_INSTANCES | ||
3580 | 249 | PERFORMANCE_SCHEMA_MAX_FILE_CLASSES | ||
3581 | 250 | PERFORMANCE_SCHEMA_MAX_FILE_HANDLES | ||
3582 | 251 | PERFORMANCE_SCHEMA_MAX_FILE_INSTANCES | ||
3583 | 252 | PERFORMANCE_SCHEMA_MAX_MUTEX_CLASSES | ||
3584 | 253 | PERFORMANCE_SCHEMA_MAX_MUTEX_INSTANCES | ||
3585 | 254 | PERFORMANCE_SCHEMA_MAX_RWLOCK_CLASSES | ||
3586 | 255 | PERFORMANCE_SCHEMA_MAX_RWLOCK_INSTANCES | ||
3587 | 256 | PERFORMANCE_SCHEMA_MAX_TABLE_HANDLES | ||
3588 | 257 | PERFORMANCE_SCHEMA_MAX_TABLE_INSTANCES | ||
3589 | 258 | PERFORMANCE_SCHEMA_MAX_THREAD_CLASSES | ||
3590 | 259 | PERFORMANCE_SCHEMA_MAX_THREAD_INSTANCES | ||
3591 | 260 | PID_FILE | ||
3592 | 261 | PLUGIN_DIR | ||
3593 | 262 | PORT | ||
3594 | 263 | PRELOAD_BUFFER_SIZE | ||
3595 | 264 | PROFILING | ||
3596 | 265 | PROFILING_HISTORY_SIZE | ||
3597 | 266 | PROTOCOL_VERSION | ||
3598 | 267 | PROXY_USER | ||
3599 | 268 | PSEUDO_THREAD_ID | ||
3600 | 269 | QUERY_ALLOC_BLOCK_SIZE | ||
3601 | 270 | QUERY_CACHE_LIMIT | ||
3602 | 271 | QUERY_CACHE_MIN_RES_UNIT | ||
3603 | 272 | QUERY_CACHE_SIZE | ||
3604 | 273 | QUERY_CACHE_STRIP_COMMENTS | ||
3605 | 274 | QUERY_CACHE_TYPE | ||
3606 | 275 | QUERY_CACHE_WLOCK_INVALIDATE | ||
3607 | 276 | QUERY_PREALLOC_SIZE | ||
3608 | 277 | QUERY_RESPONSE_TIME_RANGE_BASE | ||
3609 | 278 | QUERY_RESPONSE_TIME_STATS | ||
3610 | 279 | RAND_SEED1 | ||
3611 | 280 | RAND_SEED2 | ||
3612 | 281 | RANGE_ALLOC_BLOCK_SIZE | ||
3613 | 282 | READ_BUFFER_SIZE | ||
3614 | 283 | READ_ONLY | ||
3615 | 284 | READ_RND_BUFFER_SIZE | ||
3616 | 285 | RELAY_LOG | ||
3617 | 286 | RELAY_LOG_INDEX | ||
3618 | 287 | RELAY_LOG_INFO_FILE | ||
3619 | 288 | RELAY_LOG_PURGE | ||
3620 | 289 | RELAY_LOG_RECOVERY | ||
3621 | 290 | RELAY_LOG_SPACE_LIMIT | ||
3622 | 291 | REPORT_HOST | ||
3623 | 292 | REPORT_PASSWORD | ||
3624 | 293 | REPORT_PORT | ||
3625 | 294 | REPORT_USER | ||
3626 | 295 | RPL_RECOVERY_RANK | ||
3627 | 296 | SECURE_AUTH | ||
3628 | 297 | SECURE_FILE_PRIV | ||
3629 | 298 | SERVER_ID | ||
3630 | 299 | SKIP_EXTERNAL_LOCKING | ||
3631 | 300 | SKIP_NAME_RESOLVE | ||
3632 | 301 | SKIP_NETWORKING | ||
3633 | 302 | SKIP_SHOW_DATABASE | ||
3634 | 303 | SLAVE_COMPRESSED_PROTOCOL | ||
3635 | 304 | SLAVE_EXEC_MODE | ||
3636 | 305 | SLAVE_LOAD_TMPDIR | ||
3637 | 306 | SLAVE_NET_TIMEOUT | ||
3638 | 307 | SLAVE_SKIP_ERRORS | ||
3639 | 308 | SLAVE_TRANSACTION_RETRIES | ||
3640 | 309 | SLAVE_TYPE_CONVERSIONS | ||
3641 | 310 | SLOW_LAUNCH_TIME | ||
3642 | 311 | SLOW_QUERY_LOG | ||
3643 | 312 | SLOW_QUERY_LOG_FILE | ||
3644 | 313 | SLOW_QUERY_LOG_TIMESTAMP_ALWAYS | ||
3645 | 314 | SLOW_QUERY_LOG_TIMESTAMP_PRECISION | ||
3646 | 315 | SLOW_QUERY_LOG_USE_GLOBAL_CONTROL | ||
3647 | 316 | SOCKET | ||
3648 | 317 | SORT_BUFFER_SIZE | ||
3649 | 318 | SQL_AUTO_IS_NULL | ||
3650 | 319 | SQL_BIG_SELECTS | ||
3651 | 320 | SQL_BIG_TABLES | ||
3652 | 321 | SQL_BUFFER_RESULT | ||
3653 | 322 | SQL_LOG_BIN | ||
3654 | 323 | SQL_LOG_OFF | ||
3655 | 324 | SQL_LOW_PRIORITY_UPDATES | ||
3656 | 325 | SQL_MAX_JOIN_SIZE | ||
3657 | 326 | SQL_MODE | ||
3658 | 327 | SQL_NOTES | ||
3659 | 328 | SQL_QUOTE_SHOW_CREATE | ||
3660 | 329 | SQL_SAFE_UPDATES | ||
3661 | 330 | SQL_SELECT_LIMIT | ||
3662 | 331 | SQL_SLAVE_SKIP_COUNTER | ||
3663 | 332 | SQL_WARNINGS | ||
3664 | 333 | SSL_CA | ||
3665 | 334 | SSL_CAPATH | ||
3666 | 335 | SSL_CERT | ||
3667 | 336 | SSL_CIPHER | ||
3668 | 337 | SSL_KEY | ||
3669 | 338 | STORAGE_ENGINE | ||
3670 | 339 | SYNC_BINLOG | ||
3671 | 340 | SYNC_FRM | ||
3672 | 341 | SYNC_MASTER_INFO | ||
3673 | 342 | SYNC_RELAY_LOG | ||
3674 | 343 | SYNC_RELAY_LOG_INFO | ||
3675 | 344 | SYSTEM_TIME_ZONE | ||
3676 | 345 | TABLE_DEFINITION_CACHE | ||
3677 | 346 | TABLE_OPEN_CACHE | ||
3678 | 347 | THREAD_CACHE_SIZE | ||
3679 | 348 | THREAD_CONCURRENCY | ||
3680 | 349 | THREAD_HANDLING | ||
3681 | 350 | THREAD_STACK | ||
3682 | 351 | THREAD_STATISTICS | ||
3683 | 352 | TIMED_MUTEXES | ||
3684 | 353 | TIMESTAMP | ||
3685 | 354 | TIME_FORMAT | ||
3686 | 355 | TIME_ZONE | ||
3687 | 356 | TMPDIR | ||
3688 | 357 | TMP_TABLE_SIZE | ||
3689 | 358 | TRANSACTION_ALLOC_BLOCK_SIZE | ||
3690 | 359 | TRANSACTION_PREALLOC_SIZE | ||
3691 | 360 | TX_ISOLATION | ||
3692 | 361 | UNIQUE_CHECKS | ||
3693 | 362 | UPDATABLE_VIEWS_WITH_LIMIT | ||
3694 | 363 | USERSTAT | ||
3695 | 364 | VERSION | ||
3696 | 365 | VERSION_COMMENT | ||
3697 | 366 | VERSION_COMPILE_MACHINE | ||
3698 | 367 | VERSION_COMPILE_OS | ||
3699 | 368 | WAIT_TIMEOUT | ||
3700 | 369 | WARNING_COUNT | ||
3701 | 370 | 0 | ||
3702 | === removed file 'mysql-test/percona_server_variables_release.test' | |||
3703 | --- mysql-test/percona_server_variables_release.test 2011-06-23 02:11:07 +0000 | |||
3704 | +++ mysql-test/percona_server_variables_release.test 1970-01-01 00:00:00 +0000 | |||
3705 | @@ -1,2 +0,0 @@ | |||
3706 | 1 | --source include/have_nodebug.inc | ||
3707 | 2 | --source include/percona_server_variables.inc | ||
3708 | 3 | 0 | ||
3709 | === removed file 'mysql-test/percona_show_temp_tables.result' | |||
3710 | --- mysql-test/percona_show_temp_tables.result 2010-12-09 18:30:58 +0000 | |||
3711 | +++ mysql-test/percona_show_temp_tables.result 1970-01-01 00:00:00 +0000 | |||
3712 | @@ -1,58 +0,0 @@ | |||
3713 | 1 | drop table if exists t1,t2,t3; | ||
3714 | 2 | drop database if exists showtemp; | ||
3715 | 3 | create database if not exists showtemp; | ||
3716 | 4 | use test; | ||
3717 | 5 | create temporary table t1(id int); | ||
3718 | 6 | create temporary table t2(id int); | ||
3719 | 7 | create temporary table showtemp.t3(id int); | ||
3720 | 8 | insert into t1 values(10),(20),(30),(40); | ||
3721 | 9 | insert into showtemp.t3 values(999); | ||
3722 | 10 | show temporary tables; | ||
3723 | 11 | Temp_tables_in_test | ||
3724 | 12 | t2 | ||
3725 | 13 | t1 | ||
3726 | 14 | show temporary tables from test; | ||
3727 | 15 | Temp_tables_in_test | ||
3728 | 16 | t2 | ||
3729 | 17 | t1 | ||
3730 | 18 | show temporary tables in showtemp; | ||
3731 | 19 | Temp_tables_in_showtemp | ||
3732 | 20 | t3 | ||
3733 | 21 | select table_schema, table_name, engine, table_rows from Information_schema.temporary_tables; | ||
3734 | 22 | table_schema table_name engine table_rows | ||
3735 | 23 | showtemp t3 MyISAM 1 | ||
3736 | 24 | test t2 MyISAM 0 | ||
3737 | 25 | test t1 MyISAM 4 | ||
3738 | 26 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3739 | 27 | table_schema table_name engine table_rows | ||
3740 | 28 | showtemp t3 MyISAM 1 | ||
3741 | 29 | test t2 MyISAM 0 | ||
3742 | 30 | test t1 MyISAM 4 | ||
3743 | 31 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='showtemp'; | ||
3744 | 32 | table_schema table_name engine table_rows | ||
3745 | 33 | showtemp t3 MyISAM 1 | ||
3746 | 34 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='temp'; | ||
3747 | 35 | table_schema table_name engine table_rows | ||
3748 | 36 | drop table if exists showtemp.t2; | ||
3749 | 37 | create temporary table t1(id int); | ||
3750 | 38 | create temporary table showtemp.t2(id int); | ||
3751 | 39 | show temporary tables; | ||
3752 | 40 | Temp_tables_in_test | ||
3753 | 41 | t1 | ||
3754 | 42 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3755 | 43 | table_schema table_name engine table_rows | ||
3756 | 44 | showtemp t2 MyISAM 0 | ||
3757 | 45 | test t1 MyISAM 0 | ||
3758 | 46 | showtemp t3 MyISAM 1 | ||
3759 | 47 | test t2 MyISAM 0 | ||
3760 | 48 | test t1 MyISAM 4 | ||
3761 | 49 | drop table showtemp.t2; | ||
3762 | 50 | drop table t1; | ||
3763 | 51 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3764 | 52 | table_schema table_name engine table_rows | ||
3765 | 53 | showtemp t3 MyISAM 1 | ||
3766 | 54 | test t2 MyISAM 0 | ||
3767 | 55 | test t1 MyISAM 4 | ||
3768 | 56 | drop table t1, t2; | ||
3769 | 57 | drop table showtemp.t3; | ||
3770 | 58 | drop database showtemp; | ||
3771 | 59 | 0 | ||
3772 | === removed file 'mysql-test/percona_show_temp_tables.test' | |||
3773 | --- mysql-test/percona_show_temp_tables.test 2010-12-09 18:30:58 +0000 | |||
3774 | +++ mysql-test/percona_show_temp_tables.test 1970-01-01 00:00:00 +0000 | |||
3775 | @@ -1,65 +0,0 @@ | |||
3776 | 1 | # Uses GRANT commands that usually disabled in embedded server | ||
3777 | 2 | -- source include/not_embedded.inc | ||
3778 | 3 | |||
3779 | 4 | # Save the initial number of concurrent sessions | ||
3780 | 5 | --source include/count_sessions.inc | ||
3781 | 6 | |||
3782 | 7 | # | ||
3783 | 8 | # Test of SHOW [GLOBAL] TEMPORARY TABLES [FROM/IN] DB and | ||
3784 | 9 | # Information_schema.temporary_tables and global_temporary_tables | ||
3785 | 10 | # | ||
3786 | 11 | |||
3787 | 12 | connect(stcon1,localhost,root,,test); | ||
3788 | 13 | connect(stcon2,localhost,root,,test); | ||
3789 | 14 | |||
3790 | 15 | connection stcon1; | ||
3791 | 16 | |||
3792 | 17 | --disable_warnings | ||
3793 | 18 | drop table if exists t1,t2,t3; | ||
3794 | 19 | drop database if exists showtemp; | ||
3795 | 20 | create database if not exists showtemp; | ||
3796 | 21 | --enable_warnings | ||
3797 | 22 | |||
3798 | 23 | use test; | ||
3799 | 24 | create temporary table t1(id int); | ||
3800 | 25 | create temporary table t2(id int); | ||
3801 | 26 | create temporary table showtemp.t3(id int); | ||
3802 | 27 | insert into t1 values(10),(20),(30),(40); | ||
3803 | 28 | insert into showtemp.t3 values(999); | ||
3804 | 29 | |||
3805 | 30 | show temporary tables; | ||
3806 | 31 | # "Session" is not same value always. mysql-test cannot test it always. | ||
3807 | 32 | #show global temporary tables; | ||
3808 | 33 | show temporary tables from test; | ||
3809 | 34 | show temporary tables in showtemp; | ||
3810 | 35 | select table_schema, table_name, engine, table_rows from Information_schema.temporary_tables; | ||
3811 | 36 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3812 | 37 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='showtemp'; | ||
3813 | 38 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables where table_schema='temp'; | ||
3814 | 39 | |||
3815 | 40 | connection stcon2; | ||
3816 | 41 | |||
3817 | 42 | --disable_warnings | ||
3818 | 43 | drop table if exists showtemp.t2; | ||
3819 | 44 | --enable_warnings | ||
3820 | 45 | create temporary table t1(id int); | ||
3821 | 46 | create temporary table showtemp.t2(id int); | ||
3822 | 47 | show temporary tables; | ||
3823 | 48 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3824 | 49 | drop table showtemp.t2; | ||
3825 | 50 | drop table t1; | ||
3826 | 51 | |||
3827 | 52 | disconnect stcon2; | ||
3828 | 53 | |||
3829 | 54 | connection stcon1; | ||
3830 | 55 | select table_schema, table_name, engine, table_rows from Information_schema.global_temporary_tables; | ||
3831 | 56 | |||
3832 | 57 | drop table t1, t2; | ||
3833 | 58 | drop table showtemp.t3; | ||
3834 | 59 | drop database showtemp; | ||
3835 | 60 | |||
3836 | 61 | connection default; | ||
3837 | 62 | disconnect stcon1; | ||
3838 | 63 | |||
3839 | 64 | # Wait till all disconnects are completed | ||
3840 | 65 | --source include/wait_until_count_sessions.inc | ||
3841 | 66 | 0 | ||
3842 | === removed file 'mysql-test/percona_xtradb_admin_command.result' | |||
3843 | --- mysql-test/percona_xtradb_admin_command.result 2010-12-09 18:30:58 +0000 | |||
3844 | +++ mysql-test/percona_xtradb_admin_command.result 1970-01-01 00:00:00 +0000 | |||
3845 | @@ -1,6 +0,0 @@ | |||
3846 | 1 | select * from information_schema.XTRADB_ADMIN_COMMAND; | ||
3847 | 2 | result_message | ||
3848 | 3 | No XTRA_* command in the SQL statement. Please add /*!XTRA_xxxx*/ to the SQL. | ||
3849 | 4 | select * from information_schema.XTRADB_ADMIN_COMMAND /*!XTRA_HELLO*/; | ||
3850 | 5 | result_message | ||
3851 | 6 | Hello! | ||
3852 | 7 | 0 | ||
3853 | === removed file 'mysql-test/percona_xtradb_admin_command.test' | |||
3854 | --- mysql-test/percona_xtradb_admin_command.test 2010-12-09 18:30:58 +0000 | |||
3855 | +++ mysql-test/percona_xtradb_admin_command.test 1970-01-01 00:00:00 +0000 | |||
3856 | @@ -1,3 +0,0 @@ | |||
3857 | 1 | --source include/have_innodb.inc | ||
3858 | 2 | select * from information_schema.XTRADB_ADMIN_COMMAND; | ||
3859 | 3 | select * from information_schema.XTRADB_ADMIN_COMMAND /*!XTRA_HELLO*/; | ||
3860 | 4 | 0 | ||
3861 | === removed file 'mysql-test/percona_xtradb_bug317074.result' | |||
3862 | --- mysql-test/percona_xtradb_bug317074.result 2011-01-13 04:34:53 +0000 | |||
3863 | +++ mysql-test/percona_xtradb_bug317074.result 1970-01-01 00:00:00 +0000 | |||
3864 | @@ -1,5 +0,0 @@ | |||
3865 | 1 | SET @old_innodb_file_format=@@innodb_file_format; | ||
3866 | 2 | SET @old_innodb_file_format_max=@@innodb_file_format_max; | ||
3867 | 3 | SET @old_innodb_file_per_table=@@innodb_file_per_table; | ||
3868 | 4 | SET GLOBAL innodb_file_format='Barracuda'; | ||
3869 | 5 | SET GLOBAL innodb_file_per_table=ON; | ||
3870 | 6 | 0 | ||
3871 | === removed file 'mysql-test/percona_xtradb_bug317074.test' | |||
3872 | --- mysql-test/percona_xtradb_bug317074.test 2011-01-13 04:34:53 +0000 | |||
3873 | +++ mysql-test/percona_xtradb_bug317074.test 1970-01-01 00:00:00 +0000 | |||
3874 | @@ -1,47 +0,0 @@ | |||
3875 | 1 | -- source include/have_innodb.inc | ||
3876 | 2 | |||
3877 | 3 | SET @old_innodb_file_format=@@innodb_file_format; | ||
3878 | 4 | SET @old_innodb_file_format_max=@@innodb_file_format_max; | ||
3879 | 5 | SET @old_innodb_file_per_table=@@innodb_file_per_table; | ||
3880 | 6 | SET GLOBAL innodb_file_format='Barracuda'; | ||
3881 | 7 | SET GLOBAL innodb_file_per_table=ON; | ||
3882 | 8 | |||
3883 | 9 | -- disable_query_log | ||
3884 | 10 | -- disable_result_log | ||
3885 | 11 | |||
3886 | 12 | DROP TABLE IF EXISTS `test1`; | ||
3887 | 13 | CREATE TABLE IF NOT EXISTS `test1` ( | ||
3888 | 14 | `a` int primary key auto_increment, | ||
3889 | 15 | `b` int default 0, | ||
3890 | 16 | `c` char(100) default 'testtest' | ||
3891 | 17 | ) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8; | ||
3892 | 18 | |||
3893 | 19 | delimiter |; | ||
3894 | 20 | CREATE PROCEDURE insert_many(p1 int) | ||
3895 | 21 | BEGIN | ||
3896 | 22 | SET @x = 0; | ||
3897 | 23 | SET @y = 0; | ||
3898 | 24 | start transaction; | ||
3899 | 25 | REPEAT | ||
3900 | 26 | insert into test1 set b=1; | ||
3901 | 27 | SET @x = @x + 1; | ||
3902 | 28 | SET @y = @y + 1; | ||
3903 | 29 | IF @y >= 1000 THEN | ||
3904 | 30 | commit; | ||
3905 | 31 | start transaction; | ||
3906 | 32 | SET @y = 0; | ||
3907 | 33 | END IF; | ||
3908 | 34 | UNTIL @x >= p1 END REPEAT; | ||
3909 | 35 | commit; | ||
3910 | 36 | END| | ||
3911 | 37 | delimiter ;| | ||
3912 | 38 | call insert_many(100000); | ||
3913 | 39 | DROP PROCEDURE insert_many; | ||
3914 | 40 | |||
3915 | 41 | # The bug is hangup at the following statement | ||
3916 | 42 | ALTER TABLE test1 ENGINE=MyISAM; | ||
3917 | 43 | |||
3918 | 44 | DROP TABLE test1; | ||
3919 | 45 | SET GLOBAL innodb_file_format=@old_innodb_file_format; | ||
3920 | 46 | SET GLOBAL innodb_file_format_max=@old_innodb_file_format_max; | ||
3921 | 47 | SET GLOBAL innodb_file_per_table=@old_innodb_file_per_table; | ||
3922 | 48 | 0 | ||
3923 | === removed directory 'mysql-test/processlist_row_stats.patch' | |||
3924 | === removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result' | |||
3925 | --- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result 2011-08-03 16:08:46 +0000 | |||
3926 | +++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.result 1970-01-01 00:00:00 +0000 | |||
3927 | @@ -1,70 +0,0 @@ | |||
3928 | 1 | DROP TABLE IF EXISTS t1; | ||
3929 | 2 | DROP TABLE IF EXISTS t2; | ||
3930 | 3 | CREATE TABLE t2 (a INT); | ||
3931 | 4 | INSERT INTO t2 VALUES(10); | ||
3932 | 5 | INSERT INTO t2 VALUES(10); | ||
3933 | 6 | INSERT INTO t2 VALUES(20); | ||
3934 | 7 | INSERT INTO t2 VALUES(10); | ||
3935 | 8 | INSERT INTO t2 VALUES(20); | ||
3936 | 9 | SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
3937 | 10 | CREATE TABLE t1 (a INT); | ||
3938 | 11 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
3939 | 12 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
3940 | 13 | SELECT a FROM t2 WHERE a > 15; | ||
3941 | 14 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
3942 | 15 | SHOW PROCESSLIST; | ||
3943 | 16 | Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read | ||
3944 | 17 | ### root ### test Query ### ### SHOW PROCESSLIST 0 0 2 | ||
3945 | 18 | ### root ### test Query ### ### CREATE TABLE t1 (a INT) 0 0 1 | ||
3946 | 19 | ### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 2 5 6 | ||
3947 | 20 | SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; | ||
3948 | 21 | id info rows_sent rows_examined rows_read | ||
3949 | 22 | ### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 | ||
3950 | 23 | ### CREATE TABLE t1 (a INT) 0 0 1 | ||
3951 | 24 | ### SELECT a FROM t2 WHERE a > 15 2 5 6 | ||
3952 | 25 | SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; | ||
3953 | 26 | a | ||
3954 | 27 | 20 | ||
3955 | 28 | 20 | ||
3956 | 29 | SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
3957 | 30 | SELECT a FROM t2 WHERE a < 15; | ||
3958 | 31 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
3959 | 32 | SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
3960 | 33 | SELECT a FROM t2 WHERE a > 15; | ||
3961 | 34 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
3962 | 35 | SHOW PROCESSLIST; | ||
3963 | 36 | Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read | ||
3964 | 37 | ### root ### test Query ### ### SHOW PROCESSLIST 0 0 4 | ||
3965 | 38 | ### root ### test Query ### ### SELECT a FROM t2 WHERE a < 15 1 0 1 | ||
3966 | 39 | ### root ### test Query ### ### SELECT a FROM t2 WHERE a > 15 1 0 3 | ||
3967 | 40 | SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; | ||
3968 | 41 | id info rows_sent rows_examined rows_read | ||
3969 | 42 | ### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 | ||
3970 | 43 | ### SELECT a FROM t2 WHERE a < 15 1 0 1 | ||
3971 | 44 | ### SELECT a FROM t2 WHERE a > 15 1 0 3 | ||
3972 | 45 | SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; | ||
3973 | 46 | a | ||
3974 | 47 | 10 | ||
3975 | 48 | 10 | ||
3976 | 49 | 10 | ||
3977 | 50 | a | ||
3978 | 51 | 20 | ||
3979 | 52 | 20 | ||
3980 | 53 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
3981 | 54 | UPDATE t2 SET a = 15 WHERE a = 20; | ||
3982 | 55 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
3983 | 56 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
3984 | 57 | UPDATE t2 SET a = 15 WHERE a = 10; | ||
3985 | 58 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
3986 | 59 | SHOW PROCESSLIST; | ||
3987 | 60 | Id User Host db Command Time State Info Rows_sent Rows_examined Rows_read | ||
3988 | 61 | ### root ### test Query ### ### SHOW PROCESSLIST 0 0 4 | ||
3989 | 62 | ### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6 | ||
3990 | 63 | ### root ### test Query ### ### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6 | ||
3991 | 64 | SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; | ||
3992 | 65 | id info rows_sent rows_examined rows_read | ||
3993 | 66 | ### SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id 0 0 1 | ||
3994 | 67 | ### UPDATE t2 SET a = 15 WHERE a = 20 0 5 6 | ||
3995 | 68 | ### UPDATE t2 SET a = 15 WHERE a = 10 0 5 6 | ||
3996 | 69 | SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; | ||
3997 | 70 | DROP TABLES t1, t2; | ||
3998 | 71 | 0 | ||
3999 | === removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test' | |||
4000 | --- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test 2011-08-03 16:08:46 +0000 | |||
4001 | +++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats.test 1970-01-01 00:00:00 +0000 | |||
4002 | @@ -1,79 +0,0 @@ | |||
4003 | 1 | # Testing of INFORMATION_SCHEMA.PROCESSLIST fields ROWS_SENT, ROWS_EXAMINED, ROWS_READ | ||
4004 | 2 | --source include/have_debug_sync.inc | ||
4005 | 3 | |||
4006 | 4 | --disable_warnings | ||
4007 | 5 | DROP TABLE IF EXISTS t1; | ||
4008 | 6 | DROP TABLE IF EXISTS t2; | ||
4009 | 7 | --enable_warnings | ||
4010 | 8 | |||
4011 | 9 | CREATE TABLE t2 (a INT); | ||
4012 | 10 | INSERT INTO t2 VALUES(10); | ||
4013 | 11 | INSERT INTO t2 VALUES(10); | ||
4014 | 12 | INSERT INTO t2 VALUES(20); | ||
4015 | 13 | INSERT INTO t2 VALUES(10); | ||
4016 | 14 | INSERT INTO t2 VALUES(20); | ||
4017 | 15 | |||
4018 | 16 | --connect (conn1, localhost, root, ,) | ||
4019 | 17 | --connect (conn2, localhost, root, ,) | ||
4020 | 18 | |||
4021 | 19 | --connection conn1 | ||
4022 | 20 | SET DEBUG_SYNC= 'locked_table_name SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
4023 | 21 | send CREATE TABLE t1 (a INT); | ||
4024 | 22 | --connection default | ||
4025 | 23 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
4026 | 24 | |||
4027 | 25 | --connection conn2 | ||
4028 | 26 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
4029 | 27 | send SELECT a FROM t2 WHERE a > 15; | ||
4030 | 28 | --connection default | ||
4031 | 29 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
4032 | 30 | |||
4033 | 31 | --source include/percona_processlist_row_stats_show.inc | ||
4034 | 32 | |||
4035 | 33 | --connection conn1 | ||
4036 | 34 | reap; | ||
4037 | 35 | --connection conn2 | ||
4038 | 36 | reap; | ||
4039 | 37 | |||
4040 | 38 | --connection conn1 | ||
4041 | 39 | SET DEBUG_SYNC= 'sent_row SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
4042 | 40 | send SELECT a FROM t2 WHERE a < 15; | ||
4043 | 41 | --connection default | ||
4044 | 42 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
4045 | 43 | |||
4046 | 44 | --connection conn2 | ||
4047 | 45 | SET DEBUG_SYNC= 'sent_row SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
4048 | 46 | send SELECT a FROM t2 WHERE a > 15; | ||
4049 | 47 | --connection default | ||
4050 | 48 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
4051 | 49 | |||
4052 | 50 | --source include/percona_processlist_row_stats_show.inc | ||
4053 | 51 | |||
4054 | 52 | --connection conn1 | ||
4055 | 53 | reap; | ||
4056 | 54 | --connection conn2 | ||
4057 | 55 | reap; | ||
4058 | 56 | |||
4059 | 57 | --connection conn1 | ||
4060 | 58 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread1_ready WAIT_FOR threads_dumped'; | ||
4061 | 59 | send UPDATE t2 SET a = 15 WHERE a = 20; | ||
4062 | 60 | --connection default | ||
4063 | 61 | SET DEBUG_SYNC= 'now WAIT_FOR thread1_ready'; | ||
4064 | 62 | |||
4065 | 63 | --connection conn2 | ||
4066 | 64 | SET DEBUG_SYNC= 'execute_command_after_close_tables SIGNAL thread2_ready WAIT_FOR threads_dumped'; | ||
4067 | 65 | send UPDATE t2 SET a = 15 WHERE a = 10; | ||
4068 | 66 | --connection default | ||
4069 | 67 | SET DEBUG_SYNC= 'now WAIT_FOR thread2_ready'; | ||
4070 | 68 | |||
4071 | 69 | --source include/percona_processlist_row_stats_show.inc | ||
4072 | 70 | |||
4073 | 71 | --connection conn1 | ||
4074 | 72 | reap; | ||
4075 | 73 | --connection conn2 | ||
4076 | 74 | reap; | ||
4077 | 75 | |||
4078 | 76 | --connection default | ||
4079 | 77 | disconnect conn1; | ||
4080 | 78 | disconnect conn2; | ||
4081 | 79 | DROP TABLES t1, t2; | ||
4082 | 80 | 0 | ||
4083 | === removed file 'mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc' | |||
4084 | --- mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc 2011-08-03 16:08:46 +0000 | |||
4085 | +++ mysql-test/processlist_row_stats.patch/percona_processlist_row_stats_show.inc 1970-01-01 00:00:00 +0000 | |||
4086 | @@ -1,7 +0,0 @@ | |||
4087 | 1 | --replace_column 1 ### 3 ### 6 ### 7 ### | ||
4088 | 2 | SHOW PROCESSLIST; | ||
4089 | 3 | |||
4090 | 4 | --replace_column 1 ### | ||
4091 | 5 | SELECT id, info, rows_sent, rows_examined, rows_read FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY id; | ||
4092 | 6 | |||
4093 | 7 | SET DEBUG_SYNC= 'now SIGNAL threads_dumped'; | ||
4094 | 8 | 0 | ||
4095 | === removed directory 'mysql-test/query_cache_enhance.patch' | |||
4096 | === removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc' | |||
4097 | --- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc 2010-12-09 18:30:58 +0000 | |||
4098 | +++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc 1970-01-01 00:00:00 +0000 | |||
4099 | @@ -1,95 +0,0 @@ | |||
4100 | 1 | --source include/percona_query_cache_with_comments_clear.inc | ||
4101 | 2 | let $query=/* with comment first */select * from t1; | ||
4102 | 3 | eval $query; | ||
4103 | 4 | --source include/percona_query_cache_with_comments_eval.inc | ||
4104 | 5 | |||
4105 | 6 | let $query=# with comment first | ||
4106 | 7 | select * from t1; | ||
4107 | 8 | --source include/percona_query_cache_with_comments_eval.inc | ||
4108 | 9 | |||
4109 | 10 | let $query=-- with comment first | ||
4110 | 11 | select * from t1; | ||
4111 | 12 | --source include/percona_query_cache_with_comments_eval.inc | ||
4112 | 13 | |||
4113 | 14 | let $query=/* with comment first and "quote" */select * from t1; | ||
4114 | 15 | --source include/percona_query_cache_with_comments_eval.inc | ||
4115 | 16 | |||
4116 | 17 | let $query=# with comment first and "quote" | ||
4117 | 18 | select * from t1; | ||
4118 | 19 | --source include/percona_query_cache_with_comments_eval.inc | ||
4119 | 20 | |||
4120 | 21 | let $query=-- with comment first and "quote" | ||
4121 | 22 | select * from t1; | ||
4122 | 23 | --source include/percona_query_cache_with_comments_eval.inc | ||
4123 | 24 | |||
4124 | 25 | let $query= | ||
4125 | 26 | /* with comment and whitespaces first */select * from t1; | ||
4126 | 27 | --source include/percona_query_cache_with_comments_eval.inc | ||
4127 | 28 | |||
4128 | 29 | let $query= | ||
4129 | 30 | # with comment and whitespaces first | ||
4130 | 31 | select * from t1; | ||
4131 | 32 | --source include/percona_query_cache_with_comments_eval.inc | ||
4132 | 33 | |||
4133 | 34 | let $query= | ||
4134 | 35 | -- with comment and whitespaces first | ||
4135 | 36 | select * from t1; | ||
4136 | 37 | --source include/percona_query_cache_with_comments_eval.inc | ||
4137 | 38 | |||
4138 | 39 | let $internal=* internal comment *; | ||
4139 | 40 | |||
4140 | 41 | let $query=select * /$internal/ from t1; | ||
4141 | 42 | --source include/percona_query_cache_with_comments_eval.inc | ||
4142 | 43 | let $query=select */$internal/ from t1; | ||
4143 | 44 | --source include/percona_query_cache_with_comments_eval.inc | ||
4144 | 45 | let $query=select */$internal/from t1; | ||
4145 | 46 | --source include/percona_query_cache_with_comments_eval.inc | ||
4146 | 47 | |||
4147 | 48 | let $internal=* internal comment with "quote" *; | ||
4148 | 49 | |||
4149 | 50 | let $query=select * /$internal/ from t1; | ||
4150 | 51 | --source include/percona_query_cache_with_comments_eval.inc | ||
4151 | 52 | let $query=select */$internal/ from t1; | ||
4152 | 53 | --source include/percona_query_cache_with_comments_eval.inc | ||
4153 | 54 | let $query=select */$internal/from t1; | ||
4154 | 55 | --source include/percona_query_cache_with_comments_eval.inc | ||
4155 | 56 | |||
4156 | 57 | let $query=select * from t1 | ||
4157 | 58 | ; | ||
4158 | 59 | --source include/percona_query_cache_with_comments_eval.inc | ||
4159 | 60 | |||
4160 | 61 | let $query=select * from t1 ; | ||
4161 | 62 | --source include/percona_query_cache_with_comments_eval.inc | ||
4162 | 63 | |||
4163 | 64 | let $query=select * from t1 ; | ||
4164 | 65 | --source include/percona_query_cache_with_comments_eval.inc | ||
4165 | 66 | |||
4166 | 67 | let $query=select * from t1 | ||
4167 | 68 | /* comment in the end */; | ||
4168 | 69 | --source include/percona_query_cache_with_comments_eval.inc | ||
4169 | 70 | |||
4170 | 71 | let $query=select * from t1 | ||
4171 | 72 | /* *\/ */; | ||
4172 | 73 | --source include/percona_query_cache_with_comments_eval.inc | ||
4173 | 74 | |||
4174 | 75 | let $query=select * from t1 | ||
4175 | 76 | /* comment in the end */ | ||
4176 | 77 | ; | ||
4177 | 78 | --source include/percona_query_cache_with_comments_eval.inc | ||
4178 | 79 | |||
4179 | 80 | let $query=select * from t1 #comment in the end; | ||
4180 | 81 | --source include/percona_query_cache_with_comments_eval.inc | ||
4181 | 82 | |||
4182 | 83 | let $query=select * from t1 #comment in the end | ||
4183 | 84 | ; | ||
4184 | 85 | --source include/percona_query_cache_with_comments_eval.inc | ||
4185 | 86 | |||
4186 | 87 | let $query=select * from t1 -- comment in the end; | ||
4187 | 88 | --source include/percona_query_cache_with_comments_eval.inc | ||
4188 | 89 | |||
4189 | 90 | let $query=select * from t1 -- comment in the end | ||
4190 | 91 | ; | ||
4191 | 92 | --source include/percona_query_cache_with_comments_eval.inc | ||
4192 | 93 | |||
4193 | 94 | let $query=select ' \' ' from t1; | ||
4194 | 95 | --source include/percona_query_cache_with_comments_eval.inc | ||
4195 | 96 | 0 | ||
4196 | === removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup' | |||
4197 | --- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup 2010-12-09 18:30:58 +0000 | |||
4198 | +++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.inc.backup 1970-01-01 00:00:00 +0000 | |||
4199 | @@ -1,88 +0,0 @@ | |||
4200 | 1 | --source include/percona_query_cache_with_comments_clear.inc | ||
4201 | 2 | let $query=/* with comment first */select * from t1; | ||
4202 | 3 | eval $query; | ||
4203 | 4 | --source include/percona_query_cache_with_comments_eval.inc | ||
4204 | 5 | |||
4205 | 6 | let $query=# with comment first | ||
4206 | 7 | select * from t1; | ||
4207 | 8 | --source include/percona_query_cache_with_comments_eval.inc | ||
4208 | 9 | |||
4209 | 10 | let $query=-- with comment first | ||
4210 | 11 | select * from t1; | ||
4211 | 12 | --source include/percona_query_cache_with_comments_eval.inc | ||
4212 | 13 | |||
4213 | 14 | let $query=/* with comment first and "quote" */select * from t1; | ||
4214 | 15 | --source include/percona_query_cache_with_comments_eval.inc | ||
4215 | 16 | |||
4216 | 17 | let $query=# with comment first and "quote" | ||
4217 | 18 | select * from t1; | ||
4218 | 19 | --source include/percona_query_cache_with_comments_eval.inc | ||
4219 | 20 | |||
4220 | 21 | let $query=-- with comment first and "quote" | ||
4221 | 22 | select * from t1; | ||
4222 | 23 | --source include/percona_query_cache_with_comments_eval.inc | ||
4223 | 24 | |||
4224 | 25 | let $query= | ||
4225 | 26 | /* with comment and whitespaces first */select * from t1; | ||
4226 | 27 | --source include/percona_query_cache_with_comments_eval.inc | ||
4227 | 28 | |||
4228 | 29 | let $query= | ||
4229 | 30 | # with comment and whitespaces first | ||
4230 | 31 | select * from t1; | ||
4231 | 32 | --source include/percona_query_cache_with_comments_eval.inc | ||
4232 | 33 | |||
4233 | 34 | let $query= | ||
4234 | 35 | -- with comment and whitespaces first | ||
4235 | 36 | select * from t1; | ||
4236 | 37 | --source include/percona_query_cache_with_comments_eval.inc | ||
4237 | 38 | |||
4238 | 39 | let $internal=* internal comment *; | ||
4239 | 40 | |||
4240 | 41 | let $query=select * /$internal/ from t1; | ||
4241 | 42 | --source include/percona_query_cache_with_comments_eval.inc | ||
4242 | 43 | let $query=select */$internal/ from t1; | ||
4243 | 44 | --source include/percona_query_cache_with_comments_eval.inc | ||
4244 | 45 | let $query=select */$internal/from t1; | ||
4245 | 46 | --source include/percona_query_cache_with_comments_eval.inc | ||
4246 | 47 | |||
4247 | 48 | let $internal=* internal comment with "quote" *; | ||
4248 | 49 | |||
4249 | 50 | let $query=select * /$internal/ from t1; | ||
4250 | 51 | --source include/percona_query_cache_with_comments_eval.inc | ||
4251 | 52 | let $query=select */$internal/ from t1; | ||
4252 | 53 | --source include/percona_query_cache_with_comments_eval.inc | ||
4253 | 54 | let $query=select */$internal/from t1; | ||
4254 | 55 | --source include/percona_query_cache_with_comments_eval.inc | ||
4255 | 56 | |||
4256 | 57 | let $query=select * from t1 | ||
4257 | 58 | ; | ||
4258 | 59 | --source include/percona_query_cache_with_comments_eval.inc | ||
4259 | 60 | |||
4260 | 61 | let $query=select * from t1 ; | ||
4261 | 62 | --source include/percona_query_cache_with_comments_eval.inc | ||
4262 | 63 | |||
4263 | 64 | let $query=select * from t1 ; | ||
4264 | 65 | --source include/percona_query_cache_with_comments_eval.inc | ||
4265 | 66 | |||
4266 | 67 | let $query=select * from t1 | ||
4267 | 68 | /* comment in the end */; | ||
4268 | 69 | --source include/percona_query_cache_with_comments_eval.inc | ||
4269 | 70 | |||
4270 | 71 | let $query=select * from t1 | ||
4271 | 72 | /* comment in the end */ | ||
4272 | 73 | ; | ||
4273 | 74 | --source include/percona_query_cache_with_comments_eval.inc | ||
4274 | 75 | |||
4275 | 76 | let $query=select * from t1 #comment in the end; | ||
4276 | 77 | --source include/percona_query_cache_with_comments_eval.inc | ||
4277 | 78 | |||
4278 | 79 | let $query=select * from t1 #comment in the end | ||
4279 | 80 | ; | ||
4280 | 81 | --source include/percona_query_cache_with_comments_eval.inc | ||
4281 | 82 | |||
4282 | 83 | let $query=select * from t1 -- comment in the end; | ||
4283 | 84 | --source include/percona_query_cache_with_comments_eval.inc | ||
4284 | 85 | |||
4285 | 86 | let $query=select * from t1 -- comment in the end | ||
4286 | 87 | ; | ||
4287 | 88 | --source include/percona_query_cache_with_comments_eval.inc | ||
4288 | 89 | 0 | ||
4289 | === removed file 'mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result' | |||
4290 | --- mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result 2010-12-09 18:30:58 +0000 | |||
4291 | +++ mysql-test/query_cache_enhance.patch/percona_query_cache_with_comments.result 1970-01-01 00:00:00 +0000 | |||
4292 | @@ -1,866 +0,0 @@ | |||
4293 | 1 | set global query_cache_strip_comments=ON; | ||
4294 | 2 | set GLOBAL query_cache_size=1355776; | ||
4295 | 3 | drop table if exists t1; | ||
4296 | 4 | create table t1 (a int not null); | ||
4297 | 5 | insert into t1 values (1),(2),(3); | ||
4298 | 6 | flush query cache; | ||
4299 | 7 | flush query cache; | ||
4300 | 8 | reset query cache; | ||
4301 | 9 | flush status; | ||
4302 | 10 | flush query cache; | ||
4303 | 11 | flush query cache; | ||
4304 | 12 | reset query cache; | ||
4305 | 13 | flush status; | ||
4306 | 14 | /* with comment first */select * from t1; | ||
4307 | 15 | a | ||
4308 | 16 | 1 | ||
4309 | 17 | 2 | ||
4310 | 18 | 3 | ||
4311 | 19 | ----------------------------------------------------- | ||
4312 | 20 | /* with comment first */select * from t1 | ||
4313 | 21 | ----------------------------------------------------- | ||
4314 | 22 | show status like "Qcache_queries_in_cache"; | ||
4315 | 23 | Variable_name Value | ||
4316 | 24 | Qcache_queries_in_cache 1 | ||
4317 | 25 | show status like "Qcache_inserts"; | ||
4318 | 26 | Variable_name Value | ||
4319 | 27 | Qcache_inserts 1 | ||
4320 | 28 | show status like "Qcache_hits"; | ||
4321 | 29 | Variable_name Value | ||
4322 | 30 | Qcache_hits 0 | ||
4323 | 31 | /* with comment first */select * from t1; | ||
4324 | 32 | a | ||
4325 | 33 | 1 | ||
4326 | 34 | 2 | ||
4327 | 35 | 3 | ||
4328 | 36 | /* with comment first */select * from t1; | ||
4329 | 37 | a | ||
4330 | 38 | 1 | ||
4331 | 39 | 2 | ||
4332 | 40 | 3 | ||
4333 | 41 | show status like "Qcache_queries_in_cache"; | ||
4334 | 42 | Variable_name Value | ||
4335 | 43 | Qcache_queries_in_cache 1 | ||
4336 | 44 | show status like "Qcache_inserts"; | ||
4337 | 45 | Variable_name Value | ||
4338 | 46 | Qcache_inserts 1 | ||
4339 | 47 | show status like "Qcache_hits"; | ||
4340 | 48 | Variable_name Value | ||
4341 | 49 | Qcache_hits 2 | ||
4342 | 50 | ----------------------------------------------------- | ||
4343 | 51 | # with comment first | ||
4344 | 52 | select * from t1 | ||
4345 | 53 | ----------------------------------------------------- | ||
4346 | 54 | show status like "Qcache_queries_in_cache"; | ||
4347 | 55 | Variable_name Value | ||
4348 | 56 | Qcache_queries_in_cache 1 | ||
4349 | 57 | show status like "Qcache_inserts"; | ||
4350 | 58 | Variable_name Value | ||
4351 | 59 | Qcache_inserts 1 | ||
4352 | 60 | show status like "Qcache_hits"; | ||
4353 | 61 | Variable_name Value | ||
4354 | 62 | Qcache_hits 2 | ||
4355 | 63 | # with comment first | ||
4356 | 64 | select * from t1; | ||
4357 | 65 | a | ||
4358 | 66 | 1 | ||
4359 | 67 | 2 | ||
4360 | 68 | 3 | ||
4361 | 69 | # with comment first | ||
4362 | 70 | select * from t1; | ||
4363 | 71 | a | ||
4364 | 72 | 1 | ||
4365 | 73 | 2 | ||
4366 | 74 | 3 | ||
4367 | 75 | show status like "Qcache_queries_in_cache"; | ||
4368 | 76 | Variable_name Value | ||
4369 | 77 | Qcache_queries_in_cache 1 | ||
4370 | 78 | show status like "Qcache_inserts"; | ||
4371 | 79 | Variable_name Value | ||
4372 | 80 | Qcache_inserts 1 | ||
4373 | 81 | show status like "Qcache_hits"; | ||
4374 | 82 | Variable_name Value | ||
4375 | 83 | Qcache_hits 4 | ||
4376 | 84 | ----------------------------------------------------- | ||
4377 | 85 | -- with comment first | ||
4378 | 86 | select * from t1 | ||
4379 | 87 | ----------------------------------------------------- | ||
4380 | 88 | show status like "Qcache_queries_in_cache"; | ||
4381 | 89 | Variable_name Value | ||
4382 | 90 | Qcache_queries_in_cache 1 | ||
4383 | 91 | show status like "Qcache_inserts"; | ||
4384 | 92 | Variable_name Value | ||
4385 | 93 | Qcache_inserts 1 | ||
4386 | 94 | show status like "Qcache_hits"; | ||
4387 | 95 | Variable_name Value | ||
4388 | 96 | Qcache_hits 4 | ||
4389 | 97 | -- with comment first | ||
4390 | 98 | select * from t1; | ||
4391 | 99 | a | ||
4392 | 100 | 1 | ||
4393 | 101 | 2 | ||
4394 | 102 | 3 | ||
4395 | 103 | -- with comment first | ||
4396 | 104 | select * from t1; | ||
4397 | 105 | a | ||
4398 | 106 | 1 | ||
4399 | 107 | 2 | ||
4400 | 108 | 3 | ||
4401 | 109 | show status like "Qcache_queries_in_cache"; | ||
4402 | 110 | Variable_name Value | ||
4403 | 111 | Qcache_queries_in_cache 1 | ||
4404 | 112 | show status like "Qcache_inserts"; | ||
4405 | 113 | Variable_name Value | ||
4406 | 114 | Qcache_inserts 1 | ||
4407 | 115 | show status like "Qcache_hits"; | ||
4408 | 116 | Variable_name Value | ||
4409 | 117 | Qcache_hits 6 | ||
4410 | 118 | ----------------------------------------------------- | ||
4411 | 119 | /* with comment first and "quote" */select * from t1 | ||
4412 | 120 | ----------------------------------------------------- | ||
4413 | 121 | show status like "Qcache_queries_in_cache"; | ||
4414 | 122 | Variable_name Value | ||
4415 | 123 | Qcache_queries_in_cache 1 | ||
4416 | 124 | show status like "Qcache_inserts"; | ||
4417 | 125 | Variable_name Value | ||
4418 | 126 | Qcache_inserts 1 | ||
4419 | 127 | show status like "Qcache_hits"; | ||
4420 | 128 | Variable_name Value | ||
4421 | 129 | Qcache_hits 6 | ||
4422 | 130 | /* with comment first and "quote" */select * from t1; | ||
4423 | 131 | a | ||
4424 | 132 | 1 | ||
4425 | 133 | 2 | ||
4426 | 134 | 3 | ||
4427 | 135 | /* with comment first and "quote" */select * from t1; | ||
4428 | 136 | a | ||
4429 | 137 | 1 | ||
4430 | 138 | 2 | ||
4431 | 139 | 3 | ||
4432 | 140 | show status like "Qcache_queries_in_cache"; | ||
4433 | 141 | Variable_name Value | ||
4434 | 142 | Qcache_queries_in_cache 1 | ||
4435 | 143 | show status like "Qcache_inserts"; | ||
4436 | 144 | Variable_name Value | ||
4437 | 145 | Qcache_inserts 1 | ||
4438 | 146 | show status like "Qcache_hits"; | ||
4439 | 147 | Variable_name Value | ||
4440 | 148 | Qcache_hits 8 | ||
4441 | 149 | ----------------------------------------------------- | ||
4442 | 150 | # with comment first and "quote" | ||
4443 | 151 | select * from t1 | ||
4444 | 152 | ----------------------------------------------------- | ||
4445 | 153 | show status like "Qcache_queries_in_cache"; | ||
4446 | 154 | Variable_name Value | ||
4447 | 155 | Qcache_queries_in_cache 1 | ||
4448 | 156 | show status like "Qcache_inserts"; | ||
4449 | 157 | Variable_name Value | ||
4450 | 158 | Qcache_inserts 1 | ||
4451 | 159 | show status like "Qcache_hits"; | ||
4452 | 160 | Variable_name Value | ||
4453 | 161 | Qcache_hits 8 | ||
4454 | 162 | # with comment first and "quote" | ||
4455 | 163 | select * from t1; | ||
4456 | 164 | a | ||
4457 | 165 | 1 | ||
4458 | 166 | 2 | ||
4459 | 167 | 3 | ||
4460 | 168 | # with comment first and "quote" | ||
4461 | 169 | select * from t1; | ||
4462 | 170 | a | ||
4463 | 171 | 1 | ||
4464 | 172 | 2 | ||
4465 | 173 | 3 | ||
4466 | 174 | show status like "Qcache_queries_in_cache"; | ||
4467 | 175 | Variable_name Value | ||
4468 | 176 | Qcache_queries_in_cache 1 | ||
4469 | 177 | show status like "Qcache_inserts"; | ||
4470 | 178 | Variable_name Value | ||
4471 | 179 | Qcache_inserts 1 | ||
4472 | 180 | show status like "Qcache_hits"; | ||
4473 | 181 | Variable_name Value | ||
4474 | 182 | Qcache_hits 10 | ||
4475 | 183 | ----------------------------------------------------- | ||
4476 | 184 | -- with comment first and "quote" | ||
4477 | 185 | select * from t1 | ||
4478 | 186 | ----------------------------------------------------- | ||
4479 | 187 | show status like "Qcache_queries_in_cache"; | ||
4480 | 188 | Variable_name Value | ||
4481 | 189 | Qcache_queries_in_cache 1 | ||
4482 | 190 | show status like "Qcache_inserts"; | ||
4483 | 191 | Variable_name Value | ||
4484 | 192 | Qcache_inserts 1 | ||
4485 | 193 | show status like "Qcache_hits"; | ||
4486 | 194 | Variable_name Value | ||
4487 | 195 | Qcache_hits 10 | ||
4488 | 196 | -- with comment first and "quote" | ||
4489 | 197 | select * from t1; | ||
4490 | 198 | a | ||
4491 | 199 | 1 | ||
4492 | 200 | 2 | ||
4493 | 201 | 3 | ||
4494 | 202 | -- with comment first and "quote" | ||
4495 | 203 | select * from t1; | ||
4496 | 204 | a | ||
4497 | 205 | 1 | ||
4498 | 206 | 2 | ||
4499 | 207 | 3 | ||
4500 | 208 | show status like "Qcache_queries_in_cache"; | ||
4501 | 209 | Variable_name Value | ||
4502 | 210 | Qcache_queries_in_cache 1 | ||
4503 | 211 | show status like "Qcache_inserts"; | ||
4504 | 212 | Variable_name Value | ||
4505 | 213 | Qcache_inserts 1 | ||
4506 | 214 | show status like "Qcache_hits"; | ||
4507 | 215 | Variable_name Value | ||
4508 | 216 | Qcache_hits 12 | ||
4509 | 217 | ----------------------------------------------------- | ||
4510 | 218 | /* with comment and whitespaces first */select * from t1 | ||
4511 | 219 | ----------------------------------------------------- | ||
4512 | 220 | show status like "Qcache_queries_in_cache"; | ||
4513 | 221 | Variable_name Value | ||
4514 | 222 | Qcache_queries_in_cache 1 | ||
4515 | 223 | show status like "Qcache_inserts"; | ||
4516 | 224 | Variable_name Value | ||
4517 | 225 | Qcache_inserts 1 | ||
4518 | 226 | show status like "Qcache_hits"; | ||
4519 | 227 | Variable_name Value | ||
4520 | 228 | Qcache_hits 12 | ||
4521 | 229 | /* with comment and whitespaces first */select * from t1; | ||
4522 | 230 | a | ||
4523 | 231 | 1 | ||
4524 | 232 | 2 | ||
4525 | 233 | 3 | ||
4526 | 234 | /* with comment and whitespaces first */select * from t1; | ||
4527 | 235 | a | ||
4528 | 236 | 1 | ||
4529 | 237 | 2 | ||
4530 | 238 | 3 | ||
4531 | 239 | show status like "Qcache_queries_in_cache"; | ||
4532 | 240 | Variable_name Value | ||
4533 | 241 | Qcache_queries_in_cache 1 | ||
4534 | 242 | show status like "Qcache_inserts"; | ||
4535 | 243 | Variable_name Value | ||
4536 | 244 | Qcache_inserts 1 | ||
4537 | 245 | show status like "Qcache_hits"; | ||
4538 | 246 | Variable_name Value | ||
4539 | 247 | Qcache_hits 14 | ||
4540 | 248 | ----------------------------------------------------- | ||
4541 | 249 | # with comment and whitespaces first | ||
4542 | 250 | select * from t1 | ||
4543 | 251 | ----------------------------------------------------- | ||
4544 | 252 | show status like "Qcache_queries_in_cache"; | ||
4545 | 253 | Variable_name Value | ||
4546 | 254 | Qcache_queries_in_cache 1 | ||
4547 | 255 | show status like "Qcache_inserts"; | ||
4548 | 256 | Variable_name Value | ||
4549 | 257 | Qcache_inserts 1 | ||
4550 | 258 | show status like "Qcache_hits"; | ||
4551 | 259 | Variable_name Value | ||
4552 | 260 | Qcache_hits 14 | ||
4553 | 261 | # with comment and whitespaces first | ||
4554 | 262 | select * from t1; | ||
4555 | 263 | a | ||
4556 | 264 | 1 | ||
4557 | 265 | 2 | ||
4558 | 266 | 3 | ||
4559 | 267 | # with comment and whitespaces first | ||
4560 | 268 | select * from t1; | ||
4561 | 269 | a | ||
4562 | 270 | 1 | ||
4563 | 271 | 2 | ||
4564 | 272 | 3 | ||
4565 | 273 | show status like "Qcache_queries_in_cache"; | ||
4566 | 274 | Variable_name Value | ||
4567 | 275 | Qcache_queries_in_cache 1 | ||
4568 | 276 | show status like "Qcache_inserts"; | ||
4569 | 277 | Variable_name Value | ||
4570 | 278 | Qcache_inserts 1 | ||
4571 | 279 | show status like "Qcache_hits"; | ||
4572 | 280 | Variable_name Value | ||
4573 | 281 | Qcache_hits 16 | ||
4574 | 282 | ----------------------------------------------------- | ||
4575 | 283 | -- with comment and whitespaces first | ||
4576 | 284 | select * from t1 | ||
4577 | 285 | ----------------------------------------------------- | ||
4578 | 286 | show status like "Qcache_queries_in_cache"; | ||
4579 | 287 | Variable_name Value | ||
4580 | 288 | Qcache_queries_in_cache 1 | ||
4581 | 289 | show status like "Qcache_inserts"; | ||
4582 | 290 | Variable_name Value | ||
4583 | 291 | Qcache_inserts 1 | ||
4584 | 292 | show status like "Qcache_hits"; | ||
4585 | 293 | Variable_name Value | ||
4586 | 294 | Qcache_hits 16 | ||
4587 | 295 | -- with comment and whitespaces first | ||
4588 | 296 | select * from t1; | ||
4589 | 297 | a | ||
4590 | 298 | 1 | ||
4591 | 299 | 2 | ||
4592 | 300 | 3 | ||
4593 | 301 | -- with comment and whitespaces first | ||
4594 | 302 | select * from t1; | ||
4595 | 303 | a | ||
4596 | 304 | 1 | ||
4597 | 305 | 2 | ||
4598 | 306 | 3 | ||
4599 | 307 | show status like "Qcache_queries_in_cache"; | ||
4600 | 308 | Variable_name Value | ||
4601 | 309 | Qcache_queries_in_cache 1 | ||
4602 | 310 | show status like "Qcache_inserts"; | ||
4603 | 311 | Variable_name Value | ||
4604 | 312 | Qcache_inserts 1 | ||
4605 | 313 | show status like "Qcache_hits"; | ||
4606 | 314 | Variable_name Value | ||
4607 | 315 | Qcache_hits 18 | ||
4608 | 316 | ----------------------------------------------------- | ||
4609 | 317 | select * /* internal comment */ from t1 | ||
4610 | 318 | ----------------------------------------------------- | ||
4611 | 319 | show status like "Qcache_queries_in_cache"; | ||
4612 | 320 | Variable_name Value | ||
4613 | 321 | Qcache_queries_in_cache 1 | ||
4614 | 322 | show status like "Qcache_inserts"; | ||
4615 | 323 | Variable_name Value | ||
4616 | 324 | Qcache_inserts 1 | ||
4617 | 325 | show status like "Qcache_hits"; | ||
4618 | 326 | Variable_name Value | ||
4619 | 327 | Qcache_hits 18 | ||
4620 | 328 | select * /* internal comment */ from t1; | ||
4621 | 329 | a | ||
4622 | 330 | 1 | ||
4623 | 331 | 2 | ||
4624 | 332 | 3 | ||
4625 | 333 | select * /* internal comment */ from t1; | ||
4626 | 334 | a | ||
4627 | 335 | 1 | ||
4628 | 336 | 2 | ||
4629 | 337 | 3 | ||
4630 | 338 | show status like "Qcache_queries_in_cache"; | ||
4631 | 339 | Variable_name Value | ||
4632 | 340 | Qcache_queries_in_cache 1 | ||
4633 | 341 | show status like "Qcache_inserts"; | ||
4634 | 342 | Variable_name Value | ||
4635 | 343 | Qcache_inserts 1 | ||
4636 | 344 | show status like "Qcache_hits"; | ||
4637 | 345 | Variable_name Value | ||
4638 | 346 | Qcache_hits 20 | ||
4639 | 347 | ----------------------------------------------------- | ||
4640 | 348 | select */* internal comment */ from t1 | ||
4641 | 349 | ----------------------------------------------------- | ||
4642 | 350 | show status like "Qcache_queries_in_cache"; | ||
4643 | 351 | Variable_name Value | ||
4644 | 352 | Qcache_queries_in_cache 1 | ||
4645 | 353 | show status like "Qcache_inserts"; | ||
4646 | 354 | Variable_name Value | ||
4647 | 355 | Qcache_inserts 1 | ||
4648 | 356 | show status like "Qcache_hits"; | ||
4649 | 357 | Variable_name Value | ||
4650 | 358 | Qcache_hits 20 | ||
4651 | 359 | select */* internal comment */ from t1; | ||
4652 | 360 | a | ||
4653 | 361 | 1 | ||
4654 | 362 | 2 | ||
4655 | 363 | 3 | ||
4656 | 364 | select */* internal comment */ from t1; | ||
4657 | 365 | a | ||
4658 | 366 | 1 | ||
4659 | 367 | 2 | ||
4660 | 368 | 3 | ||
4661 | 369 | show status like "Qcache_queries_in_cache"; | ||
4662 | 370 | Variable_name Value | ||
4663 | 371 | Qcache_queries_in_cache 1 | ||
4664 | 372 | show status like "Qcache_inserts"; | ||
4665 | 373 | Variable_name Value | ||
4666 | 374 | Qcache_inserts 1 | ||
4667 | 375 | show status like "Qcache_hits"; | ||
4668 | 376 | Variable_name Value | ||
4669 | 377 | Qcache_hits 22 | ||
4670 | 378 | ----------------------------------------------------- | ||
4671 | 379 | select */* internal comment */from t1 | ||
4672 | 380 | ----------------------------------------------------- | ||
4673 | 381 | show status like "Qcache_queries_in_cache"; | ||
4674 | 382 | Variable_name Value | ||
4675 | 383 | Qcache_queries_in_cache 1 | ||
4676 | 384 | show status like "Qcache_inserts"; | ||
4677 | 385 | Variable_name Value | ||
4678 | 386 | Qcache_inserts 1 | ||
4679 | 387 | show status like "Qcache_hits"; | ||
4680 | 388 | Variable_name Value | ||
4681 | 389 | Qcache_hits 22 | ||
4682 | 390 | select */* internal comment */from t1; | ||
4683 | 391 | a | ||
4684 | 392 | 1 | ||
4685 | 393 | 2 | ||
4686 | 394 | 3 | ||
4687 | 395 | select */* internal comment */from t1; | ||
4688 | 396 | a | ||
4689 | 397 | 1 | ||
4690 | 398 | 2 | ||
4691 | 399 | 3 | ||
4692 | 400 | show status like "Qcache_queries_in_cache"; | ||
4693 | 401 | Variable_name Value | ||
4694 | 402 | Qcache_queries_in_cache 1 | ||
4695 | 403 | show status like "Qcache_inserts"; | ||
4696 | 404 | Variable_name Value | ||
4697 | 405 | Qcache_inserts 1 | ||
4698 | 406 | show status like "Qcache_hits"; | ||
4699 | 407 | Variable_name Value | ||
4700 | 408 | Qcache_hits 24 | ||
4701 | 409 | ----------------------------------------------------- | ||
4702 | 410 | select * /* internal comment with "quote" */ from t1 | ||
4703 | 411 | ----------------------------------------------------- | ||
4704 | 412 | show status like "Qcache_queries_in_cache"; | ||
4705 | 413 | Variable_name Value | ||
4706 | 414 | Qcache_queries_in_cache 1 | ||
4707 | 415 | show status like "Qcache_inserts"; | ||
4708 | 416 | Variable_name Value | ||
4709 | 417 | Qcache_inserts 1 | ||
4710 | 418 | show status like "Qcache_hits"; | ||
4711 | 419 | Variable_name Value | ||
4712 | 420 | Qcache_hits 24 | ||
4713 | 421 | select * /* internal comment with "quote" */ from t1; | ||
4714 | 422 | a | ||
4715 | 423 | 1 | ||
4716 | 424 | 2 | ||
4717 | 425 | 3 | ||
4718 | 426 | select * /* internal comment with "quote" */ from t1; | ||
4719 | 427 | a | ||
4720 | 428 | 1 | ||
4721 | 429 | 2 | ||
4722 | 430 | 3 | ||
4723 | 431 | show status like "Qcache_queries_in_cache"; | ||
4724 | 432 | Variable_name Value | ||
4725 | 433 | Qcache_queries_in_cache 1 | ||
4726 | 434 | show status like "Qcache_inserts"; | ||
4727 | 435 | Variable_name Value | ||
4728 | 436 | Qcache_inserts 1 | ||
4729 | 437 | show status like "Qcache_hits"; | ||
4730 | 438 | Variable_name Value | ||
4731 | 439 | Qcache_hits 26 | ||
4732 | 440 | ----------------------------------------------------- | ||
4733 | 441 | select */* internal comment with "quote" */ from t1 | ||
4734 | 442 | ----------------------------------------------------- | ||
4735 | 443 | show status like "Qcache_queries_in_cache"; | ||
4736 | 444 | Variable_name Value | ||
4737 | 445 | Qcache_queries_in_cache 1 | ||
4738 | 446 | show status like "Qcache_inserts"; | ||
4739 | 447 | Variable_name Value | ||
4740 | 448 | Qcache_inserts 1 | ||
4741 | 449 | show status like "Qcache_hits"; | ||
4742 | 450 | Variable_name Value | ||
4743 | 451 | Qcache_hits 26 | ||
4744 | 452 | select */* internal comment with "quote" */ from t1; | ||
4745 | 453 | a | ||
4746 | 454 | 1 | ||
4747 | 455 | 2 | ||
4748 | 456 | 3 | ||
4749 | 457 | select */* internal comment with "quote" */ from t1; | ||
4750 | 458 | a | ||
4751 | 459 | 1 | ||
4752 | 460 | 2 | ||
4753 | 461 | 3 | ||
4754 | 462 | show status like "Qcache_queries_in_cache"; | ||
4755 | 463 | Variable_name Value | ||
4756 | 464 | Qcache_queries_in_cache 1 | ||
4757 | 465 | show status like "Qcache_inserts"; | ||
4758 | 466 | Variable_name Value | ||
4759 | 467 | Qcache_inserts 1 | ||
4760 | 468 | show status like "Qcache_hits"; | ||
4761 | 469 | Variable_name Value | ||
4762 | 470 | Qcache_hits 28 | ||
4763 | 471 | ----------------------------------------------------- | ||
4764 | 472 | select */* internal comment with "quote" */from t1 | ||
4765 | 473 | ----------------------------------------------------- | ||
4766 | 474 | show status like "Qcache_queries_in_cache"; | ||
4767 | 475 | Variable_name Value | ||
4768 | 476 | Qcache_queries_in_cache 1 | ||
4769 | 477 | show status like "Qcache_inserts"; | ||
4770 | 478 | Variable_name Value | ||
4771 | 479 | Qcache_inserts 1 | ||
4772 | 480 | show status like "Qcache_hits"; | ||
4773 | 481 | Variable_name Value | ||
4774 | 482 | Qcache_hits 28 | ||
4775 | 483 | select */* internal comment with "quote" */from t1; | ||
4776 | 484 | a | ||
4777 | 485 | 1 | ||
4778 | 486 | 2 | ||
4779 | 487 | 3 | ||
4780 | 488 | select */* internal comment with "quote" */from t1; | ||
4781 | 489 | a | ||
4782 | 490 | 1 | ||
4783 | 491 | 2 | ||
4784 | 492 | 3 | ||
4785 | 493 | show status like "Qcache_queries_in_cache"; | ||
4786 | 494 | Variable_name Value | ||
4787 | 495 | Qcache_queries_in_cache 1 | ||
4788 | 496 | show status like "Qcache_inserts"; | ||
4789 | 497 | Variable_name Value | ||
4790 | 498 | Qcache_inserts 1 | ||
4791 | 499 | show status like "Qcache_hits"; | ||
4792 | 500 | Variable_name Value | ||
4793 | 501 | Qcache_hits 30 | ||
4794 | 502 | ----------------------------------------------------- | ||
4795 | 503 | select * from t1 | ||
4796 | 504 | |||
4797 | 505 | ----------------------------------------------------- | ||
4798 | 506 | show status like "Qcache_queries_in_cache"; | ||
4799 | 507 | Variable_name Value | ||
4800 | 508 | Qcache_queries_in_cache 1 | ||
4801 | 509 | show status like "Qcache_inserts"; | ||
4802 | 510 | Variable_name Value | ||
4803 | 511 | Qcache_inserts 1 | ||
4804 | 512 | show status like "Qcache_hits"; | ||
4805 | 513 | Variable_name Value | ||
4806 | 514 | Qcache_hits 30 | ||
4807 | 515 | select * from t1 | ||
4808 | 516 | ; | ||
4809 | 517 | a | ||
4810 | 518 | 1 | ||
4811 | 519 | 2 | ||
4812 | 520 | 3 | ||
4813 | 521 | select * from t1 | ||
4814 | 522 | ; | ||
4815 | 523 | a | ||
4816 | 524 | 1 | ||
4817 | 525 | 2 | ||
4818 | 526 | 3 | ||
4819 | 527 | show status like "Qcache_queries_in_cache"; | ||
4820 | 528 | Variable_name Value | ||
4821 | 529 | Qcache_queries_in_cache 1 | ||
4822 | 530 | show status like "Qcache_inserts"; | ||
4823 | 531 | Variable_name Value | ||
4824 | 532 | Qcache_inserts 1 | ||
4825 | 533 | show status like "Qcache_hits"; | ||
4826 | 534 | Variable_name Value | ||
4827 | 535 | Qcache_hits 32 | ||
4828 | 536 | ----------------------------------------------------- | ||
4829 | 537 | select * from t1 | ||
4830 | 538 | ----------------------------------------------------- | ||
4831 | 539 | show status like "Qcache_queries_in_cache"; | ||
4832 | 540 | Variable_name Value | ||
4833 | 541 | Qcache_queries_in_cache 1 | ||
4834 | 542 | show status like "Qcache_inserts"; | ||
4835 | 543 | Variable_name Value | ||
4836 | 544 | Qcache_inserts 1 | ||
4837 | 545 | show status like "Qcache_hits"; | ||
4838 | 546 | Variable_name Value | ||
4839 | 547 | Qcache_hits 32 | ||
4840 | 548 | select * from t1 ; | ||
4841 | 549 | a | ||
4842 | 550 | 1 | ||
4843 | 551 | 2 | ||
4844 | 552 | 3 | ||
4845 | 553 | select * from t1 ; | ||
4846 | 554 | a | ||
4847 | 555 | 1 | ||
4848 | 556 | 2 | ||
4849 | 557 | 3 | ||
4850 | 558 | show status like "Qcache_queries_in_cache"; | ||
4851 | 559 | Variable_name Value | ||
4852 | 560 | Qcache_queries_in_cache 1 | ||
4853 | 561 | show status like "Qcache_inserts"; | ||
4854 | 562 | Variable_name Value | ||
4855 | 563 | Qcache_inserts 1 | ||
4856 | 564 | show status like "Qcache_hits"; | ||
4857 | 565 | Variable_name Value | ||
4858 | 566 | Qcache_hits 34 | ||
4859 | 567 | ----------------------------------------------------- | ||
4860 | 568 | select * from t1 | ||
4861 | 569 | ----------------------------------------------------- | ||
4862 | 570 | show status like "Qcache_queries_in_cache"; | ||
4863 | 571 | Variable_name Value | ||
4864 | 572 | Qcache_queries_in_cache 1 | ||
4865 | 573 | show status like "Qcache_inserts"; | ||
4866 | 574 | Variable_name Value | ||
4867 | 575 | Qcache_inserts 1 | ||
4868 | 576 | show status like "Qcache_hits"; | ||
4869 | 577 | Variable_name Value | ||
4870 | 578 | Qcache_hits 34 | ||
4871 | 579 | select * from t1 ; | ||
4872 | 580 | a | ||
4873 | 581 | 1 | ||
4874 | 582 | 2 | ||
4875 | 583 | 3 | ||
4876 | 584 | select * from t1 ; | ||
4877 | 585 | a | ||
4878 | 586 | 1 | ||
4879 | 587 | 2 | ||
4880 | 588 | 3 | ||
4881 | 589 | show status like "Qcache_queries_in_cache"; | ||
4882 | 590 | Variable_name Value | ||
4883 | 591 | Qcache_queries_in_cache 1 | ||
4884 | 592 | show status like "Qcache_inserts"; | ||
4885 | 593 | Variable_name Value | ||
4886 | 594 | Qcache_inserts 1 | ||
4887 | 595 | show status like "Qcache_hits"; | ||
4888 | 596 | Variable_name Value | ||
4889 | 597 | Qcache_hits 36 | ||
4890 | 598 | ----------------------------------------------------- | ||
4891 | 599 | select * from t1 | ||
4892 | 600 | /* comment in the end */ | ||
4893 | 601 | ----------------------------------------------------- | ||
4894 | 602 | show status like "Qcache_queries_in_cache"; | ||
4895 | 603 | Variable_name Value | ||
4896 | 604 | Qcache_queries_in_cache 1 | ||
4897 | 605 | show status like "Qcache_inserts"; | ||
4898 | 606 | Variable_name Value | ||
4899 | 607 | Qcache_inserts 1 | ||
4900 | 608 | show status like "Qcache_hits"; | ||
4901 | 609 | Variable_name Value | ||
4902 | 610 | Qcache_hits 36 | ||
4903 | 611 | select * from t1 | ||
4904 | 612 | /* comment in the end */; | ||
4905 | 613 | a | ||
4906 | 614 | 1 | ||
4907 | 615 | 2 | ||
4908 | 616 | 3 | ||
4909 | 617 | select * from t1 | ||
4910 | 618 | /* comment in the end */; | ||
4911 | 619 | a | ||
4912 | 620 | 1 | ||
4913 | 621 | 2 | ||
4914 | 622 | 3 | ||
4915 | 623 | show status like "Qcache_queries_in_cache"; | ||
4916 | 624 | Variable_name Value | ||
4917 | 625 | Qcache_queries_in_cache 1 | ||
4918 | 626 | show status like "Qcache_inserts"; | ||
4919 | 627 | Variable_name Value | ||
4920 | 628 | Qcache_inserts 1 | ||
4921 | 629 | show status like "Qcache_hits"; | ||
4922 | 630 | Variable_name Value | ||
4923 | 631 | Qcache_hits 38 | ||
4924 | 632 | ----------------------------------------------------- | ||
4925 | 633 | select * from t1 | ||
4926 | 634 | /* *\/ */ | ||
4927 | 635 | ----------------------------------------------------- | ||
4928 | 636 | show status like "Qcache_queries_in_cache"; | ||
4929 | 637 | Variable_name Value | ||
4930 | 638 | Qcache_queries_in_cache 1 | ||
4931 | 639 | show status like "Qcache_inserts"; | ||
4932 | 640 | Variable_name Value | ||
4933 | 641 | Qcache_inserts 1 | ||
4934 | 642 | show status like "Qcache_hits"; | ||
4935 | 643 | Variable_name Value | ||
4936 | 644 | Qcache_hits 38 | ||
4937 | 645 | select * from t1 | ||
4938 | 646 | /* *\/ */; | ||
4939 | 647 | a | ||
4940 | 648 | 1 | ||
4941 | 649 | 2 | ||
4942 | 650 | 3 | ||
4943 | 651 | select * from t1 | ||
4944 | 652 | /* *\/ */; | ||
4945 | 653 | a | ||
4946 | 654 | 1 | ||
4947 | 655 | 2 | ||
4948 | 656 | 3 | ||
4949 | 657 | show status like "Qcache_queries_in_cache"; | ||
4950 | 658 | Variable_name Value | ||
4951 | 659 | Qcache_queries_in_cache 1 | ||
4952 | 660 | show status like "Qcache_inserts"; | ||
4953 | 661 | Variable_name Value | ||
4954 | 662 | Qcache_inserts 1 | ||
4955 | 663 | show status like "Qcache_hits"; | ||
4956 | 664 | Variable_name Value | ||
4957 | 665 | Qcache_hits 40 | ||
4958 | 666 | ----------------------------------------------------- | ||
4959 | 667 | select * from t1 | ||
4960 | 668 | /* comment in the end */ | ||
4961 | 669 | |||
4962 | 670 | ----------------------------------------------------- | ||
4963 | 671 | show status like "Qcache_queries_in_cache"; | ||
4964 | 672 | Variable_name Value | ||
4965 | 673 | Qcache_queries_in_cache 1 | ||
4966 | 674 | show status like "Qcache_inserts"; | ||
4967 | 675 | Variable_name Value | ||
4968 | 676 | Qcache_inserts 1 | ||
4969 | 677 | show status like "Qcache_hits"; | ||
4970 | 678 | Variable_name Value | ||
4971 | 679 | Qcache_hits 40 | ||
4972 | 680 | select * from t1 | ||
4973 | 681 | /* comment in the end */ | ||
4974 | 682 | ; | ||
4975 | 683 | a | ||
4976 | 684 | 1 | ||
4977 | 685 | 2 | ||
4978 | 686 | 3 | ||
4979 | 687 | select * from t1 | ||
4980 | 688 | /* comment in the end */ | ||
4981 | 689 | ; | ||
4982 | 690 | a | ||
4983 | 691 | 1 | ||
4984 | 692 | 2 | ||
4985 | 693 | 3 | ||
4986 | 694 | show status like "Qcache_queries_in_cache"; | ||
4987 | 695 | Variable_name Value | ||
4988 | 696 | Qcache_queries_in_cache 1 | ||
4989 | 697 | show status like "Qcache_inserts"; | ||
4990 | 698 | Variable_name Value | ||
4991 | 699 | Qcache_inserts 1 | ||
4992 | 700 | show status like "Qcache_hits"; | ||
4993 | 701 | Variable_name Value | ||
4994 | 702 | Qcache_hits 42 | ||
4995 | 703 | ----------------------------------------------------- | ||
4996 | 704 | select * from t1 #comment in the end | ||
4997 | 705 | ----------------------------------------------------- | ||
4998 | 706 | show status like "Qcache_queries_in_cache"; | ||
4999 | 707 | Variable_name Value | ||
5000 | 708 | Qcache_queries_in_cache 1 |
The diff has been truncated for viewing.
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