~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/compare.test

  • Committer: Monty Taylor
  • Date: 2008-10-20 08:48:34 UTC
  • mfrom: (520.1.22 drizzle)
  • Revision ID: monty@inaugust.com-20081020084834-xpb3w01vkcp55o02
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#
42
42
#Bug #21159: Optimizer: wrong result after AND with different data types
43
43
#
44
 
create table t1 (a int(1),b binary(1));
 
44
create table t1 (a int,b varbinary(1));
45
45
insert into t1 values (0x01,0x01);
46
46
select * from t1 where a=b;
47
47
select * from t1 where a=b and b=0x01;
52
52
# in version 5
53
53
#
54
54
 
55
 
CREATE TABLE  t1 (b int(2) zerofill, c int(2) zerofill);
 
55
CREATE TABLE  t1 (b int, c int);
56
56
INSERT INTO t1 (b,c) VALUES (1,2), (1,1), (2,2);
57
57
 
58
58
SELECT CONCAT(b,c), CONCAT(b,c) = '0101' FROM t1;