Pārlūkot izejas kodu

* Make sure formatting settings are not used when passing datetime values

git-svn-id: trunk@32729 -
michael 9 gadi atpakaļ
vecāks
revīzija
5ab123883a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      packages/fcl-db/src/sqldb/postgres/pqconnection.pp

+ 2 - 2
packages/fcl-db/src/sqldb/postgres/pqconnection.pp

@@ -1006,9 +1006,9 @@ begin
           begin
           case AParams[i].DataType of
             ftDateTime:
-              s := FormatDateTime('yyyy-mm-dd hh:nn:ss.zzz', AParams[i].AsDateTime);
+              s := FormatDateTime('yyyy"-"mm"-"dd hh":"nn":"ss.zzz', AParams[i].AsDateTime);
             ftDate:
-              s := FormatDateTime('yyyy-mm-dd', AParams[i].AsDateTime);
+              s := FormatDateTime('yyyy"-"mm"-"dd', AParams[i].AsDateTime);
             ftTime:
               s := FormatTimeInterval(AParams[i].AsDateTime);
             ftFloat, ftBCD: