diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-01-11 17:20:16 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2016-01-11 17:20:16 +0400 |
commit | 454589b67f9609a78f00e521fe2ef0994eed4f3f (patch) | |
tree | 1d17569e30a61865cc6af35e025fb4e03952efbf /mysql-test/r/type_int.result | |
parent | 250ab81200bf62d02c25144e3da38f7a9d3ced19 (diff) | |
download | mariadb-git-454589b67f9609a78f00e521fe2ef0994eed4f3f.tar.gz |
MDEV-9393 Split Copy_field::get_copy_func() into virtual methods in Field
Also fixes:
MDEV-9391 InnoDB does not produce warnings when doing WHERE int_column=varchar_column
MDEV-9337 ALTER from DECIMAL and INT to DATETIME returns a wrong result
MDEV-9340 Copying from INT/DOUBLE to ENUM is inconsistent
MDEV-9392 Copying from DECIMAL to YEAR is not consistent about warnings
Diffstat (limited to 'mysql-test/r/type_int.result')
-rw-r--r-- | mysql-test/r/type_int.result | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/mysql-test/r/type_int.result b/mysql-test/r/type_int.result index 4e7b928ac07..530a4134f4a 100644 --- a/mysql-test/r/type_int.result +++ b/mysql-test/r/type_int.result @@ -36,3 +36,60 @@ DROP TABLE t1; # # End of 10.1 tests # +# +# Start of 10.2 tests +# +# +# MDEV-9393 Split Copy_field::get_copy_func() into virtual methods in Field +# +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (10.1),(10.9); +SELECT * FROM t1; +a +10 +11 +DROP TABLE t1; +CREATE TABLE t1 (a INT); +CREATE TABLE t2 (a DECIMAL(10,2)); +INSERT INTO t2 VALUES (10.1),(10.9); +INSERT INTO t1 SELECT a FROM t2; +SELECT * FROM t1; +a +10 +11 +DROP TABLE t1,t2; +CREATE TABLE t1 (a DECIMAL(10,2)); +INSERT INTO t1 VALUES (10.1),(10.9); +ALTER TABLE t1 MODIFY a INT; +SELECT * FROM t1; +a +10 +11 +DROP TABLE t1; +CREATE TABLE t1 (a INT); +INSERT INTO t1 VALUES (TIME'00:00:10.1'),(TIME'00:00:10.9'); +SELECT * FROM t1; +a +10 +10 +DROP TABLE t1; +CREATE TABLE t1 (a INT); +CREATE TABLE t2 (a TIME(1)); +INSERT INTO t2 VALUES (10.1),(10.9); +INSERT INTO t1 SELECT a FROM t2; +SELECT * FROM t1; +a +10 +10 +DROP TABLE t1,t2; +CREATE TABLE t1 (a TIME(1)); +INSERT INTO t1 VALUES (10.1),(10.9); +ALTER TABLE t1 MODIFY a INT; +SELECT * FROM t1; +a +10 +10 +DROP TABLE t1; +# +# End of 10.2 tests +# |