From: Marco van Wieringen Date: Fri, 12 Mar 2010 20:34:28 +0000 (+0100) Subject: Run ingres template code through esqlcc. X-Git-Tag: Release-5.0.2~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=89a7353456084d8570a5a62fd2f9dfe517120bbd;p=bacula%2Fbacula Run ingres template code through esqlcc. --- 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;