~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/union.test

  • Committer: Jay Pipes
  • Date: 2009-03-16 15:20:27 UTC
  • mto: (934.3.7 mordred)
  • mto: This revision was merged to the branch mainline in revision 938.
  • Revision ID: jpipes@serialcoder-20090316152027-njlreaim8vxqta6c
Fixes ENUM field type to throw an error on bad data input.  0 is now not
allowed on insertion.  MySQL allows 0, in the manual it states 0 is "the
null string error index" whatever that means.  Drizzle doesn't allow it.

Corrected test cases.

Also cleans up indentation on JOIN::exec() which was bothering me.

Show diffs side-by-side

added added

removed removed

Lines of Context:
573
573
create table t3 (a ENUM('Yes', 'No') NOT NULL);
574
574
create table t4 (a ENUM('aaa', 'bbb') NOT NULL);
575
575
insert into t3 values (1);
576
 
--error 1265
 
576
--error 1691 # Bad enum
577
577
insert into t4 values (3);
578
578
select "1" as a union select a from t1;
579
579
select a as a from t1 union select "1";