Determine StatementIndex within OnError in UniScript

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Determine StatementIndex within OnError in UniScript

Post by zvasku » Tue 14 Nov 2017 17:34

Hello,

is it possible to determine StatementIndex within OnError in UniScript?

Thanks
Zdenek

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Determine StatementIndex within OnError in UniScript

Post by MaximG » Tue 20 Feb 2018 12:23

When using the OnError handler, you cannot determine the sequence number of the executed SQL query. However, it is not hard to determine such a number by yourself, for example, by counting the number of executed queries in the BeforExecute event handler that occurs before executing the current SQL statement.

Post Reply