~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/compare.test

  • Committer: Toru Maesaka
  • Date: 2008-12-17 07:16:37 UTC
  • mto: (685.1.40 devel) (713.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 713.
  • Revision ID: dev@torum.net-20081217071637-7j9040w7lpms77r2
Removed my_time() and added error checking

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;