mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
filesort.cc, order_by.result:
Fixed bug 263 order_by.test: Fixed bug 263
This commit is contained in:
@ -331,3 +331,17 @@ INSERT INTO t2 (numeropost,pseudo) VALUES (1,'joce'),(1,'bug');
|
||||
SELECT titre,t1.numeropost,auteur,icone,nbrep,0,date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
|
||||
SELECT titre,t1.numeropost,auteur,icone,nbrep,'0',date,vue,ouvert,lastauteur,dest FROM t2 LEFT JOIN t1 USING(numeropost) WHERE t2.pseudo='joce' ORDER BY date DESC LIMIT 0,30;
|
||||
drop table t1,t2;
|
||||
|
||||
#
|
||||
# Test order by with NULL values
|
||||
#
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
INSERT INTO t1 VALUES (1, 2);
|
||||
INSERT INTO t1 VALUES (3, 4);
|
||||
INSERT INTO t1 VALUES (5, NULL);
|
||||
SELECT * FROM t1 ORDER BY b;
|
||||
SELECT * FROM t1 ORDER BY b DESC;
|
||||
SELECT * FROM t1 ORDER BY (a + b);
|
||||
SELECT * FROM t1 ORDER BY (a + b) DESC;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
Reference in New Issue
Block a user