Procházet zdrojové kódy

fcl-db: tests: as MS SQL Server does not support for datetime times beyond 23:59:59.997 use this value instead of 23:59:59.999 introduced in rev.27522

git-svn-id: trunk@27640 -
lacak před 11 roky
rodič
revize
2be706dbb0
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      packages/fcl-db/tests/sqldbtoolsunit.pas

+ 3 - 2
packages/fcl-db/tests/sqldbtoolsunit.pas

@@ -369,8 +369,9 @@ begin
     if SQLServerType in [ssFirebird, ssInterbase, ssMSSQL, ssOracle] then
       begin
       // Firebird, Oracle, MS SQL Server do not support time = 24:00:00
-      testTimeValues[2]:='23:59:59.999';
-      testValues[ftTime,2]:='23:59:59.999';
+      // MS SQL Server "datetime" supports only time up to 23:59:59.997
+      testTimeValues[2]:='23:59:59.997';
+      testValues[ftTime,2]:='23:59:59.997';
       end;
     end;