Browse Source

* Fix currency to SQL_NUMERIC_STRUCT for platforms without extended

git-svn-id: trunk@43697 -
michael 5 years ago
parent
commit
49ba4731ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/odbc/src/odbcsql.inc

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

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