]> git.sur5r.net Git - bacula/bacula/commitdiff
Added limit_filter which rewrites queries which use the LIMIT functions into somethin...
authorMarco van Wieringen <mvw@planets.elm.net>
Fri, 2 Apr 2010 07:23:10 +0000 (09:23 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:43 +0000 (16:49 +0200)
bacula/src/cats/cats.h

index e6861f567062de8e079ccc2fdd2f22eaf643038b..ae5205af4ca6bfc7bcc6611c2404faf34e4a3140 100644 (file)
@@ -538,6 +538,7 @@ extern const char* my_pg_batch_fill_path_query;
 #ifdef HAVE_INGRES
 
 #include "myingres.h"
+#include "lib/reg.h"
 
 #define BDB_VERSION 12
 
@@ -589,6 +590,7 @@ struct B_DB {
    POOLMEM *path;                 /* Path only */
    POOLMEM *esc_name;             /* Escaped file name */
    POOLMEM *esc_path;             /* Escaped path name */
+   BREGEXP *limit_filter;         /* Filter LIMIT function in queries into supported SQL */
    int fnl;                       /* file name length */
    int pnl;                       /* path name length */
 };