Trap/catch 'SQL statement doesn't return rows'

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Dokkie
Posts: 43
Joined: Wed 08 Oct 2008 21:58

Trap/catch 'SQL statement doesn't return rows'

Post by Dokkie » Fri 02 Jan 2015 15:36

Using IBDAC latest version.
When I attempt to open a storedproc which contains an execute statement - and does not return rows I receive 'SQL statement doesn't return rows' error message in a box - this is correct.

However I would like to catch the error and deal with it without interrupting the programme with the error box.

I've tried putting the open call in a try except block but the error box still shows.
Thanks

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Trap/catch 'SQL statement doesn't return rows'

Post by ViktorV » Sun 04 Jan 2015 06:42

Unfortunately, we can not reproduce the problem as you have described it. Please send a small sample to viktorv*devart*com to demonstrate the issue, including a script to create and fill in the test database object.

Dokkie
Posts: 43
Joined: Wed 08 Oct 2008 21:58

Re: Trap/catch 'SQL statement doesn't return rows'

Post by Dokkie » Sun 04 Jan 2015 23:27

Thank you.
Well this is embarrassing..
In the process of making a small test project to send to you I discovered that - Surprize, surprize - the error is in my code. Your code does allow me to catch the exception.

Apologies for wasting your time.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Trap/catch 'SQL statement doesn't return rows'

Post by ViktorV » Mon 05 Jan 2015 05:47

Glad to see that the issue was resolved. Feel free to contact us if you have any further questions about IBDAC.

Post Reply