694 |
|
end; |
695 |
|
|
696 |
|
procedure TIBSQL.ExecQuery; |
697 |
– |
var |
698 |
– |
fetch_res: ISC_STATUS; |
697 |
|
{$IFDEF IBXQUERYSTATS} |
698 |
+ |
var |
699 |
|
stats: TPerfCounters; |
700 |
|
{$ENDIF} |
701 |
|
{$IFDEF IBXQUERYTIME} |
702 |
+ |
var |
703 |
|
tmsecs: comp; |
704 |
|
{$ENDIF} |
705 |
|
begin |
879 |
|
|
880 |
|
procedure TIBSQL.SetDatabase(Value: TIBDatabase); |
881 |
|
begin |
882 |
+ |
if Value = FBase.Database then Exit; |
883 |
|
FBase.Database := Value; |
884 |
+ |
FreeHandle; |
885 |
|
end; |
886 |
|
|
887 |
|
procedure TIBSQL.Prepare; |
938 |
|
|
939 |
|
procedure TIBSQL.SetTransaction(Value: TIBTransaction); |
940 |
|
begin |
941 |
+ |
if FBase.Transaction = Value then Exit; |
942 |
+ |
FreeHandle; |
943 |
|
FBase.Transaction := Value; |
944 |
|
end; |
945 |
|
|