]> 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)
commitf84b3d5717d3fcbd608e4e5c0699056fb6963525
treeceacde508c2c3d6eb507f0315b2e60fccada1904
parent5718eb430480b95d0dfb3ef02415667ad6ba41b2
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