make test ORDER BY date_ord ASC
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| MariaDB |
Fix Released
|
Undecided
|
Michael Widenius | ||
Bug Description
Platform is x86_64 Fedora11 updated to latest today.
cat /proc/version
Linux version 2.6.30.
download lastest from Lanchpad
./BUILD/autorun.sh
./configure
make
make test
CURRENT_TEST: main.func_if
--- /home/mariadb/
+++ /home/mariadb/
@@ -99,14 +99,14 @@
INSERT INTO t1 VALUES (1,1110000000,'Day 1'),(2,
SELECT id, IF(date IS NULL, '-', FROM_UNIXTIME(date, '%d-%m-%Y')) AS date_ord, text FROM t1 ORDER BY date_ord ASC;
id date_ord text
-1 05-03-2005 Day 1
+1 04-03-2005 Day 1
2 16-03-2005 Day 2
3 28-03-2005 Day 3
SELECT id, IF(date IS NULL, '-', FROM_UNIXTIME(date, '%d-%m-%Y')) AS date_ord, text FROM t1 ORDER BY date_ord DESC;
id date_ord text
3 28-03-2005 Day 3
2 16-03-2005 Day 2
-1 05-03-2005 Day 1
+1 04-03-2005 Day 1
DROP TABLE t1;
CREATE TABLE t1 (a CHAR(10));
INSERT INTO t1 VALUES ('aaa'), (NULL), (''), ('bbb');
mysqltest: Result content mismatch
| Changed in maria: | |
| status: | Fix Committed → Fix Released |

mariadb version
mariadb-5.1.41-rc
sorry for the omission
-pete