Subject | OnError() event... |
---|---|
Author | Dmitry Beloshistov |
Post date | 2001-12-12T08:32:57Z |
In my project I write this code (example):
with IB_Query1 do
begin
close; sql.clear;
sql.add(' THIS IS SQL FOR TEST OnError() event' );
end;
And do:
IB_Query1.Prepare;
// if IB_Query1.Prepared then IB_Query1.Open; - no any effects - Prepared
always true ;(((
IB_Query1.Open;
In database OnError() I have 3 events (if RaiseException=True)...
1) SQLError - dynamic SQL error
2) SQLError - dynamic SQL error
3) Exception "Statement failed to prepare..."
I want one message only - first SQLError for users...
Where I has error?
WBR, Dmitry Beloshistov AKA [-=BDS=-]
e-mail: torin@...
with IB_Query1 do
begin
close; sql.clear;
sql.add(' THIS IS SQL FOR TEST OnError() event' );
end;
And do:
IB_Query1.Prepare;
// if IB_Query1.Prepared then IB_Query1.Open; - no any effects - Prepared
always true ;(((
IB_Query1.Open;
In database OnError() I have 3 events (if RaiseException=True)...
1) SQLError - dynamic SQL error
2) SQLError - dynamic SQL error
3) Exception "Statement failed to prepare..."
I want one message only - first SQLError for users...
Where I has error?
WBR, Dmitry Beloshistov AKA [-=BDS=-]
e-mail: torin@...