/* # line 367 "myingres.sc" */ /* open */
{
IIsqInit(&sqlca);
- IIcsOpen((char *)"c2",10560,29663);
+ IIcsOpen((char *)"c2",11417,2807);
IIwritio(0,(short *)0,1,32,0,(char *)"s2");
- IIcsQuery((char *)"c2",10560,29663);
+ IIcsQuery((char *)"c2",11417,2807);
}
/* # line 368 "myingres.sc" */ /* host code */
if ((check = INGcheck()) < 0) {
/* # line 374 "myingres.sc" */ /* fetch */
{
IIsqInit(&sqlca);
- if (IIcsRetScroll((char *)"c2",10560,29663,-1,-1) != 0) {
+ if (IIcsRetScroll((char *)"c2",11417,2807,-1,-1) != 0) {
IIcsDaGet(0,desc);
IIcsERetrieve();
} /* IIcsRetrieve */
/* # line 394 "myingres.sc" */ /* close */
{
IIsqInit(&sqlca);
- IIcsClose((char *)"c2",10560,29663);
+ IIcsClose((char *)"c2",11417,2807);
}
/* # line 396 "myingres.sc" */ /* host code */
ing_res->status = ING_COMMAND_OK;
}
void INGdisconnectDB(INGconn *dbconn)
{
- /*
- * TODO: check for any real use of dbconn: maybe whenn multithreaded?
- */
-/* # line 597 "myingres.sc" */ /* disconnect */
+/* # line 594 "myingres.sc" */
+
+ int sess_id;
+/* # line 596 "myingres.sc" */
+
+ sess_id = dbconn->session_id;
+/* # line 600 "myingres.sc" */ /* disconnect */
{
IIsqInit(&sqlca);
+ IILQsidSessID(sess_id);
IIsqDisconnect();
}
-/* # line 598 "myingres.sc" */ /* host code */
+/* # line 602 "myingres.sc" */ /* host code */
if (dbconn != NULL) {
free(dbconn->msg);
free(dbconn);
}
char *INGerrorMessage(const INGconn *conn)
{
-/* # line 606 "myingres.sc" */
+/* # line 610 "myingres.sc" */
char errbuf[256];
-/* # line 608 "myingres.sc" */
+/* # line 612 "myingres.sc" */
-/* # line 610 "myingres.sc" */ /* inquire_ingres */
+/* # line 614 "myingres.sc" */ /* inquire_ingres */
{
IILQisInqSqlio((short *)0,1,32,255,errbuf,63);
}
-/* # line 611 "myingres.sc" */ /* host code */
+/* # line 615 "myingres.sc" */ /* host code */
memcpy(conn->msg, &errbuf, 256);
return conn->msg;
}
int INGputCopyEnd(INGconn *conn, const char *errormsg);
int INGputCopyData(INGconn *conn, const char *buffer, int nbytes);
*/
-/* # line 625 "myingres.sc" */
+/* # line 629 "myingres.sc" */
#endif