]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/cats.h
Added limit_filter which rewrites queries which use the LIMIT functions into
[bacula/bacula] / bacula / src / cats / cats.h
index 674d57bb33a3803808121948c7869be1a5802d78..52ae5c6721cc179d60643c715d4b21e736fcb3fc 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 */
 };