mirror of
https://github.com/MariaDB/server.git
synced 2025-12-09 08:01:34 +03:00
merging
This commit is contained in:
19
mysql-test/t/row_test.test
Normal file
19
mysql-test/t/row_test.test
Normal file
@@ -0,0 +1,19 @@
|
||||
SELECT (1,2,3)=(1,2,3);
|
||||
SELECT (2,2,3)=(1+1,2,3);
|
||||
SELECT (1,2,3)=(1+1,2,3);
|
||||
SELECT (1,2,3)<(1+1,2,3);
|
||||
SELECT (1,2,3)>(1+1,2,3);
|
||||
SELECT (1,2,3)<=(1+1,2,3);
|
||||
SELECT (1,2,3)>=(1+1,2,3);
|
||||
SELECT (1,2,3)<>(1+1,2,3);
|
||||
SELECT (1,2,(3,4,5))=(1,2,(3,4,5));
|
||||
SELECT ('test',2,3.33)=('test',2,3.33);
|
||||
-- error 1239
|
||||
SELECT ('test',2,3.33)=('test',2,3.33,4);
|
||||
drop table if exists t1;
|
||||
create table t1 ( a int, b int, c int);
|
||||
insert into t1 values (1,2,3), (2,3,1), (3,2,1);
|
||||
select * from t1 where (1,2,3)=(a,b,c);
|
||||
select * from t1 where (0,2,3)=(a,b,c);
|
||||
select * from t1 where (1,2,3)<(a,b,c);
|
||||
drop table t1;
|
||||
Reference in New Issue
Block a user