~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to tests/t/type_blob.test

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-11-12 12:26:01 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20101112122601-myppfj3tfmlkccuq
Tags: upstream-2010.11.03
ImportĀ upstreamĀ versionĀ 2010.11.03

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
# Check errors with blob
32
32
#
33
33
 
34
 
--error 1101
 
34
--error ER_BLOB_CANT_HAVE_DEFAULT
35
35
CREATE TABLE t1 (a blob default "hello");
36
36
CREATE TABLE t2 (a varchar(256));
37
37
drop table t2;
38
 
--error 1074
 
38
--error ER_TOO_BIG_FIELDLENGTH
39
39
CREATE TABLE t1 (a varchar(70000) default "hello");
40
 
--error 1101
 
40
--error ER_BLOB_CANT_HAVE_DEFAULT
41
41
CREATE TABLE t2 (a blob default "hello");
42
42
 
43
43
# Safety to be able to continue with other tests if above fails
54
54
insert into t1 values (null,"bbb","BBB");
55
55
insert into t1 values (null,"ccc","CCC");
56
56
select last_insert_id();
 
57
--sorted_result
57
58
select * from t1,t1 as t2;
58
59
 
59
60
drop table t1;