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

« back to all changes in this revision

Viewing changes to mysql-test/t/ps_11bugs.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:
177
177
drop table t1;
178
178
drop table t2;
179
179
 
 
180
#
 
181
# Bug #32124: crash if prepared statements refer to variables in the where
 
182
# clause
 
183
#
 
184
 
 
185
CREATE TABLE t1 (a INT);
 
186
PREPARE stmt FROM 'select 1 from `t1` where `a` = any (select (@@tmpdir))';
 
187
EXECUTE stmt;
 
188
DEALLOCATE PREPARE stmt;
 
189
DROP TABLE t1;
 
190
 
 
191
CREATE TABLE t2 (a INT PRIMARY KEY);
 
192
INSERT INTO t2 VALUES (400000), (400001);
 
193
 
 
194
SET @@sort_buffer_size=400000;
 
195
 
 
196
DELIMITER |;
 
197
 
 
198
CREATE FUNCTION p1(i INT) RETURNS INT
 
199
BEGIN
 
200
  SET @@sort_buffer_size= i;
 
201
  RETURN i + 1;
 
202
END|
 
203
 
 
204
DELIMITER ;|
 
205
 
 
206
SELECT * FROM t2 WHERE a = @@sort_buffer_size AND p1(@@sort_buffer_size + 1) > a - 1;
 
207
 
 
208
DROP TABLE t2;
 
209
DROP FUNCTION p1;
 
210
 
 
211
 
 
212
SELECT CONCAT(@@sort_buffer_size);
 
213
SELECT LEFT("12345", @@ft_boolean_syntax);
 
214
 
 
215
SET @@sort_buffer_size=DEFAULT;
 
216
 
180
217
--echo End of 5.0 tests.