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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 22:33:55 UTC
  • mto: (1.2.1) (37.1.1 lucid-security)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: package-import@ubuntu.com-20120222223355-ku1tb4r70osci6v2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
255
255
 
256
256
select host,user from mysql.user where (host,user) = ('localhost','test');
257
257
drop table t1,t2;
 
258
 
 
259
--echo #
 
260
--echo # Bug#52124 memory leaks like a sieve in datetime, timestamp, time, date fields + warnings
 
261
--echo #
 
262
CREATE TABLE t1 (a DATETIME NOT NULL, b TINYINT);
 
263
INSERT INTO t1 VALUES (0, 0),(0, 0);
 
264
--disable_warnings
 
265
SELECT 1 FROM t1 WHERE ROW(a, b) >=
 
266
ROW('1', (SELECT 1 FROM t1 WHERE a > 1234));
 
267
--enable_warnings
 
268
DROP TABLE t1;
 
269
 
 
270
--echo #
 
271
--echo # Bug #54190: Comparison to row subquery produces incorrect result
 
272
--echo # 
 
273
 
 
274
SELECT ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
 
275
SELECT ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
 
276
 
 
277
CREATE TABLE t1 (i INT);
 
278
INSERT INTO t1 () VALUES (1), (2), (3);
 
279
 
 
280
SELECT ROW(1,2) = (SELECT 1,2 FROM t1 WHERE 1 = 0);
 
281
SELECT ROW(1,2) = (SELECT 1,3 FROM t1 WHERE 1 = 0);
 
282
SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,2 FROM DUAL WHERE 1 = 0);
 
283
SELECT i FROM t1 WHERE ROW(1,2) = (SELECT 1,3 FROM DUAL WHERE 1 = 0);
 
284
 
 
285
DROP TABLE t1;
 
286
 
 
287
--echo End of 5.1 tests