~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/varbinary.test

  • Committer: Monty Taylor
  • Date: 2009-03-06 03:33:24 UTC
  • mfrom: (916.1.2 merge)
  • Revision ID: mordred@inaugust.com-20090306033324-dcedf80g9qzywbvu
Merged Brian's merge... re-rotate the tree.

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));
57
80
--enable_warnings
58
81
 
59
82
create table table_28127_a(0b02 int);
60
 
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
61
83
show create table table_28127_a;
62
84
 
63
85
create table table_28127_b(0b2 int);
64
 
--replace_regex /ENGINE=[a-zA-Z]+/ENGINE=DEFAULT/
65
86
show create table table_28127_b;
66
87
 
67
88
drop table table_28127_a;