~ubuntu-branches/ubuntu/lucid/mysql-dfsg-5.1/lucid

« back to all changes in this revision

Viewing changes to mysql-test/t/temp_table.test

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-02-10 16:42:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090210164205-ej41ocvm4z1s14nq
Tags: 5.1.31-1ubuntu1
* Merge from debian experimental, remaining changes: 
  - debian/mysql-server-5.1.config: ask for MySQL root password at priority
    high instead of medium so that the password prompt is seen on a default
    install. (LP: #319843)
  - debian/control: 
    + Don't build mysql-server, mysql-client, mysql-common and 
      libmysqlclient15-dev binary packages since they're still provided 
      by mysql-dfsg-5.0.
    + Rename libmysqlclient-dev package to libmysqlclient16-dev (LP: #316280).
      Make it conflict with libmysqlclient15-dev.
    + Make mysql-{client,server}-5.1 packages conflict and
      replace mysql-{client,server}-5.0, but not provide 
      mysql-{client,server}.
    + Depend on a specific version of mysql-common rather than the src 
      version of mysql-dfsg-5.1 since mysql-common is currently part of
      mysql-dfsg-5.0.
  - debian/rules: added -fno-strict-aliasing to CFLAGS to get
    around mysql testsuite build failures.
* debian/patches/92_ssl_test_cert.dpatch: certificate expiration in 
  test suite (LP: #323755).
* Dropped changes:
  - all of the changes made to support both 5.0 and 5.1 installed at the
    same time have been dropped now that amarok doesn't depend on
    mysql-server-5.1 anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
204
204
SELECT * FROM t1;
205
205
DROP TABLE t1;
206
206
 
 
207
#
 
208
# Bug#41348: INSERT INTO tbl SELECT * FROM temp_tbl overwrites locking type of temp table
 
209
#
 
210
 
 
211
--disable_warnings
 
212
DROP TABLE IF EXISTS t1,t2;
 
213
DROP FUNCTION IF EXISTS f1;
 
214
--enable_warnings
 
215
 
 
216
CREATE TEMPORARY TABLE t1 (a INT);
 
217
CREATE TEMPORARY TABLE t2 LIKE t1;
 
218
 
 
219
DELIMITER |;
 
220
CREATE FUNCTION f1() RETURNS INT
 
221
 BEGIN
 
222
     return 1;
 
223
 END|
 
224
DELIMITER ;|
 
225
 
 
226
INSERT INTO t2 SELECT * FROM t1;
 
227
INSERT INTO t1 SELECT f1();
 
228
 
 
229
CREATE TABLE t3 SELECT * FROM t1;
 
230
INSERT INTO t1 SELECT f1();
 
231
 
 
232
UPDATE t1,t2 SET t1.a = t2.a;
 
233
INSERT INTO t2 SELECT f1();
 
234
 
 
235
DROP TABLE t1,t2,t3;
 
236
DROP FUNCTION f1;
 
237
 
207
238
--echo End of 5.1 tests