Unix Technical Forum

SQLFreeStmt problem ?

This is a discussion on SQLFreeStmt problem ? within the pgsql Interfaces odbc forums, part of the PostgreSQL category; --> Hi, I have the following problem when running my function under Linux: The application hangs in a semop function ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008, 02:19 AM
lothar.behrens@lollisoft.de
 
Posts: n/a
Default SQLFreeStmt problem ?

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




---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com