summaryrefslogtreecommitdiff
path: root/mysql-test/r/mdev316.result
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-06-17 16:09:16 +0200
committerSergei Golubchik <sergii@pisem.net>2012-06-17 16:09:16 +0200
commitb8153269f1df2945953b0c96f7f1c539b2a5a0de (patch)
treeb228da1b8a8710dde42544b2c41d756362a56b3c /mysql-test/r/mdev316.result
parent6cf8672f432ed3afe71fcbe3cd7a45cec974f729 (diff)
downloadmariadb-git-b8153269f1df2945953b0c96f7f1c539b2a5a0de.tar.gz
fix an overly agressive optimization in Item_func_conv_charset
Diffstat (limited to 'mysql-test/r/mdev316.result')
-rw-r--r--mysql-test/r/mdev316.result15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/r/mdev316.result b/mysql-test/r/mdev316.result
index a035f85f106..43082769872 100644
--- a/mysql-test/r/mdev316.result
+++ b/mysql-test/r/mdev316.result
@@ -5,3 +5,18 @@ select '' in ('',convert(0,time));
select case '' when '' then 1 when convert(0,time) then 2 end;
case '' when '' then 1 when convert(0,time) then 2 end
1
+select convert(0x0030 using ucs2) div 1, concat(convert(0x0030 using ucs2)) div 1;
+convert(0x0030 using ucs2) div 1 concat(convert(0x0030 using ucs2)) div 1
+0 0
+select cast(convert(0x0030 using ucs2) as double), cast(concat(convert(0x0030 using ucs2)) as double);
+cast(convert(0x0030 using ucs2) as double) cast(concat(convert(0x0030 using ucs2)) as double)
+0 0
+select cast(convert(0x0030 using ucs2) as decimal(5.2)), cast(concat(convert(0x0030 using ucs2)) as decimal(5.2));
+cast(convert(0x0030 using ucs2) as decimal(5.2)) cast(concat(convert(0x0030 using ucs2)) as decimal(5.2))
+0 0
+select cast(convert(_ucs2 0x0030 using latin1) as date), cast(concat(convert(_ucs2 0x0030 using latin1)) as date);
+cast(convert(_ucs2 0x0030 using latin1) as date) cast(concat(convert(_ucs2 0x0030 using latin1)) as date)
+NULL NULL
+Warnings:
+Warning 1292 Incorrect datetime value: '0'
+Warning 1292 Incorrect datetime value: '0'