Fix opensource mysql test cases
This commit is contained in:
committed by
wangzelin.wzl
parent
2532407a7e
commit
23c7e1fe04
@ -1793,12 +1793,12 @@ a
|
||||
1
|
||||
select !w, !!w, !(!w), ! !w, not w, not not w, w is true, w is not false, (not w) is false, not(w is false), if(w,'true','false'), !1+1, !'a', !false, !isnull('a'), !!isnull('a') from (select 0 w union select 1) w;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def !w !w 8 1 1 N 32897 0 63
|
||||
def !!w !!w 8 1 1 N 32897 0 63
|
||||
def !(!w) !(!w) 8 1 1 N 32897 0 63
|
||||
def ! !w ! !w 8 1 1 N 32897 0 63
|
||||
def not w not w 8 1 1 N 32897 0 63
|
||||
def not not w not not w 8 1 1 N 32897 0 63
|
||||
def !w !w 8 1 1 Y 32896 0 63
|
||||
def !!w !!w 8 1 1 Y 32896 0 63
|
||||
def !(!w) !(!w) 8 1 1 Y 32896 0 63
|
||||
def ! !w ! !w 8 1 1 Y 32896 0 63
|
||||
def not w not w 8 1 1 Y 32896 0 63
|
||||
def not not w not not w 8 1 1 Y 32896 0 63
|
||||
def w is true w is true 3 1 1 N 32897 0 63
|
||||
def w is not false w is not false 3 1 1 N 32897 0 63
|
||||
def (not w) is false (not w) is false 3 1 1 N 32897 0 63
|
||||
|
||||
@ -154,7 +154,7 @@ insert into t1 values('01-01-01'),('02-02-02'),('01-01-01'),('02-02-02');
|
||||
set @bug28261='';
|
||||
select if(@bug28261 = f1, '', @bug28261:= f1) from t1;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def if(@bug28261 = f1, '', @bug28261:= f1) if(@bug28261 = f1, '', @bug28261:= f1) 253 4194304 26 Y 0 31 45
|
||||
def if(@bug28261 = f1, '', @bug28261:= f1) if(@bug28261 = f1, '', @bug28261:= f1) 253 104 26 Y 0 31 45
|
||||
if(@bug28261 = f1, '', @bug28261:= f1)
|
||||
2001-01-01 00:00:00.000000
|
||||
2002-02-02 00:00:00.000000
|
||||
|
||||
@ -44,16 +44,22 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
|
||||
def str_to_date('1970-01-02','null') + 100 str_to_date('1970-01-02','null') + 100 8 11 0 Y 32896 0 63
|
||||
str_to_date('1970-01-02','null') + 100
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect datetime value: '1970-01-02' for function str_to_date
|
||||
select str_to_date('1970-01-02',0)+ 1;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def str_to_date('1970-01-02',0)+ 1 str_to_date('1970-01-02',0)+ 1 246 21 0 Y 32896 0 63
|
||||
str_to_date('1970-01-02',0)+ 1
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect datetime value: '1970-01-02' for function str_to_date
|
||||
select str_to_date('1970-01-02', 23) +10;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def str_to_date('1970-01-02', 23) +10 str_to_date('1970-01-02', 23) +10 246 21 0 Y 32896 0 63
|
||||
str_to_date('1970-01-02', 23) +10
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect datetime value: '1970-01-02' for function str_to_date
|
||||
select str_to_date('1970-01-02 12:23:32','%Y-%m-%d %H:%i:%s')+ 10000;
|
||||
Catalog Database Table Table_alias Column Column_alias Type Length Max length Is_null Flags Decimals Charsetnr
|
||||
def str_to_date('1970-01-02 12:23:32','%Y-%m-%d %H:%i:%s')+ 10000 str_to_date('1970-01-02 12:23:32','%Y-%m-%d %H:%i:%s')+ 10000 246 21 14 Y 32896 0 63
|
||||
@ -74,6 +80,8 @@ Catalog Database Table Table_alias Column Column_alias Type Length Max length Is
|
||||
def str_to_date('12:23:32',10)+ 10000 str_to_date('12:23:32',10)+ 10000 246 21 0 Y 32896 0 63
|
||||
str_to_date('12:23:32',10)+ 10000
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1411 Incorrect datetime value: '12:23:32' for function str_to_date
|
||||
drop table if exists t1, t2, t3, t3k;
|
||||
CREATE TABLE t1 (EMPNUM INT);
|
||||
INSERT INTO t1 VALUES (0), (2);
|
||||
|
||||
Reference in New Issue
Block a user