~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/alter_table.test

  • Committer: Brian Aker
  • Date: 2008-07-29 16:40:28 UTC
  • Revision ID: brian@tangent.org-20080729164028-df2i5lveqq021bow
Fix to remove binary/nchar

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
select a,hex(a) from t1;
274
274
alter table t1 change a a char(10) character set cp1251;
275
275
select a,hex(a) from t1;
276
 
alter table t1 change a a binary(4);
 
276
alter table t1 change a a varbinary(4);
277
277
select a,hex(a) from t1;
278
278
alter table t1 change a a char(10) character set cp1251;
279
279
select a,hex(a) from t1;
692
692
SELECT LENGTH(s) FROM t1;
693
693
DROP TABLE t1;
694
694
 
695
 
CREATE TABLE t1 (s BINARY(8));
 
695
CREATE TABLE t1 (s varbinary(8));
696
696
INSERT INTO t1 VALUES ('test');
697
697
SELECT LENGTH(s) FROM t1;
698
698
SELECT HEX(s) FROM t1;
699
 
ALTER TABLE t1 MODIFY s BINARY(10);
 
699
ALTER TABLE t1 MODIFY s varbinary(10);
700
700
SELECT HEX(s) FROM t1;
701
701
SELECT LENGTH(s) FROM t1;
702
702
DROP TABLE t1;