From: Marco van Wieringen Date: Fri, 2 Apr 2010 07:23:10 +0000 (+0200) Subject: Added limit_filter which rewrites queries which use the LIMIT functions into somethin... X-Git-Tag: Release-5.2.1~1551 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4ebef26cafd176734515d6072d4e7d34f6b00f88;p=bacula%2Fbacula Added limit_filter which rewrites queries which use the LIMIT functions into something Ingres can understand. Removed all static functions from the myingres.sh file as they are no longer an exported interface (we can always put that back when we have the need to export more functions). Some other rewrites of the code to make it somewhat cleaner. --- diff --git a/bacula/src/cats/cats.h b/bacula/src/cats/cats.h index e6861f5670..ae5205af4c 100644 --- a/bacula/src/cats/cats.h +++ b/bacula/src/cats/cats.h @@ -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 */ };