[ODBC-90] SQLBulkOperations/SQLSetPos SQL_ADD would fail if TIMESTAMP column ignored Created: 2017-03-17 Updated: 2017-03-17 Resolved: 2017-03-17 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | None |
| Affects Version/s: | 3.0.0, 2.0.13 |
| Fix Version/s: | 2.0.14, 3.0.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lawrin Novitsky | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
If indicator for TIMESTAMP column set to SQL_COLUMN_IGNORE, and that would be the case for ADO, SQL_ADD operation would fail. SQLCHAR sval[MAODBC_ROWS][32]= {"Record 1", "Record 21"}; , ind2[MAODBC_ROWS]= {sizeof(int), sizeof(int)}, , ind4[MAODBC_ROWS]= {SQL_COLUMN_IGNORE, SQL_COLUMN_IGNORE}; , id[MAODBC_ROWS]= {2, 7}; OK_SIMPLE_STMT(Stmt, "DROP TABLE IF EXISTS odbc90"); /* odbc 3 */ CHECK_STMT_RC(Stmt, CHECK_STMT_RC(Stmt, SQLBindCol(Stmt, 1, SQL_C_LONG, id, 0, ind1)); OK_SIMPLE_STMT(Stmt, "SELECT id, nval, sval, ts FROM odbc90"); FAIL_IF(SQLFetchScroll(Stmt, SQL_FETCH_NEXT, 0)!=SQL_NO_DATA_FOUND, "SQL_NO_DATA_FOUND expected"); CHECK_STMT_RC(Stmt, SQLBulkOperations(Stmt, SQL_ADD)); |
| Comments |
| Comment by Lawrin Novitsky [ 2017-03-17 ] |
|
The fix and the testcase have been pushed (to odbc-2.0 so far only) as rev. d94541b698321c5aa01ca9bb8f9d21a00a0b486b |