~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/drizzledump_restore.test

Fixed for null values in transaction log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
# Define drizzledumpfile here.  It is used to capture drizzledump output
28
28
# in order to test the output's ability to restore an exact copy of the table
29
 
let $drizzledumpfile = $DRIZZLETEST_VARDIR/tmp/drizzledumpfile.sql;
 
29
let $drizzledumpfile = $MYSQLTEST_VARDIR/tmp/drizzledumpfile.sql;
30
30
 
31
31
--echo # Pre-test cleanup
32
32
--disable_warnings
79
79
--echo #
80
80
CREATE TABLE t1 (`b` blob);
81
81
INSERT INTO `t1` VALUES (0x602010000280100005E71A);
82
 
--exec $DRIZZLE_DUMP --skip-extended-insert test --skip-comments t1 > $drizzledumpfile
 
82
--exec $DRIZZLE_DUMP --skip-extended-insert --hex-blob test --skip-comments t1 > $drizzledumpfile
83
83
let $table_name = test.t1;
84
84
--source include/drizzledump.inc
85
85
 
114
114
DROP DATABASE drizzledump_test;
115
115
 
116
116
--echo Ensure we don't have those tables (verify we restored something)
117
 
--ERROR ER_TABLE_UNKNOWN
 
117
--ERROR 1146
118
118
SELECT * FROM test.t1;
119
 
--ERROR ER_TABLE_UNKNOWN
 
119
--ERROR 1146
120
120
SELECT * FROM drizzledump_test.t1;
121
121
 
122
122
--echo Restoring from dumpfile
133
133
 
134
134
--echo # Cleanup
135
135
--echo # remove drizzledumpfile
136
 
--error EE_OK,EE_ERROR_FIRST
 
136
--error 0,1
137
137
--remove_file $drizzledumpfile