Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
3.0.6, 2.0.18
-
None
Description
If parameter for inserting value into time field is bound like SQLBindParameter(Stmt, 1, SQL_PARAM_INPUT, SQL_C_TIMESTAMP, SQL_TIME,...), i.e. passed via timestamp structure, and date fields are not empty(it seems like day field is important), the inserted value will be different from the value in time fields of the parameter
The fix and the testcase have been pushed into odbc-3.0 as 79efd0e
The patch also enforces some time validity checks for such parameters, as required by the specks. i.e. time should be between 00:00:00 and 23:59:59, and fractional part should be zero, and if timestamp struct bound for SQL_DATE sql type, then all time fields should be zero