~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/binary.test

  • Committer: Stewart Smith
  • Date: 2009-06-04 05:38:30 UTC
  • mto: This revision was merged to the branch mainline in revision 1053.
  • Revision ID: stewart@flamingspork.com-20090604053830-i6oc0vrcwhaej23y
Re-introduce marking transaction as read-write for engine on create_table:
- StorageEngine::create_table() is StorageEngine public API
- StorageEngine::create_table_impl() is implemented by engines

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
# Test of binary and normal strings
30
30
#
31
31
 
32
 
create table t1 (a char(10) not null, b char(10) not null,key (a), key(b));
 
32
create table t1 (a char(10) not null, b char(10) binary not null,key (a), key(b));
33
33
insert into t1 values ("hello ","hello "),("hello2 ","hello2 ");
34
34
select concat("-",a,"-",b,"-") from t1 where a="hello";
35
35
select concat("-",a,"-",b,"-") from t1 where a="hello ";
57
57
#
58
58
# Test of binary and upper/lower
59
59
#
60
 
create table t1 (a char(3), b varbinary(3));
 
60
create table t1 (a char(3) binary, b varbinary(3));
61
61
insert into t1 values ('aaa','bbb'),('AAA','BBB');
62
62
select upper(a),upper(b) from t1;
63
63
select lower(a),lower(b) from t1;
88
88
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
89
89
show create table t1;
90
90
drop table t1;
91
 
--error ER_PARSE_ERROR
 
91
--error 1064
92
92
create table t2 (a varbinary);
93
93
 
94
94
# End of 4.1 tests