~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/func_equal.result

  • Committer: Monty Taylor
  • Date: 2008-09-15 17:24:04 UTC
  • Revision ID: monty@inaugust.com-20080915172404-ygh6hiyu0q7qpa9x
Removed strndup calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
drop table if exists t1,t2;
2
 
select 0<=>0,0.0<=>0.0,0E0=0E0,"A"<=>"A",NULL<=>NULL;
3
 
0<=>0   0.0<=>0.0       0E0=0E0 "A"<=>"A"       NULL<=>NULL
4
 
1       1       1       1       1
5
 
select 1<=>0,0<=>NULL,NULL<=>0;
6
 
1<=>0   0<=>NULL        NULL<=>0
7
 
0       0       0
8
 
select 1.0<=>0.0,0.0<=>NULL,NULL<=>0.0;
9
 
1.0<=>0.0       0.0<=>NULL      NULL<=>0.0
10
 
0       0       0
11
 
select "A"<=>"B","A"<=>NULL,NULL<=>"A";
12
 
"A"<=>"B"       "A"<=>NULL      NULL<=>"A"
13
 
0       0       0
14
 
select 0<=>0.0, 0.0<=>0E0, 0E0<=>"0", 10.0<=>1E1, 10<=>10.0, 10<=>1E1;
15
 
0<=>0.0 0.0<=>0E0       0E0<=>"0"       10.0<=>1E1      10<=>10.0       10<=>1E1
16
 
1       1       1       1       1       1
17
 
select 1.0<=>0E1,10<=>NULL,NULL<=>0.0, NULL<=>0E0;
18
 
1.0<=>0E1       10<=>NULL       NULL<=>0.0      NULL<=>0E0
19
 
0       0       0       0
20
 
create table t1 (id int, value int);
21
 
create table t2 (id int, value int);
22
 
insert into t1 values (1,null);
23
 
insert into t2 values (1,null);
24
 
select t1.*, t2.*, t1.value<=>t2.value from t1, t2 where t1.id=t2.id and t1.id=1;
25
 
id      value   id      value   t1.value<=>t2.value
26
 
1       NULL    1       NULL    1
27
 
select * from t1 where id <=>id;
28
 
id      value
29
 
1       NULL
30
 
select * from t1 where value <=> value;
31
 
id      value
32
 
1       NULL
33
 
select * from t1 where id <=> value or value<=>id;
34
 
id      value
35
 
drop table t1,t2;
36
 
create table t1 (a bigint);
37
 
insert into t1 values (4828532208463511553);
38
 
select * from t1 where a = '4828532208463511553';
39
 
a
40
 
4828532208463511553
41
 
select * from t1 where a in ('4828532208463511553');
42
 
a
43
 
4828532208463511553
44
 
drop table t1;