From 4ebef26cafd176734515d6072d4e7d34f6b00f88 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 2 Apr 2010 09:23:10 +0200 Subject: [PATCH] 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. --- bacula/src/cats/cats.h | 2 ++ 1 file changed, 2 insertions(+) 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 */ }; -- 2.39.5