~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/symlink.test

  • Committer: Stewart Smith
  • Date: 2009-06-18 00:58:40 UTC
  • mto: (1089.11.1 basic-discovery)
  • mto: This revision was merged to the branch mainline in revision 1072.
  • Revision ID: stewart@flamingspork.com-20090618005840-g1qxarokklraek7z
Remove keep_files_on_create

Only applicable to MyISAM, and should be down in the engine layer as an error if files trying to create already exist.

Also, if you're wanting to re-create the FRM/DFE, then just replace the data files!
Or at least have it as a CREATE TABLE option, and not some server variable that changes behaviour of
such things.

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
 
175
175
--echo End of 4.1 tests
176
176
 
177
 
#
178
 
# Bug #29325: create table overwrites .MYD file of other table (datadir)
179
 
#
180
 
SET SESSION keep_files_on_create = TRUE;
181
 
--write_file $MYSQLTEST_VARDIR/master-data/test/t1.MYD
182
 
EOF
183
 
--disable_abort_on_error
184
 
--error 1,1,ER_TABLE_EXISTS_ERROR
185
 
CREATE TABLE t1 (a INT) ENGINE MYISAM;
186
 
--error 0,1
187
 
--remove_file $MYSQLTEST_VARDIR/master-data/test/t1.MYD
188
 
--enable_abort_on_error
189
 
SET SESSION keep_files_on_create = FALSE;
190
 
CREATE TABLE t1 (a INT) ENGINE MYISAM;
191
 
DROP TABLE t1;
192
 
 
193
177
--echo End of 5.0 tests
194
178
 
195
179
#