|
@@ -914,15 +914,14 @@ begin
|
|
if not Db.Connected then db.Open;
|
|
if not Db.Connected then db.Open;
|
|
if not sqltr.Active then sqltr.StartTransaction;
|
|
if not sqltr.Active then sqltr.StartTransaction;
|
|
|
|
|
|
-// if assigned(fcursor) then FreeAndNil(fcursor);
|
|
|
|
- if not assigned(fcursor) then
|
|
|
|
- FCursor := Db.AllocateCursorHandle;
|
|
|
|
-
|
|
|
|
FSQLBuf := TrimRight(FSQL.Text);
|
|
FSQLBuf := TrimRight(FSQL.Text);
|
|
|
|
|
|
if FSQLBuf = '' then
|
|
if FSQLBuf = '' then
|
|
DatabaseError(SErrNoStatement);
|
|
DatabaseError(SErrNoStatement);
|
|
|
|
|
|
|
|
+ if not assigned(fcursor) then
|
|
|
|
+ FCursor := Db.AllocateCursorHandle;
|
|
|
|
+
|
|
SQLParser(FSQLBuf);
|
|
SQLParser(FSQLBuf);
|
|
|
|
|
|
if ServerFiltered then
|
|
if ServerFiltered then
|