Browse Source

Fix for 18239

git-svn-id: trunk@16577 -
michael 14 years ago
parent
commit
c7fe965f2c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-db/src/sqldb/interbase/ibconnection.pp

+ 1 - 1
packages/fcl-db/src/sqldb/interbase/ibconnection.pp

@@ -905,7 +905,7 @@ begin
             case SQLDA^.SQLVar[x].SQLLen of
               2 : begin
                   Move(CurrBuff^, smalli, 2);
-                  c := longi*intpower(10,SQLDA^.SQLVar[x].SQLScale);
+                  c := smalli*intpower(10,SQLDA^.SQLVar[x].SQLScale);
                   end;
               4 : begin
                   Move(CurrBuff^, longi, 4);