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-5.2.1~1396 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e6022d0f66283b05aa92e57dfad605891741a13d;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] = {