Mysql Datetime format Integer Overflow Bug?
Posted: 30.09.2020, 17:06
Using Delphi 7 , Maria DB 10.1.25 and Zeos 7.2.4
I am having to work with a table in database where there is a field of format of 'datetime (6) ' ie 6 fractional seconds parts as opposed to the default which is (0) none.
Queries on fields with this format always seem to end with 'Integer Overflow'
The exception occurs within : function TZAbstractMySQLResultSet.GetTimestamp(ColumnIndex: Integer): TDateTime; within unit ZDbcMySqlResultSet;
at the line: if (ConSettings^.ReadFormatSettings.DateTimeFormatLen - Len) <= 4 then...
Breaking at this point with the debugger : ConSettings^.ReadFormatSettings.DateTimeFormatLen evalutes as 19,
Len as 26 and the buffer as ''1962-11-23 22:33:00.000000' You can see the datetime 6 format here. It exceptions if this line is executed.
Is there a known bug / workaround or am I missing something?
I am having to work with a table in database where there is a field of format of 'datetime (6) ' ie 6 fractional seconds parts as opposed to the default which is (0) none.
Queries on fields with this format always seem to end with 'Integer Overflow'
The exception occurs within : function TZAbstractMySQLResultSet.GetTimestamp(ColumnIndex: Integer): TDateTime; within unit ZDbcMySqlResultSet;
at the line: if (ConSettings^.ReadFormatSettings.DateTimeFormatLen - Len) <= 4 then...
Breaking at this point with the debugger : ConSettings^.ReadFormatSettings.DateTimeFormatLen evalutes as 19,
Len as 26 and the buffer as ''1962-11-23 22:33:00.000000' You can see the datetime 6 format here. It exceptions if this line is executed.
Is there a known bug / workaround or am I missing something?