소스 검색

* Clear in_sqlda when it is not needed

git-svn-id: trunk@4905 -
joost 19 년 전
부모
커밋
c88d92929e
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      fcl/db/sqldb/interbase/ibconnection.pp

+ 3 - 2
fcl/db/sqldb/interbase/ibconnection.pp

@@ -415,7 +415,6 @@ begin
   curs.statement := nil;
   curs.FPrepared := False;
   AllocSQLDA(curs.SQLDA,0);
-  AllocSQLDA(curs.in_SQLDA,0);
   result := curs;
 end;
 
@@ -475,7 +474,9 @@ begin
         if (sqltype and 1) = 1 then New(SQLInd);
         end;
       {$R+}
-      end;
+      end
+    else
+      AllocSQLDA(in_SQLDA,0);
     if FStatementType = stselect then
       begin
       FPrepared := False;