25.10.2013 Views

New SQL Features in Firebird

New SQL Features in Firebird

New SQL Features in Firebird

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10<br />

P<strong>SQL</strong> : Autonomous Transactions<br />

Syntax<br />

IN AUTONOMOUS TRANSACTION DO<br />

<br />

Parameters ?<br />

Same as outer transaction (isolation level, read\write, wait mode, etc)<br />

Configurable ? Not yet... may be later<br />

How it ends ?<br />

if (statement executed ok)<br />

then commit<br />

else rollback<br />

Notes<br />

Autonomous transaction and its outer transaction fully <strong>in</strong>dependent and isolated from each<br />

other as any other two transactions.<br />

Temporary BLOBs, created <strong>in</strong> autonomous transaction, attached to outer transaction. This is<br />

done to allow usage of such blobs after autonomous transaction ends. This behavior may<br />

be a source of unexpected additional memory consumption.<br />

Luxembourg 2011 Whats new <strong>in</strong> <strong>Firebird</strong> <strong>SQL</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!