diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-21 09:28:12 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-21 09:28:12 +0400 |
commit | 8c479820da2ef10438485864a65ceb3ac750c228 (patch) | |
tree | 4eeff5cd42f456ec0330f9dc8594e5ca03f47a82 /mysql-test/t/metadata.test | |
parent | a8caa8e04a27f7463abd4fd588a4ce1799e600c7 (diff) | |
download | mariadb-git-8c479820da2ef10438485864a65ceb3ac750c228.tar.gz |
MDEV-12856 Wrong .. metadata for DIV + MDEV-12857..errors on CREATE..SELECT..DIV
This is a joint patch for:
MDEV-12856 Wrong result set metadata for DIV
MDEV-12857 Out-of-range errors on CREATE..SELECT 2222222222 DIV 1
Diffstat (limited to 'mysql-test/t/metadata.test')
-rw-r--r-- | mysql-test/t/metadata.test | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/metadata.test b/mysql-test/t/metadata.test index 0bd1b98c07d..7c50dadea0b 100644 --- a/mysql-test/t/metadata.test +++ b/mysql-test/t/metadata.test @@ -326,3 +326,15 @@ SELECT LAST_INSERT_ID(); SELECT ROW_COUNT(), FOUND_ROWS(); SELECT TIMESTAMPDIFF(MONTH,'2003-02-01','2003-05-01'); --disable_metadata + + +--echo # +--echo # MDEV-12856 Wrong result set metadata for DIV +--echo # + +--enable_metadata +SELECT + 2 DIV 1 AS d0l, + 222222222 DIV 1 AS d09, + 2222222222 DIV 1 AS d10; +--disable_metadata |