SQLFreeStmt problem ?

From: lothar(dot)behrens(at)lollisoft(dot)de
To: pgsql-odbc(at)postgresql(dot)org
Subject: SQLFreeStmt problem ?
Date: 2005-08-07 18:33:41
Message-ID: 42F67025.14105.BF0B15@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

I have the following problem when running my function under Linux:

The application hangs in a semop function call while the second SQLAllocStmt call.

Any ideas ?

Thanks, Lothar

retcode = SQLAllocStmt(hdbc, &hstmt);

// ...

retcode = SQLForeignKeys(hstmt, NULL, 0, NULL, 0,
szTable, SQL_NTS, NULL, 0, NULL, 0, NULL, 0);

while ((retcode == SQL_SUCCESS) || (retcode == SQL_SUCCESS_WITH_INFO)) {
// ...
retcode = SQLFetch(hstmt);
if (retcode == SQL_SUCCESS || retcode == SQL_SUCCESS_WITH_INFO) {
lbErrCodes err = ERR_NONE;

if (isVerbose())
printf("%-s ( %-s ) <-- %-s ( %-s )\n", szPkTable, szPkCol, szFkTable,
szFkCol);
}
}

SQLFreeStmt(hstmt, SQL_DROP);

retcode = SQLAllocStmt(hdbc, &hstmt); // <------------------- Hang -----------------------------

--
Lothar Behrens | Rapid Prototyping ...
Rosmarinstr 3 |
40235 Düsseldorf | www.lollisoft.de

Browse pgsql-odbc by date

  From Date Subject
Next Message Poul Møller Hansen 2005-08-07 19:44:53 Re: Remopte connection to POstgreSQL via ODBC
Previous Message Zlatko Matić 2005-08-07 15:42:41 Remopte connection to POstgreSQL via ODBC