From: Marco van Wieringen Date: Tue, 27 Apr 2010 19:05:38 +0000 (+0200) Subject: Change Ingres query filter to set a realy early timestamp instead of an empty string... X-Git-Tag: Release-7.0.0~1861 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63db0a310ea18fe03e5127d9e688e6fc8486a704;p=bacula%2Fbacula Change Ingres query filter to set a realy early timestamp instead of an empty string which doesn't seem to work on all Ingres versions. --- diff --git a/bacula/src/cats/sql_cmds.c b/bacula/src/cats/sql_cmds.c index 9c3a7c3b5f..7ed398e2ca 100644 --- a/bacula/src/cats/sql_cmds.c +++ b/bacula/src/cats/sql_cmds.c @@ -954,7 +954,7 @@ const char *sql_media_order_most_recently_written[5] = { /* SQLite3 */ "ORDER BY LastWritten IS NULL,LastWritten DESC,MediaId", /* Ingres */ - "ORDER BY IFNULL(LastWritten, '') DESC,MediaId" + "ORDER BY IFNULL(LastWritten, '1970-01-01 00:00:00') DESC,MediaId" }; const char *sql_get_max_connections[5] = {