From 89a7353456084d8570a5a62fd2f9dfe517120bbd Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Fri, 12 Mar 2010 21:34:28 +0100 Subject: [PATCH] Run ingres template code through esqlcc. --- bacula/src/cats/myingres.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bacula/src/cats/myingres.c b/bacula/src/cats/myingres.c index 4288fcc560..e4d1751cfc 100644 --- a/bacula/src/cats/myingres.c +++ b/bacula/src/cats/myingres.c @@ -1,11 +1,11 @@ #include "bacula.h" /* # line 3 "myingres.sc" */ #ifdef HAVE_INGRES -#include +#include +#include #include - extern IISQLCA sqlca; /* SQL Communications Area */ +extern IISQLCA sqlca; /* SQL Communications Area */ #include -/* # line 7 "myingres.sc" */ /* host code */ #include #include #include @@ -294,9 +294,9 @@ int INGfetchAll(const char *stmt, INGresult *ing_res) /* # line 321 "myingres.sc" */ /* open */ { IIsqInit(&sqlca); - IIcsOpen((char *)"c2",30532,24309); + IIcsOpen((char *)"c2",9341,8444); IIwritio(0,(short *)0,1,32,0,(char *)"s2"); - IIcsQuery((char *)"c2",30532,24309); + IIcsQuery((char *)"c2",9341,8444); } /* # line 322 "myingres.sc" */ /* host code */ if ((check = INGcheck()) < 0) { @@ -307,7 +307,7 @@ int INGfetchAll(const char *stmt, INGresult *ing_res) /* # line 328 "myingres.sc" */ /* fetch */ { IIsqInit(&sqlca); - if (IIcsRetScroll((char *)"c2",30532,24309,-1,-1) != 0) { + if (IIcsRetScroll((char *)"c2",9341,8444,-1,-1) != 0) { IIcsDaGet(0,desc); IIcsERetrieve(); } /* IIcsRetrieve */ @@ -332,7 +332,7 @@ int INGfetchAll(const char *stmt, INGresult *ing_res) /* # line 348 "myingres.sc" */ /* close */ { IIsqInit(&sqlca); - IIcsClose((char *)"c2",30532,24309); + IIcsClose((char *)"c2",9341,8444); } /* # line 350 "myingres.sc" */ /* host code */ ing_res->status = ING_COMMAND_OK; -- 2.39.5