~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/varbinary.test

  • Committer: Lee
  • Date: 2008-12-22 21:38:56 UTC
  • mto: (754.1.1 devel) (758.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 732.
  • Revision ID: lbieber@lbieber-desktop-20081222213856-nd4286sp214jtu2r
enable type_enum, union, variables-big and type_enum tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
# Bug #19371 VARBINARY() have trailing zeros after upgrade from 4.1
46
46
#
47
47
 
48
 
# REMOVING THIS TEST FOR DRIZZLE SINCE FILE FORMATS ARE NOT COMPATIBLE
 
48
# MySQL file formats are not compatible with Drizzle
49
49
# Test with a saved table from 4.1
50
 
#copy_file std_data/bug19371.frm $MYSQLTEST_VARDIR/master-data/test/t1.frm;
51
 
#chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.frm;
52
 
#copy_file std_data/bug19371.MYD $MYSQLTEST_VARDIR/master-data/test/t1.MYD;
53
 
#chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.MYD;
54
 
#copy_file std_data/bug19371.MYI $MYSQLTEST_VARDIR/master-data/test/t1.MYI;
55
 
#chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.MYI;
56
 
# Everything _looks_ fine
57
 
#show create table t1;
58
 
# But the length of the varbinary columns are too long
59
 
#select length(a), length(b) from t1;
60
 
# Run CHECK TABLE, it should indicate table need a REPAIR TABLE
61
 
#CHECK TABLE t1 FOR UPGRADE;
62
 
# Run REPAIR TABLE to alter the table and repair
63
 
# the varbinary fields
64
 
#REPAIR TABLE t1;
65
 
# Now check it's back to normal
66
 
#show create table t1;
67
 
#select length(a), length(b) from t1;
68
 
#insert into t1 values("ccc", "ddd");
69
 
#select length(a), length(b) from t1;
70
 
#select hex(a), hex(b) from t1;
71
 
#select concat("'", a, "'"), concat("'", b, "'") from t1;
 
50
copy_file std_data/bug19371.frm $MYSQLTEST_VARDIR/master-data/test/t1.frm;
 
51
chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.frm;
 
52
copy_file std_data/bug19371.MYD $MYSQLTEST_VARDIR/master-data/test/t1.MYD;
 
53
chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.MYD;
 
54
copy_file std_data/bug19371.MYI $MYSQLTEST_VARDIR/master-data/test/t1.MYI;
 
55
chmod 0777 $MYSQLTEST_VARDIR/master-data/test/t1.MYI;
 
56
--error 1033
 
57
show create table t1;
 
58
drop table t1;
72
59
 
73
60
# Check that the fix does not affect table created with current version
74
61
create table t1(a varbinary(255));