소스 검색

* Also in ExecuteDirect the allocation and preparation of a cursor should be
as close together as possible

git-svn-id: trunk@13001 -

joost 16 년 전
부모
커밋
934a6b159f
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      packages/fcl-db/src/sqldb/sqldb.pp

+ 1 - 4
packages/fcl-db/src/sqldb/sqldb.pp

@@ -552,15 +552,12 @@ begin
   if not ATransaction.Active then ATransaction.StartTransaction;
 
   try
-    Cursor := AllocateCursorHandle;
-
     SQL := TrimRight(SQL);
-
     if SQL = '' then
       DatabaseError(SErrNoStatement);
 
+    Cursor := AllocateCursorHandle;
     Cursor.FStatementType := stNone;
-
     PrepareStatement(cursor,ATransaction,SQL,Nil);
     execute(cursor,ATransaction, Nil);
     UnPrepareStatement(Cursor);