~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/temp_table.test

  • Committer: Brian Aker
  • Date: 2009-06-08 02:42:24 UTC
  • mfrom: (1054.1.6 merge)
  • Revision ID: brian@gaz-20090608024224-zlff1bpq62r8m5gy
Removal of LOCK TABLES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
 
118
118
 
119
119
#
120
 
# BUG#21096: locking issue ; temporary table conflicts.
121
 
#
122
 
# The problem was that on DROP TEMPORARY table name lock was acquired,
123
 
# which should not be done.
124
 
#
125
 
--disable_warnings
126
 
DROP TABLE IF EXISTS t1;
127
 
--enable_warnings
128
 
 
129
 
CREATE TABLE t1 (i INT);
130
 
 
131
 
LOCK TABLE t1 WRITE;
132
 
 
133
 
connect (conn1, localhost, root,,);
134
 
 
135
 
CREATE TEMPORARY TABLE t1 (i INT);
136
 
 
137
 
--echo The following command should not block
138
 
DROP TEMPORARY TABLE t1;
139
 
 
140
 
disconnect conn1;
141
 
connection default;
142
 
 
143
 
DROP TABLE t1;
144
 
 
145
 
#
146
120
# Check that it's not possible to drop a base table with
147
121
# DROP TEMPORARY statement.
148
122
#