Bug description
Oracle DATE field type stores date AND time. So apropriate field in delphi is TDateTime. ZeosLib thinks diffrent and in delphi i get TDate and time portion is lost.
i found this bug in bugtracker
http://sourceforge.net/tracker/index.ph ... tid=415824
Solution:
Two patches:
ZDbcOracleUtils.pas
function ConvertOracleTypeToSQLType(TypeName: string;
Size: Integer; Precision: Integer): TZSQLType;
**Replace
else if TypeName = 'DATE' then
Result := stDate
**With
else if TypeName = 'DATE' then
Result := stTimestamp
ZDbcOracleResultSet.pas
**Replace
SQLT_DAT, SQLT_DATE:
CurrentVar.ColType := stDate;
**With
SQLT_DAT, SQLT_DATE:
CurrentVar.ColType := stTimestamp;
Plz, tell me where can i submit patches so bugs can be quickly fixed.
Oracle 9i DATE field type
Moderators: gto, cipto_kh, EgonHugeist