~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/myisam-blob.result

  • 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:
1
1
drop table if exists t1;
2
 
CREATE TEMPORARY TABLE t1 (data LONGBLOB) ENGINE=myisam;
 
2
CREATE TABLE t1 (data LONGBLOB) ENGINE=myisam;
3
3
INSERT INTO t1 (data) VALUES (NULL);
4
4
UPDATE t1 set data=repeat('a',18*1024*1024);
5
5
select length(data) from t1;
33
33
length(data)
34
34
18874368
35
35
drop table t1;
36
 
CREATE TEMPORARY TABLE t1 (data BLOB) ENGINE=myisam;
 
36
CREATE TABLE t1 (data BLOB) ENGINE=myisam;
37
37
INSERT INTO t1 (data) VALUES (NULL);
38
38
UPDATE t1 set data=repeat('a',18*1024*1024);
39
39
select length(data) from t1;