Merging utf16le from MySQL-5.6
added: mysql-test/include/ctype_heap.inc mysql-test/include/ctype_strtoll10.inc mysql-test/r/ctype_utf16le.result mysql-test/t/ctype_utf16le.test modified: cmake/character_sets.cmake include/m_ctype.h mysql-test/r/ctype_ucs.result mysql-test/r/ctype_utf16.result mysql-test/r/ctype_utf32.result mysql-test/suite/funcs_1/r/innodb_func_view.result mysql-test/suite/funcs_1/r/memory_func_view.result mysql-test/suite/funcs_1/r/myisam_func_view.result mysql-test/suite/sys_vars/r/character_set_client_basic.result mysql-test/suite/sys_vars/r/character_set_connection_basic.result mysql-test/suite/sys_vars/r/character_set_database_basic.result mysql-test/suite/sys_vars/r/character_set_filesystem_basic.result mysql-test/suite/sys_vars/r/character_set_results_basic.result mysql-test/t/ctype_ucs.test mysql-test/t/ctype_utf16.test mysql-test/t/ctype_utf32.test mysys/charset-def.c sql/item_func.cc sql/sys_vars.cc strings/ctype-latin1.c strings/ctype-ucs2.c
This commit is contained in:
parent
41013f16a0
commit
d1e162e011
@ -25,14 +25,14 @@ ENDIF()
|
||||
SET(CHARSETS ${DEFAULT_CHARSET} latin1 utf8 utf8mb4)
|
||||
SET(CHARSETS_COMPLEX
|
||||
big5 cp1250 cp932 eucjpms euckr gb2312 gbk latin1 latin2
|
||||
sjis tis620 ucs2 ujis utf8 utf8mb4 utf16 utf32)
|
||||
sjis tis620 ucs2 ujis utf8 utf8mb4 utf16 utf16le utf32)
|
||||
|
||||
SET(CHARSETS_AVAILABLE
|
||||
binary armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257
|
||||
cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8
|
||||
greek hebrew hp8 keybcs2 koi8r koi8u
|
||||
latin1 latin2 latin5 latin7 macce macroman
|
||||
sjis swe7 tis620 ucs2 ujis utf8 utf8mb4 utf16 utf32)
|
||||
sjis swe7 tis620 ucs2 ujis utf8 utf8mb4 utf16 utf16le utf32)
|
||||
|
||||
|
||||
SET (EXTRA_CHARSETS "all")
|
||||
|
@ -362,6 +362,8 @@ extern struct charset_info_st my_charset_ujis_japanese_ci;
|
||||
extern struct charset_info_st my_charset_utf16_bin;
|
||||
extern struct charset_info_st my_charset_utf16_general_ci;
|
||||
extern struct charset_info_st my_charset_utf16_unicode_ci;
|
||||
extern struct charset_info_st my_charset_utf16le_bin;
|
||||
extern struct charset_info_st my_charset_utf16le_general_ci;
|
||||
extern struct charset_info_st my_charset_utf32_bin;
|
||||
extern struct charset_info_st my_charset_utf32_general_ci;
|
||||
extern struct charset_info_st my_charset_utf32_unicode_ci;
|
||||
|
14
mysql-test/include/ctype_heap.inc
Normal file
14
mysql-test/include/ctype_heap.inc
Normal file
@ -0,0 +1,14 @@
|
||||
--echo #
|
||||
--echo # Test that cs->coll->hash_sort() ignores trailing spaces
|
||||
--echo #
|
||||
SELECT @@collation_connection;
|
||||
CREATE TABLE t1 ENGINE=HEAP AS SELECT REPEAT (' ', 10) AS a LIMIT 0;
|
||||
ALTER TABLE t1 ADD KEY (a);
|
||||
CREATE TABLE t2 (a VARCHAR(10));
|
||||
INSERT INTO t2 VALUES ('0'),('1'),('2'),('3'),('4'),('5'),('6'),('7');
|
||||
INSERT INTO t2 VALUES ('8'),('9'),('A'),('B'),('C'),('D'),('E'),('F');
|
||||
INSERT INTO t1 SELECT CONCAT('a',t21.a,t22.a) FROM t2 t21, t2 t22 ORDER BY 1;
|
||||
DROP TABLE t2;
|
||||
INSERT INTO t1 VALUES ('a ');
|
||||
SELECT a, HEX(a) FROM t1 WHERE a='a';
|
||||
DROP TABLE t1;
|
49
mysql-test/include/ctype_strtoll10.inc
Normal file
49
mysql-test/include/ctype_strtoll10.inc
Normal file
@ -0,0 +1,49 @@
|
||||
--echo #
|
||||
--echo # Testing cs->cset->strtoll10()
|
||||
--echo #
|
||||
|
||||
SELECT @@character_set_connection;
|
||||
|
||||
SELECT CAST('1' AS UNSIGNED);
|
||||
SELECT CAST('12' AS UNSIGNED);
|
||||
SELECT CAST('123' AS UNSIGNED);
|
||||
SELECT CAST('1234' AS UNSIGNED);
|
||||
SELECT CAST('12345' AS UNSIGNED);
|
||||
SELECT CAST('123456' AS UNSIGNED);
|
||||
SELECT CAST('1234567' AS UNSIGNED);
|
||||
SELECT CAST('12345678' AS UNSIGNED);
|
||||
SELECT CAST('123456789' AS UNSIGNED);
|
||||
SELECT CAST('1234567891' AS UNSIGNED);
|
||||
SELECT CAST('12345678912' AS UNSIGNED);
|
||||
SELECT CAST('123456789123' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234567' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345678' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456789' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234567891' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345678912' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456789123' AS UNSIGNED);
|
||||
|
||||
SELECT CAST('1x' AS UNSIGNED);
|
||||
SELECT CAST('12x' AS UNSIGNED);
|
||||
SELECT CAST('123x' AS UNSIGNED);
|
||||
SELECT CAST('1234x' AS UNSIGNED);
|
||||
SELECT CAST('12345x' AS UNSIGNED);
|
||||
SELECT CAST('123456x' AS UNSIGNED);
|
||||
SELECT CAST('1234567x' AS UNSIGNED);
|
||||
SELECT CAST('12345678x' AS UNSIGNED);
|
||||
SELECT CAST('123456789x' AS UNSIGNED);
|
||||
SELECT CAST('1234567891x' AS UNSIGNED);
|
||||
SELECT CAST('12345678912x' AS UNSIGNED);
|
||||
SELECT CAST('123456789123x' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234x' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345x' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456x' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234567x' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345678x' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456789x' AS UNSIGNED);
|
||||
SELECT CAST('1234567891234567891x' AS UNSIGNED);
|
||||
SELECT CAST('12345678912345678912x' AS UNSIGNED);
|
||||
SELECT CAST('123456789123456789123x' AS UNSIGNED);
|
@ -1274,7 +1274,7 @@ SELECT CONVERT(QUOTE(CHAR(0xf5 using ucs2)), SIGNED);
|
||||
CONVERT(QUOTE(CHAR(0xf5 using ucs2)), SIGNED)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''õ''
|
||||
End of 5.0 tests
|
||||
#
|
||||
# Start of 5.1 tests
|
||||
@ -4200,3 +4200,22 @@ DROP TABLE t1;
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
#
|
||||
# Start of 5.6 tests
|
||||
#
|
||||
#
|
||||
# Bug#59145 valgrind warnings for uninitialized values in my_strtoll10_mb2
|
||||
#
|
||||
SET NAMES latin1;
|
||||
SELECT CONVERT(CHAR(NULL USING ucs2), UNSIGNED);
|
||||
CONVERT(CHAR(NULL USING ucs2), UNSIGNED)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
DO IFNULL(CHAR(NULL USING ucs2), '');
|
||||
DO CAST(CONVERT('' USING ucs2) AS UNSIGNED);
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
#
|
||||
# End of 5.6 tests
|
||||
#
|
||||
|
@ -921,6 +921,182 @@ Warning 1292 Truncated incorrect DOUBLE value: '1.2xxx'
|
||||
select left('aaa','1');
|
||||
left('aaa','1')
|
||||
a
|
||||
#
|
||||
# Testing cs->cset->strtoll10()
|
||||
#
|
||||
SELECT @@character_set_connection;
|
||||
@@character_set_connection
|
||||
utf16
|
||||
SELECT CAST('1' AS UNSIGNED);
|
||||
CAST('1' AS UNSIGNED)
|
||||
1
|
||||
SELECT CAST('12' AS UNSIGNED);
|
||||
CAST('12' AS UNSIGNED)
|
||||
12
|
||||
SELECT CAST('123' AS UNSIGNED);
|
||||
CAST('123' AS UNSIGNED)
|
||||
123
|
||||
SELECT CAST('1234' AS UNSIGNED);
|
||||
CAST('1234' AS UNSIGNED)
|
||||
1234
|
||||
SELECT CAST('12345' AS UNSIGNED);
|
||||
CAST('12345' AS UNSIGNED)
|
||||
12345
|
||||
SELECT CAST('123456' AS UNSIGNED);
|
||||
CAST('123456' AS UNSIGNED)
|
||||
123456
|
||||
SELECT CAST('1234567' AS UNSIGNED);
|
||||
CAST('1234567' AS UNSIGNED)
|
||||
1234567
|
||||
SELECT CAST('12345678' AS UNSIGNED);
|
||||
CAST('12345678' AS UNSIGNED)
|
||||
12345678
|
||||
SELECT CAST('123456789' AS UNSIGNED);
|
||||
CAST('123456789' AS UNSIGNED)
|
||||
123456789
|
||||
SELECT CAST('1234567891' AS UNSIGNED);
|
||||
CAST('1234567891' AS UNSIGNED)
|
||||
1234567891
|
||||
SELECT CAST('12345678912' AS UNSIGNED);
|
||||
CAST('12345678912' AS UNSIGNED)
|
||||
12345678912
|
||||
SELECT CAST('123456789123' AS UNSIGNED);
|
||||
CAST('123456789123' AS UNSIGNED)
|
||||
123456789123
|
||||
SELECT CAST('1234567891234' AS UNSIGNED);
|
||||
CAST('1234567891234' AS UNSIGNED)
|
||||
1234567891234
|
||||
SELECT CAST('12345678912345' AS UNSIGNED);
|
||||
CAST('12345678912345' AS UNSIGNED)
|
||||
12345678912345
|
||||
SELECT CAST('123456789123456' AS UNSIGNED);
|
||||
CAST('123456789123456' AS UNSIGNED)
|
||||
123456789123456
|
||||
SELECT CAST('1234567891234567' AS UNSIGNED);
|
||||
CAST('1234567891234567' AS UNSIGNED)
|
||||
1234567891234567
|
||||
SELECT CAST('12345678912345678' AS UNSIGNED);
|
||||
CAST('12345678912345678' AS UNSIGNED)
|
||||
12345678912345678
|
||||
SELECT CAST('123456789123456789' AS UNSIGNED);
|
||||
CAST('123456789123456789' AS UNSIGNED)
|
||||
123456789123456789
|
||||
SELECT CAST('1234567891234567891' AS UNSIGNED);
|
||||
CAST('1234567891234567891' AS UNSIGNED)
|
||||
1234567891234567891
|
||||
SELECT CAST('12345678912345678912' AS UNSIGNED);
|
||||
CAST('12345678912345678912' AS UNSIGNED)
|
||||
12345678912345678912
|
||||
SELECT CAST('123456789123456789123' AS UNSIGNED);
|
||||
CAST('123456789123456789123' AS UNSIGNED)
|
||||
18446744073709551615
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123'
|
||||
SELECT CAST('1x' AS UNSIGNED);
|
||||
CAST('1x' AS UNSIGNED)
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1x'
|
||||
SELECT CAST('12x' AS UNSIGNED);
|
||||
CAST('12x' AS UNSIGNED)
|
||||
12
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12x'
|
||||
SELECT CAST('123x' AS UNSIGNED);
|
||||
CAST('123x' AS UNSIGNED)
|
||||
123
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123x'
|
||||
SELECT CAST('1234x' AS UNSIGNED);
|
||||
CAST('1234x' AS UNSIGNED)
|
||||
1234
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234x'
|
||||
SELECT CAST('12345x' AS UNSIGNED);
|
||||
CAST('12345x' AS UNSIGNED)
|
||||
12345
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345x'
|
||||
SELECT CAST('123456x' AS UNSIGNED);
|
||||
CAST('123456x' AS UNSIGNED)
|
||||
123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456x'
|
||||
SELECT CAST('1234567x' AS UNSIGNED);
|
||||
CAST('1234567x' AS UNSIGNED)
|
||||
1234567
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567x'
|
||||
SELECT CAST('12345678x' AS UNSIGNED);
|
||||
CAST('12345678x' AS UNSIGNED)
|
||||
12345678
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678x'
|
||||
SELECT CAST('123456789x' AS UNSIGNED);
|
||||
CAST('123456789x' AS UNSIGNED)
|
||||
123456789
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789x'
|
||||
SELECT CAST('1234567891x' AS UNSIGNED);
|
||||
CAST('1234567891x' AS UNSIGNED)
|
||||
1234567891
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891x'
|
||||
SELECT CAST('12345678912x' AS UNSIGNED);
|
||||
CAST('12345678912x' AS UNSIGNED)
|
||||
12345678912
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912x'
|
||||
SELECT CAST('123456789123x' AS UNSIGNED);
|
||||
CAST('123456789123x' AS UNSIGNED)
|
||||
123456789123
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123x'
|
||||
SELECT CAST('1234567891234x' AS UNSIGNED);
|
||||
CAST('1234567891234x' AS UNSIGNED)
|
||||
1234567891234
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234x'
|
||||
SELECT CAST('12345678912345x' AS UNSIGNED);
|
||||
CAST('12345678912345x' AS UNSIGNED)
|
||||
12345678912345
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345x'
|
||||
SELECT CAST('123456789123456x' AS UNSIGNED);
|
||||
CAST('123456789123456x' AS UNSIGNED)
|
||||
123456789123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456x'
|
||||
SELECT CAST('1234567891234567x' AS UNSIGNED);
|
||||
CAST('1234567891234567x' AS UNSIGNED)
|
||||
1234567891234567
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234567x'
|
||||
SELECT CAST('12345678912345678x' AS UNSIGNED);
|
||||
CAST('12345678912345678x' AS UNSIGNED)
|
||||
12345678912345678
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345678x'
|
||||
SELECT CAST('123456789123456789x' AS UNSIGNED);
|
||||
CAST('123456789123456789x' AS UNSIGNED)
|
||||
123456789123456789
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789x'
|
||||
SELECT CAST('1234567891234567891x' AS UNSIGNED);
|
||||
CAST('1234567891234567891x' AS UNSIGNED)
|
||||
1234567891234567891
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234567891x'
|
||||
SELECT CAST('12345678912345678912x' AS UNSIGNED);
|
||||
CAST('12345678912345678912x' AS UNSIGNED)
|
||||
12345678912345678912
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345678912x'
|
||||
SELECT CAST('123456789123456789123x' AS UNSIGNED);
|
||||
CAST('123456789123456789123x' AS UNSIGNED)
|
||||
18446744073709551615
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123x'
|
||||
create table t1 (a int);
|
||||
insert into t1 values ('-1234.1e2');
|
||||
insert into t1 values ('-1234.1e2xxxx');
|
||||
|
1576
mysql-test/r/ctype_utf16le.result
Normal file
1576
mysql-test/r/ctype_utf16le.result
Normal file
File diff suppressed because it is too large
Load Diff
@ -919,6 +919,182 @@ Warning 1292 Truncated incorrect DOUBLE value: '1.2xxx'
|
||||
select left('aaa','1');
|
||||
left('aaa','1')
|
||||
a
|
||||
#
|
||||
# Testing cs->cset->strtoll10()
|
||||
#
|
||||
SELECT @@character_set_connection;
|
||||
@@character_set_connection
|
||||
utf32
|
||||
SELECT CAST('1' AS UNSIGNED);
|
||||
CAST('1' AS UNSIGNED)
|
||||
1
|
||||
SELECT CAST('12' AS UNSIGNED);
|
||||
CAST('12' AS UNSIGNED)
|
||||
12
|
||||
SELECT CAST('123' AS UNSIGNED);
|
||||
CAST('123' AS UNSIGNED)
|
||||
123
|
||||
SELECT CAST('1234' AS UNSIGNED);
|
||||
CAST('1234' AS UNSIGNED)
|
||||
1234
|
||||
SELECT CAST('12345' AS UNSIGNED);
|
||||
CAST('12345' AS UNSIGNED)
|
||||
12345
|
||||
SELECT CAST('123456' AS UNSIGNED);
|
||||
CAST('123456' AS UNSIGNED)
|
||||
123456
|
||||
SELECT CAST('1234567' AS UNSIGNED);
|
||||
CAST('1234567' AS UNSIGNED)
|
||||
1234567
|
||||
SELECT CAST('12345678' AS UNSIGNED);
|
||||
CAST('12345678' AS UNSIGNED)
|
||||
12345678
|
||||
SELECT CAST('123456789' AS UNSIGNED);
|
||||
CAST('123456789' AS UNSIGNED)
|
||||
123456789
|
||||
SELECT CAST('1234567891' AS UNSIGNED);
|
||||
CAST('1234567891' AS UNSIGNED)
|
||||
1234567891
|
||||
SELECT CAST('12345678912' AS UNSIGNED);
|
||||
CAST('12345678912' AS UNSIGNED)
|
||||
12345678912
|
||||
SELECT CAST('123456789123' AS UNSIGNED);
|
||||
CAST('123456789123' AS UNSIGNED)
|
||||
123456789123
|
||||
SELECT CAST('1234567891234' AS UNSIGNED);
|
||||
CAST('1234567891234' AS UNSIGNED)
|
||||
1234567891234
|
||||
SELECT CAST('12345678912345' AS UNSIGNED);
|
||||
CAST('12345678912345' AS UNSIGNED)
|
||||
12345678912345
|
||||
SELECT CAST('123456789123456' AS UNSIGNED);
|
||||
CAST('123456789123456' AS UNSIGNED)
|
||||
123456789123456
|
||||
SELECT CAST('1234567891234567' AS UNSIGNED);
|
||||
CAST('1234567891234567' AS UNSIGNED)
|
||||
1234567891234567
|
||||
SELECT CAST('12345678912345678' AS UNSIGNED);
|
||||
CAST('12345678912345678' AS UNSIGNED)
|
||||
12345678912345678
|
||||
SELECT CAST('123456789123456789' AS UNSIGNED);
|
||||
CAST('123456789123456789' AS UNSIGNED)
|
||||
123456789123456789
|
||||
SELECT CAST('1234567891234567891' AS UNSIGNED);
|
||||
CAST('1234567891234567891' AS UNSIGNED)
|
||||
1234567891234567891
|
||||
SELECT CAST('12345678912345678912' AS UNSIGNED);
|
||||
CAST('12345678912345678912' AS UNSIGNED)
|
||||
12345678912345678912
|
||||
SELECT CAST('123456789123456789123' AS UNSIGNED);
|
||||
CAST('123456789123456789123' AS UNSIGNED)
|
||||
18446744073709551615
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123'
|
||||
SELECT CAST('1x' AS UNSIGNED);
|
||||
CAST('1x' AS UNSIGNED)
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1x'
|
||||
SELECT CAST('12x' AS UNSIGNED);
|
||||
CAST('12x' AS UNSIGNED)
|
||||
12
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12x'
|
||||
SELECT CAST('123x' AS UNSIGNED);
|
||||
CAST('123x' AS UNSIGNED)
|
||||
123
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123x'
|
||||
SELECT CAST('1234x' AS UNSIGNED);
|
||||
CAST('1234x' AS UNSIGNED)
|
||||
1234
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234x'
|
||||
SELECT CAST('12345x' AS UNSIGNED);
|
||||
CAST('12345x' AS UNSIGNED)
|
||||
12345
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345x'
|
||||
SELECT CAST('123456x' AS UNSIGNED);
|
||||
CAST('123456x' AS UNSIGNED)
|
||||
123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456x'
|
||||
SELECT CAST('1234567x' AS UNSIGNED);
|
||||
CAST('1234567x' AS UNSIGNED)
|
||||
1234567
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567x'
|
||||
SELECT CAST('12345678x' AS UNSIGNED);
|
||||
CAST('12345678x' AS UNSIGNED)
|
||||
12345678
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678x'
|
||||
SELECT CAST('123456789x' AS UNSIGNED);
|
||||
CAST('123456789x' AS UNSIGNED)
|
||||
123456789
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789x'
|
||||
SELECT CAST('1234567891x' AS UNSIGNED);
|
||||
CAST('1234567891x' AS UNSIGNED)
|
||||
1234567891
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891x'
|
||||
SELECT CAST('12345678912x' AS UNSIGNED);
|
||||
CAST('12345678912x' AS UNSIGNED)
|
||||
12345678912
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912x'
|
||||
SELECT CAST('123456789123x' AS UNSIGNED);
|
||||
CAST('123456789123x' AS UNSIGNED)
|
||||
123456789123
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123x'
|
||||
SELECT CAST('1234567891234x' AS UNSIGNED);
|
||||
CAST('1234567891234x' AS UNSIGNED)
|
||||
1234567891234
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234x'
|
||||
SELECT CAST('12345678912345x' AS UNSIGNED);
|
||||
CAST('12345678912345x' AS UNSIGNED)
|
||||
12345678912345
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345x'
|
||||
SELECT CAST('123456789123456x' AS UNSIGNED);
|
||||
CAST('123456789123456x' AS UNSIGNED)
|
||||
123456789123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456x'
|
||||
SELECT CAST('1234567891234567x' AS UNSIGNED);
|
||||
CAST('1234567891234567x' AS UNSIGNED)
|
||||
1234567891234567
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234567x'
|
||||
SELECT CAST('12345678912345678x' AS UNSIGNED);
|
||||
CAST('12345678912345678x' AS UNSIGNED)
|
||||
12345678912345678
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345678x'
|
||||
SELECT CAST('123456789123456789x' AS UNSIGNED);
|
||||
CAST('123456789123456789x' AS UNSIGNED)
|
||||
123456789123456789
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789x'
|
||||
SELECT CAST('1234567891234567891x' AS UNSIGNED);
|
||||
CAST('1234567891234567891x' AS UNSIGNED)
|
||||
1234567891234567891
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '1234567891234567891x'
|
||||
SELECT CAST('12345678912345678912x' AS UNSIGNED);
|
||||
CAST('12345678912345678912x' AS UNSIGNED)
|
||||
12345678912345678912
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '12345678912345678912x'
|
||||
SELECT CAST('123456789123456789123x' AS UNSIGNED);
|
||||
CAST('123456789123456789123x' AS UNSIGNED)
|
||||
18446744073709551615
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '123456789123456789123x'
|
||||
create table t1 (a int);
|
||||
insert into t1 values ('-1234.1e2');
|
||||
insert into t1 values ('-1234.1e2xxxx');
|
||||
@ -1126,6 +1302,20 @@ my_col
|
||||
00
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#32859 Character sets: no warning with non-fitting chariot wheel
|
||||
#
|
||||
CREATE TABLE t1 (utf32 CHAR(5) CHARACTER SET utf32, latin1 CHAR(5) CHARACTER SET latin1);
|
||||
INSERT INTO t1 (utf32) VALUES (0xc581);
|
||||
UPDATE t1 SET latin1 = utf32;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x00\x00\xC5\x81' for column 'latin1' at row 1
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1 (utf32) VALUES (0x100cc);
|
||||
UPDATE t1 SET latin1 = utf32;
|
||||
Warnings:
|
||||
Warning 1366 Incorrect string value: '\x00\x01\x00\xCC' for column 'latin1' at row 1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#55912 FORMAT with locale set fails for numbers < 1000
|
||||
#
|
||||
SET collation_connection=utf32_general_ci;
|
||||
|
@ -2675,7 +2675,7 @@ NULL NULL 1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
Warning 1292 Truncated incorrect INTEGER value: '<---------1000 characters-------------------------------------------------------------------------------------------------------'
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---äÖüß@µ*$-- '
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$-- '
|
||||
Note 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
SHOW CREATE VIEW v1;
|
||||
View Create View character_set_client collation_connection
|
||||
@ -2692,7 +2692,7 @@ NULL NULL 1
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
Warning 1292 Truncated incorrect INTEGER value: '<---------1000 characters-------------------------------------------------------------------------------------------------------'
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---äÖüß@µ*$-- '
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$-- '
|
||||
Note 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
DROP VIEW v1;
|
||||
|
||||
@ -2709,10 +2709,10 @@ NULL NULL 1
|
||||
0 ---äÖüß@µ*$-- 4
|
||||
18446744073709551615 -1 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: ''
|
||||
Warning 1292 Truncated incorrect INTEGER value: '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
|
||||
Warning 1292 Truncated incorrect INTEGER value: '<--------30 characters------->'
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---äÖüß@µ*$-- '
|
||||
Warning 1292 Truncated incorrect INTEGER value: '-1'
|
||||
Warning 1292 Truncated incorrect INTEGER value: ' ---\xC3\xA4\xC3\x96\xC3\xBC\xC3\x9F@\xC2\xB5*$-- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
|
||||
Warning 1292 Truncated incorrect INTEGER value: '-1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
|
||||
Note 1105 Cast to unsigned converted negative integer to it's positive complement
|
||||
SHOW CREATE VIEW v1;
|
||||
View Create View character_set_client collation_connection
|
||||
@ -2727,10 +2727,10 @@ NULL NULL 1
|
||||
0 ---äÖüß@µ*$-- |