~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/varbinary.test

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This test uses chmod, can't be run with root permissions
 
2
-- source include/not_as_root.inc
 
3
 
 
4
 
1
5
# Initialise
2
6
--disable_warnings
3
7
drop table if exists t1;
23
27
#
24
28
# Test error conditions
25
29
#
26
 
--error ER_PARSE_ERROR
 
30
--error 1064
27
31
select x'hello';
28
 
--error ER_BAD_FIELD_ERROR
 
32
--error 1054
29
33
select 0xfg;
30
34
 
31
35
#
37
41
 
38
42
# End of 4.1 tests
39
43
 
 
44
#
 
45
# Bug #19371 VARBINARY() have trailing zeros after upgrade from 4.1
 
46
#
 
47
 
 
48
# MySQL file formats are not compatible with Drizzle
 
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
--error ER_NO_SUCH_TABLE
 
57
show create table t1;
 
58
--error ER_BAD_TABLE_ERROR
 
59
drop table t1;
 
60
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.frm
 
61
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.MYD
 
62
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.MYI 
40
63
 
41
64
# Check that the fix does not affect table created with current version
42
65
create table t1(a varbinary(255));