50 changed files with 616 additions and 107 deletions
-
52client/mysqltest.cc
-
1include/CMakeLists.txt
-
80include/handler_ername.h
-
4mysql-test/extra/binlog_tests/binlog.test
-
12mysql-test/include/ctype_str_to_date.inc
-
19mysql-test/r/ctype_latin1.result
-
19mysql-test/r/ctype_sjis.result
-
19mysql-test/r/ctype_ucs.result
-
19mysql-test/r/ctype_utf8.result
-
44mysql-test/r/func_equal.result
-
2mysql-test/r/mysqltest.result
-
31mysql-test/r/view.result
-
2mysql-test/suite/mtr2/overlay.inc
-
3mysql-test/suite/mtr2/single.result
-
4mysql-test/suite/mtr2/single.test
-
11mysql-test/suite/sys_vars/r/thread_pool_size_high.result
-
1mysql-test/suite/sys_vars/t/thread_pool_size_basic.opt
-
1mysql-test/suite/sys_vars/t/thread_pool_size_basic.test
-
1mysql-test/suite/sys_vars/t/thread_pool_size_high.opt
-
14mysql-test/suite/sys_vars/t/thread_pool_size_high.test
-
6mysql-test/t/auto_increment.test
-
56mysql-test/t/auto_increment_ranges.inc
-
1mysql-test/t/ctype_latin1.test
-
1mysql-test/t/ctype_sjis.test
-
1mysql-test/t/ctype_ucs.test
-
1mysql-test/t/ctype_utf8.test
-
52mysql-test/t/func_equal.test
-
4mysql-test/t/replace.test
-
28mysql-test/t/view.test
-
18sql/item.cc
-
4sql/item.h
-
36sql/item_cmpfunc.cc
-
1sql/item_cmpfunc.h
-
38sql/item_subselect.cc
-
18sql/item_timefunc.cc
-
6sql/item_timefunc.h
-
19sql/opt_subselect.cc
-
6sql/rpl_parallel.cc
-
1sql/rpl_rli.cc
-
3sql/rpl_rli.h
-
3sql/slave.cc
-
5sql/sql_plist.h
-
17sql/sql_show.cc
-
14sql/sys_vars.cc
-
3sql/threadpool.h
-
1sql/threadpool_common.cc
-
25sql/threadpool_unix.cc
-
2storage/myisam/mysql-test/mtr2/overlay.inc
-
12storage/myisam/mysql-test/mtr2/single.rdiff
-
2storage/xtradb/handler/ha_innodb.cc
@ -0,0 +1,80 @@ |
|||
/* Copyright (c) 2013 SkySQL Ab |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; version 2 of the License. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software Foundation, |
|||
Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ |
|||
|
|||
/* Names of all handler error numbers. Used by mysqltest */ |
|||
|
|||
{ "HA_ERR_KEY_NOT_FOUND", HA_ERR_KEY_NOT_FOUND, "" }, |
|||
{ "HA_ERR_FOUND_DUPP_KEY", HA_ERR_FOUND_DUPP_KEY, "" }, |
|||
{ "HA_ERR_INTERNAL_ERROR", HA_ERR_INTERNAL_ERROR, "" }, |
|||
{ "HA_ERR_RECORD_CHANGED", HA_ERR_RECORD_CHANGED, "" }, |
|||
{ "HA_ERR_WRONG_INDEX", HA_ERR_WRONG_INDEX, "" }, |
|||
{ "HA_ERR_CRASHED", HA_ERR_CRASHED, "" }, |
|||
{ "HA_ERR_WRONG_IN_RECORD", HA_ERR_WRONG_IN_RECORD, "" }, |
|||
{ "HA_ERR_OUT_OF_MEM", HA_ERR_OUT_OF_MEM, "" }, |
|||
{ "HA_ERR_NOT_A_TABLE", HA_ERR_NOT_A_TABLE, "" }, |
|||
{ "HA_ERR_WRONG_COMMAND", HA_ERR_WRONG_COMMAND, "" }, |
|||
{ "HA_ERR_OLD_FILE", HA_ERR_OLD_FILE, "" }, |
|||
{ "HA_ERR_NO_ACTIVE_RECORD", HA_ERR_NO_ACTIVE_RECORD, "" }, |
|||
{ "HA_ERR_RECORD_DELETED", HA_ERR_RECORD_DELETED, "" }, |
|||
{ "HA_ERR_RECORD_FILE_FULL", HA_ERR_RECORD_FILE_FULL, "" }, |
|||
{ "HA_ERR_INDEX_FILE_FULL", HA_ERR_INDEX_FILE_FULL, "" }, |
|||
{ "HA_ERR_END_OF_FILE", HA_ERR_END_OF_FILE, "" }, |
|||
{ "HA_ERR_UNSUPPORTED", HA_ERR_UNSUPPORTED, "" }, |
|||
{ "HA_ERR_TO_BIG_ROW", HA_ERR_TO_BIG_ROW, "" }, |
|||
{ "HA_WRONG_CREATE_OPTION", HA_WRONG_CREATE_OPTION, "" }, |
|||
{ "HA_ERR_FOUND_DUPP_UNIQUE", HA_ERR_FOUND_DUPP_UNIQUE, "" }, |
|||
{ "HA_ERR_UNKNOWN_CHARSET", HA_ERR_UNKNOWN_CHARSET, "" }, |
|||
{ "HA_ERR_WRONG_MRG_TABLE_DEF", HA_ERR_WRONG_MRG_TABLE_DEF, "" }, |
|||
{ "HA_ERR_CRASHED_ON_REPAIR", HA_ERR_CRASHED_ON_REPAIR, "" }, |
|||
{ "HA_ERR_CRASHED_ON_USAGE", HA_ERR_CRASHED_ON_USAGE, "" }, |
|||
{ "HA_ERR_LOCK_WAIT_TIMEOUT", HA_ERR_LOCK_WAIT_TIMEOUT, "" }, |
|||
{ "HA_ERR_LOCK_TABLE_FULL", HA_ERR_LOCK_TABLE_FULL, "" }, |
|||
{ "HA_ERR_READ_ONLY_TRANSACTION", HA_ERR_READ_ONLY_TRANSACTION, "" }, |
|||
{ "HA_ERR_LOCK_DEADLOCK", HA_ERR_LOCK_DEADLOCK, "" }, |
|||
{ "HA_ERR_CANNOT_ADD_FOREIGN", HA_ERR_CANNOT_ADD_FOREIGN, "" }, |
|||
{ "HA_ERR_NO_REFERENCED_ROW", HA_ERR_NO_REFERENCED_ROW, "" }, |
|||
{ "HA_ERR_ROW_IS_REFERENCED", HA_ERR_ROW_IS_REFERENCED, "" }, |
|||
{ "HA_ERR_NO_SAVEPOINT", HA_ERR_NO_SAVEPOINT, "" }, |
|||
{ "HA_ERR_NON_UNIQUE_BLOCK_SIZE", HA_ERR_NON_UNIQUE_BLOCK_SIZE, "" }, |
|||
{ "HA_ERR_NO_SUCH_TABLE", HA_ERR_NO_SUCH_TABLE, "" }, |
|||
{ "HA_ERR_TABLE_EXIST", HA_ERR_TABLE_EXIST, "" }, |
|||
{ "HA_ERR_NO_CONNECTION", HA_ERR_NO_CONNECTION, "" }, |
|||
{ "HA_ERR_NULL_IN_SPATIAL", HA_ERR_NULL_IN_SPATIAL, "" }, |
|||
{ "HA_ERR_TABLE_DEF_CHANGED", HA_ERR_TABLE_DEF_CHANGED, "" }, |
|||
{ "HA_ERR_NO_PARTITION_FOUND", HA_ERR_NO_PARTITION_FOUND, "" }, |
|||
{ "HA_ERR_RBR_LOGGING_FAILED", HA_ERR_RBR_LOGGING_FAILED, "" }, |
|||
{ "HA_ERR_DROP_INDEX_FK", HA_ERR_DROP_INDEX_FK, "" }, |
|||
{ "HA_ERR_FOREIGN_DUPLICATE_KEY", HA_ERR_FOREIGN_DUPLICATE_KEY, "" }, |
|||
{ "HA_ERR_TABLE_NEEDS_UPGRADE", HA_ERR_TABLE_NEEDS_UPGRADE, "" }, |
|||
{ "HA_ERR_TABLE_READONLY", HA_ERR_TABLE_READONLY, "" }, |
|||
{ "HA_ERR_AUTOINC_READ_FAILED", HA_ERR_AUTOINC_READ_FAILED, "" }, |
|||
{ "HA_ERR_AUTOINC_ERANGE", HA_ERR_AUTOINC_ERANGE, "" }, |
|||
{ "HA_ERR_GENERIC", HA_ERR_GENERIC, "" }, |
|||
{ "HA_ERR_RECORD_IS_THE_SAME", HA_ERR_RECORD_IS_THE_SAME, "" }, |
|||
{ "HA_ERR_LOGGING_IMPOSSIBLE", HA_ERR_LOGGING_IMPOSSIBLE, "" }, |
|||
{ "HA_ERR_CORRUPT_EVENT", HA_ERR_CORRUPT_EVENT, "" }, |
|||
{ "HA_ERR_NEW_FILE", HA_ERR_NEW_FILE, "" }, |
|||
{ "HA_ERR_ROWS_EVENT_APPLY", HA_ERR_ROWS_EVENT_APPLY, "" }, |
|||
{ "HA_ERR_INITIALIZATION", HA_ERR_INITIALIZATION, "" }, |
|||
{ "HA_ERR_FILE_TOO_SHORT", HA_ERR_FILE_TOO_SHORT, "" }, |
|||
{ "HA_ERR_WRONG_CRC", HA_ERR_WRONG_CRC, "" }, |
|||
{ "HA_ERR_TOO_MANY_CONCURRENT_TRXS", HA_ERR_TOO_MANY_CONCURRENT_TRXS, "" }, |
|||
{ "HA_ERR_INDEX_COL_TOO_LONG", HA_ERR_INDEX_COL_TOO_LONG, "" }, |
|||
{ "HA_ERR_INDEX_CORRUPT", HA_ERR_INDEX_CORRUPT, "" }, |
|||
{ "HA_ERR_UNDO_REC_TOO_BIG", HA_ERR_UNDO_REC_TOO_BIG, "" }, |
|||
{ "HA_ERR_TABLE_IN_FK_CHECK", HA_ERR_TABLE_IN_FK_CHECK, "" }, |
|||
{ "HA_ERR_ROW_NOT_VISIBLE", HA_ERR_ROW_NOT_VISIBLE, "" }, |
|||
{ "HA_ERR_ABORTED_BY_USER", HA_ERR_ABORTED_BY_USER, "" }, |
|||
{ "HA_ERR_DISK_FULL", HA_ERR_DISK_FULL, "" }, |
@ -0,0 +1,12 @@ |
|||
--echo # |
|||
--echo # MDEV-4842 STR_TO_DATE does not work with UCS2/UTF16/UTF32 |
|||
--echo # |
|||
|
|||
SELECT @@character_set_connection, HEX(CAST(_utf8'÷' AS CHAR)); |
|||
SELECT STR_TO_DATE(CAST(_utf8'2001÷01÷01' AS CHAR),CAST(_utf8'%Y÷%m÷%d' AS CHAR)); |
|||
CREATE TABLE t1 AS SELECT REPEAT(' ', 64) AS subject, REPEAT(' ',64) AS pattern LIMIT 0; |
|||
SHOW COLUMNS FROM t1; |
|||
INSERT INTO t1 VALUES (_utf8'2001÷01÷01',_utf8'%Y÷%m÷%d'); |
|||
SELECT HEX(subject),HEX(pattern),STR_TO_DATE(subject, pattern) FROM t1; |
|||
DROP TABLE t1; |
|||
|
@ -0,0 +1,2 @@ |
|||
select 2; |
|||
|
@ -1,3 +1,6 @@ |
|||
select 1; |
|||
1 |
|||
1 |
|||
select 2; |
|||
2 |
|||
2 |
@ -0,0 +1,11 @@ |
|||
SELECT @@global.thread_pool_size; |
|||
@@global.thread_pool_size |
|||
200 |
|||
SET @@global.thread_pool_size=150; |
|||
SET @@global.thread_pool_size=200; |
|||
SET @@global.thread_pool_size=201; |
|||
Warnings: |
|||
Warning 1292 Truncated incorrect thread_pool_size value: '201' |
|||
SELECT @@global.thread_pool_size; |
|||
@@global.thread_pool_size |
|||
200 |
@ -0,0 +1 @@ |
|||
--loose-thread-handling=pool-of-threads |
@ -0,0 +1 @@ |
|||
--loose-thread-handling=pool-of-threads --loose-thread-pool-size=200 |
@ -0,0 +1,14 @@ |
|||
--source include/not_windows.inc |
|||
--source include/not_embedded.inc |
|||
--source include/have_pool_of_threads.inc |
|||
|
|||
SELECT @@global.thread_pool_size; |
|||
|
|||
# Set lower value |
|||
SET @@global.thread_pool_size=150; |
|||
# Set original value |
|||
SET @@global.thread_pool_size=200; |
|||
# Try higher value |
|||
SET @@global.thread_pool_size=201; |
|||
|
|||
SELECT @@global.thread_pool_size; |
@ -0,0 +1,2 @@ |
|||
select 3; |
|||
|
@ -0,0 +1,12 @@ |
|||
--- suite/mtr2/single.result 2013-11-10 03:58:37.000000000 +0400 |
|||
+++ suite/mtr2/single.reject 2013-11-10 03:59:08.000000000 +0400 |
|||
@@ -1,6 +1,6 @@ |
|||
select 1; |
|||
1 |
|||
1 |
|||
-select 2; |
|||
-2 |
|||
-2 |
|||
+select 3; |
|||
+3 |
|||
+3 |
Write
Preview
Loading…
Cancel
Save
Reference in new issue