]> git.sur5r.net Git - bacula/bacula/commitdiff
Change Ingres query filter to set a realy early timestamp instead of an empty string...
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 27 Apr 2010 19:05:38 +0000 (21:05 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:53:45 +0000 (16:53 +0200)
bacula/src/cats/sql_cmds.c

index 9c3a7c3b5f13d8ab1eff419f9751b0c54587c209..7ed398e2ca59c274e8c0a8a6f02b4e88634704c6 100644 (file)
@@ -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] = {