search for: sql_c_slong

Displaying 2 results from an estimated 2 matches for "sql_c_slong".

2007 Apr 18
1
How to call stored procedure on iodbc
...RETCODE returnVal; char sqlString[500]; memset(sqlString,0,sizeof(sqlString)); HSTMT hstmt = ptrDB->GetHSTMT(); returnVal = SQLAllocStmt(ptrDB->GetHDBC(), &hstmt); if (returnVal == SQL_SUCCESS) { returnVal = SQLBindParameter(hstmt, 1, SQL_PARAM_OUTPUT, SQL_C_SLONG, SQL_INTEGER, 0,0, &returnCode,0, &bindReturnCode); //strcpy(sqlString,"{call PI_ShBlobData (?, 0, 0, 0, EMPTY_BLOB(), null)}"); returnVal = SQLExecDirectA(hstmt, (UCHAR*)sqlString, SQL_NTS); refPk = returnCode; bRetVal = true; ptr...
2005 Sep 05
1
RODBC and 64 bit
...into some segmentation faults using function sqlUpdate on large database operations (the actual seg faults occured in the call to the C function ODBCUpdate). I just briefly looked into the code and found some extensive type casting going on so I figured this might be a 64 bit problem with the 'SQL_C_SLONG' and 'SQL_C_DOUBLE' data types. However I can't rule out the possibility that my TSL driver is messing up some things. I also tried to reproduce the error with dummy data but here everything seems to be fine (this might not be big eneugh). As a quick solution I tried using the opti...