Setting a Statement Timeout
Note
|
The timer will not start if the timeout period is set to zero. |
A statement timeout can be set:
-
at database level, by the database administrator, by setting the configuration parameter
StatementTimeout
infirebird.conf
ordatabases.conf
.StatementTimeout
is an integer representing the number of seconds after which statement execution will be cancelled automatically by the engine.Zero means no timeout is set.A non-zero setting will affect all statements in all connections. -
at connection level, using
SET STATEMENT TIMEOUT
or the API for setting a statement timeout (setStatementTimeout
).A connection-level setting (via SQL or the API) affects all statements for the given connection;units for the timeout period at this level can be specified to any granularity from hours to milliseconds. -
at statement level, using the API, in milliseconds