~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/show_create_table_varbinary.test

  • Committer: Stewart Smith
  • Date: 2010-06-30 05:26:21 UTC
  • mto: (1720.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1721.
  • Revision ID: stewart@flamingspork.com-20100630052621-cxbw6hco379o354d
fix display of VARBINARY default values in SHOW CREATE TABLE. Always use printable characters by encoding in hex.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
create table t3 (a varbinary(4) default 0x01020304);
10
10
show create table t3;
11
11
drop table t3;
 
12
 
 
13
create table t4 (a varbinary(4) default '\n');
 
14
show create table t4;
 
15
drop table t4;
 
16
 
 
17
CREATE TABLE `t4` (
 
18
  `a` varbinary(4) DEFAULT 0x0A
 
19
) ENGINE=InnoDB;
 
20
SHOW CREATE TABLE t4;
 
21
DROP TABLE t4;
 
22