~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/r/alter_table.result

  • 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:
418
418
select a,hex(a) from t1;
419
419
a       hex(a)
420
420
����    F2E5F1F2
421
 
alter table t1 change a a binary(4);
 
421
alter table t1 change a a varbinary(4);
422
422
select a,hex(a) from t1;
423
423
a       hex(a)
424
424
����    F2E5F1F2
907
907
LENGTH(s)
908
908
4
909
909
DROP TABLE t1;
910
 
CREATE TABLE t1 (s BINARY(8));
 
910
CREATE TABLE t1 (s varbinary(8));
911
911
INSERT INTO t1 VALUES ('test');
912
912
SELECT LENGTH(s) FROM t1;
913
913
LENGTH(s)
914
 
8
915
 
SELECT HEX(s) FROM t1;
916
 
HEX(s)
917
 
7465737400000000
918
 
ALTER TABLE t1 MODIFY s BINARY(10);
919
 
SELECT HEX(s) FROM t1;
920
 
HEX(s)
921
 
74657374000000000000
 
914
4
 
915
SELECT HEX(s) FROM t1;
 
916
HEX(s)
 
917
74657374
 
918
ALTER TABLE t1 MODIFY s varbinary(10);
 
919
SELECT HEX(s) FROM t1;
 
920
HEX(s)
 
921
74657374
922
922
SELECT LENGTH(s) FROM t1;
923
923
LENGTH(s)
924
 
10
 
924
4
925
925
DROP TABLE t1;
926
926
CREATE TABLE t1 (v VARCHAR(3), b INT);
927
927
INSERT INTO t1 VALUES ('abc', 5);