mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 19:09:27 +02:00
fcl-db: odbc: when binding TIMESTAMP parameter set explicitly precision.
It is required by SQL Server Native Client 2008 and later (when not set it raises: Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.) I have used precision 3 (milliseconds), which is maximum precision returned by DecodeTime used in handling of TDataTime values. git-svn-id: trunk@29719 -
This commit is contained in:
parent
8f9c062e4d
commit
1e778468cc
@ -465,6 +465,7 @@ begin
|
|||||||
CType:=SQL_C_TYPE_TIMESTAMP;
|
CType:=SQL_C_TYPE_TIMESTAMP;
|
||||||
SqlType:=SQL_TYPE_TIMESTAMP;
|
SqlType:=SQL_TYPE_TIMESTAMP;
|
||||||
ColumnSize:=23;
|
ColumnSize:=23;
|
||||||
|
DecimalDigits:=3; // fractional seconds
|
||||||
end;
|
end;
|
||||||
ftBoolean:
|
ftBoolean:
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user