File: func_equal.result

package info (click to toggle)
mariadb-10.0 10.0.32-0%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 476,064 kB
  • sloc: cpp: 1,400,131; ansic: 832,140; perl: 54,391; sh: 41,304; pascal: 32,365; yacc: 14,921; xml: 5,257; sql: 4,667; cs: 4,647; makefile: 4,555; ruby: 4,465; python: 2,292; lex: 1,427; java: 941; asm: 295; awk: 54; php: 22; sed: 16
file content (45 lines) | stat: -rw-r--r-- 1,317 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
drop table if exists t1,t2;
select 0<=>0,0.0<=>0.0,0E0=0E0,"A"<=>"A",NULL<=>NULL;
0<=>0	0.0<=>0.0	0E0=0E0	"A"<=>"A"	NULL<=>NULL
1	1	1	1	1
select 1<=>0,0<=>NULL,NULL<=>0;
1<=>0	0<=>NULL	NULL<=>0
0	0	0
select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
1.0<=>0.0	0.0<=>NULL	NULL<=>0.0
0	0	0
select "A"<=>"B","A"<=>NULL,NULL<=>"A";
"A"<=>"B"	"A"<=>NULL	NULL<=>"A"
0	0	0
select 0<=>0.0, 0.0<=>0E0, 0E0<=>"0", 10.0<=>1E1, 10<=>10.0, 10<=>1E1;
0<=>0.0	0.0<=>0E0	0E0<=>"0"	10.0<=>1E1	10<=>10.0	10<=>1E1
1	1	1	1	1	1
select 1.0<=>0E1,10<=>NULL,NULL<=>0.0, NULL<=>0E0;
1.0<=>0E1	10<=>NULL	NULL<=>0.0	NULL<=>0E0
0	0	0	0
create table t1 (id int, value int);
create table t2 (id int, value int);
insert into t1 values (1,null);
insert into t2 values (1,null);
select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
id	value	id	value	t1.value<=>t2.value
1	NULL	1	NULL	1
select * from t1 where id <=>id;
id	value
1	NULL
select * from t1 where value <=> value;
id	value
1	NULL
select * from t1 where id <=> value or value<=>id;
id	value
drop table t1,t2;
create table t1 (a bigint unsigned);
insert into t1 values (4828532208463511553);
select * from t1 where a = '4828532208463511553';
a
4828532208463511553
select * from t1 where a in ('4828532208463511553');
a
4828532208463511553
drop table t1;
#End of 4.1 tests