[ODBC-279] Binding parameter as SQL_C_TIME does not work correctly in some cases Created: 2020-04-20 Updated: 2020-06-30 Resolved: 2020-04-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | 3.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lawrin Novitsky | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Going about SQL_TYPE_TIME sql type in first turn, but again - not all cases. The test: ODBC_TEST(timestruct_param) ; , tr; CHECK_STMT_RC(Stmt, SQLBindParameter(Stmt, 1, SQL_PARAM_INPUT, SQL_C_TIME, SQL_TYPE_TIME, 8, 0, &tp, 0, NULL)); = ?"); CHECK_STMT_RC(Stmt, SQLBindParameter(Stmt, 1, SQL_PARAM_INPUT, SQL_C_TIMESTAMP, SQL_TYPE_TIMESTAMP, 20, 0, &ts, 0, NULL)); OK_SIMPLE_STMT(Stmt, "SELECT 1 FROM DUAL WHERE '2020-04-07 01:28:56'=? AND CAST('15:58:33' AS TIME) = ?"); return OK; |
| Comments |
| Comment by Lawrin Novitsky [ 2020-04-20 ] |
|
The fix and the testcase(even 2 testcases) pushed in the commit c83f334 |