Explorar el Código

* Fix currency to SQL_NUMERIC_STRUCT for platforms without extended

git-svn-id: trunk@43697 -
michael hace 5 años
padre
commit
49ba4731ed
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/odbc/src/odbcsql.inc

+ 1 - 1
packages/odbc/src/odbcsql.inc

@@ -1962,7 +1962,7 @@ begin
     Result.sign:=0;
     Result.sign:=0;
     c := -c;
     c := -c;
   end;
   end;
-  n := NtoLE(Trunc(c*10000));
+  n := NtoLE(Trunc(c)*10000 + Round(Frac(c)*10000));
   for i:=0 to high(Result.val) do begin
   for i:=0 to high(Result.val) do begin
     Result.val[i] := n and $ff;
     Result.val[i] := n and $ff;
     n := n shr 8;
     n := n shr 8;