Subject | Re: [firebird-support] Re: Transactions and dbExpress |
---|---|
Author | Martijn Tonies |
Post date | 2005-05-13T10:05:05Z |
Hello Christian,
comments about smacking people in the back of their head ;-)
No seriously, dbExpress isn't too bad. It's just a bit weirdish and
very undocumented.
closing
the cursor.
Mind you, with dbExpress, the idea is to keep no open cursors. That's why
dbExpress is uni-directional.
"TransactionLevel is the same as the transaction identifier that is supplied
to the connection's StartTransaction method."
per TSQLConnection basis for our driver...
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
> > Well, it's ... different. :-) ... At least you can start multipleI have my moments... but also a very dark side which usually includes
> > transactions!
> You sound like a teacher, always try to see something positive :-).
comments about smacking people in the back of their head ;-)
No seriously, dbExpress isn't too bad. It's just a bit weirdish and
very undocumented.
> > If you don't start a transaction, the transaction isolation fromIt will use the global transaction. The auto-commit happens right after
> > TSQLConnection.Params is used and it's auto-commit.
>
> But what happens with SELECT statements? Do you open a transaction per
> statement? And when does the auto-commit happen?
closing
the cursor.
Mind you, with dbExpress, the idea is to keep no open cursors. That's why
dbExpress is uni-directional.
> > Through the TransactionLevel property:I think so, according to the help:
> >
> > Indicates the transaction to which this dataset belongs.
>
> OK, this is the value of TTransactionDesc.TransactionID I think?
"TransactionLevel is the same as the transaction identifier that is supplied
to the connection's StartTransaction method."
>Is itYou have to manage the transaction IDs, they have to be global on a
> in my responsability, to manage the used TransactionID's? Do they
> have to be unique globally or only per TSqlConnection ?
per TSQLConnection basis for our driver...
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com