~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/temp_table.test

Started Gearman UDF.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
# In MySQL 4.0.4 doing a GROUP BY on a NULL column created a disk based
80
80
# temporary table when a memory based one would be good enough.
81
81
 
82
 
CREATE TEMPORARY TABLE t1 (
 
82
CREATE TABLE t1 (
83
83
  d datetime default NULL
84
84
) ENGINE=MyISAM;
85
85
 
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
#
120
146
# Check that it's not possible to drop a base table with
121
147
# DROP TEMPORARY statement.
122
148
#