mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
Many files:
Moving UCS2 test into ctype_ucs Bug#9232 Test failure: mysql_client_test and type_newdecimal
This commit is contained in:
parent
e76019bc42
commit
5493b4a03b
4 changed files with 17 additions and 17 deletions
|
@ -642,3 +642,11 @@ Warnings:
|
|||
Warning 1264 Out of range value adjusted for column 'Field1' at row 1
|
||||
DROP TABLE t1;
|
||||
SET NAMES latin1;
|
||||
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
||||
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
||||
update t1 set b=a;
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
1.1 1.100
|
||||
2.1 2.100
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -180,14 +180,6 @@ t1 CREATE TABLE `t1` (
|
|||
`-(-1.1)` decimal(7,1) NOT NULL default '0.0'
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
||||
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
||||
update t1 set b=a;
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
1.1 1.100
|
||||
2.1 2.100
|
||||
DROP TABLE t1;
|
||||
set session sql_mode='traditional';
|
||||
select 1e10/0e0;
|
||||
1e10/0e0
|
||||
|
|
|
@ -414,3 +414,12 @@ CREATE TABLE t1 (Field1 int(10) unsigned default '0');
|
|||
INSERT INTO t1 VALUES ('-1');
|
||||
DROP TABLE t1;
|
||||
SET NAMES latin1;
|
||||
|
||||
#
|
||||
# Conversion from an UCS2 string to a decimal column
|
||||
#
|
||||
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
||||
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
||||
update t1 set b=a;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -90,15 +90,6 @@ create table t1 select round(15.4,-1), truncate(-5678.123451,-3), abs(-1.1), -(-
|
|||
show create table t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# conversion from ucs2
|
||||
#
|
||||
CREATE TABLE t1 (a varchar(64) character set ucs2, b decimal(10,3));
|
||||
INSERT INTO t1 VALUES ("1.1", 0), ("2.1", 0);
|
||||
update t1 set b=a;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Trydy's tests
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue