Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.17, 3.0.5
-
None
Description
That affects, among other things, parameter array operation. If parameters bound by column, parameter value location will be calculated incorrectly.
To repeat
ODBC_TEST(odbc151)
{ SQLINTEGER Val; SQLLEN Len= 2, OctetLength= 0; SQLHANDLE Apd; CHECK_STMT_RC(Stmt, SQLPrepare(Stmt, "SELECT ?", SQL_NTS)); CHECK_STMT_RC(Stmt, SQLGetStmtAttr(Stmt, SQL_ATTR_APP_PARAM_DESC, &Apd, SQL_IS_POINTER, NULL)); CHECK_STMT_RC(Stmt, SQLBindParameter(Stmt, 1, SQL_PARAM_INPUT, SQL_C_LONG, SQL_INTEGER, 0, 0, &Val, Len, &Len)); CHECK_DESC_RC(Apd, SQLGetDescField(Apd, 1, SQL_DESC_OCTET_LENGTH, &OctetLength, SQL_IS_INTEGER, NULL)); is_num(OctetLength, sizeof(SQLINTEGER)); return OK; }Attachments
Issue Links
- is part of
-
ODBC-149 ODBC Connector 3.05 Bug: Connection Crashes with Timestamp INSERT INTO
- Closed