Przeglądaj źródła

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

git-svn-id: trunk@32729 -
michael 9 lat temu
rodzic
commit
5ab123883a

+ 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: