Subject | Re: [firebird-support] mon$statement_id is not consistent between snapshots? |
---|---|
Author | Douglas Tosi |
Post date | 2008-06-14T20:27:36Z |
On Sat, Jun 14, 2008 at 2:08 PM, Leyne, Sean <Sean@...> wrote:
I was assuming the statement id would uniquely identify it.
thanks,
Douglas Tosi
>> Playing with the monitoring tables I just noticed that the sameNot really.
> statement
>> can have different ids on different snapshots. Why is that?
> You are making the assumption that the SQL text is what identifies a
> unique statement -- that has never been the case.
I was assuming the statement id would uniquely identify it.
> From the engine perspective it is how the SQL Text is handled by theYes, just noticed that ids can also be reused for other statements.
> client which allows for the re-use of the statement handle. This is
> done by the client PREPARING the statement, and then invoking the
> command using the statement handle.
thanks,
Douglas Tosi