]> git.sur5r.net Git - bacula/bacula/commit
Ingres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritte...
authorMarco van Wieringen <mvw@planets.elm.net>
Tue, 13 Apr 2010 17:48:46 +0000 (19:48 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:50:32 +0000 (16:50 +0200)
commitd1b5c6abfe413b1640b497584d6420035d461663
tree98ed724e8e005f10b9a885bd75dca39d67b96401
parentf3c4e87f9c1dbd0b59f22ac65c64e3b803b9103f
Ingres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritten DESC,MediaId and we must rewrite it to ORDER BY IFNULL(LastWritten, '') DESC,MediaId which we now do by using an array with the correct order statement per backend in sql_cmds just as some of the other database specific queries.
bacula/src/cats/sql_cmds.c
bacula/src/cats/sql_cmds.h
bacula/src/cats/sql_find.c