I use 2.1 firebird.
I see the select commands but I not found insert, update, delete commands when MON$STATE = 0.
Why can’t see insert, update, delete command in MON$STATEMENTS table after these run?
I see these when their MON$STATE = 1 but I not find these when their MON$STATE = 0.
MON$STATE = 1 means that a query being executed right now. MON$STATE = 0 means that a SELECT query has been executed and is in a suspended state. i.e. either waits for a row being fetched by a client application or an end of a record set is reached but query is not closed yet.
INSERT, UPDATE, DELETE queries don’t have a SUSPENDED state. They are either running or finished and gone.