Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalent of @@TRANCOUNT
Message
From
27/09/2006 11:25:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/09/2006 19:15:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
MySQL
Miscellaneous
Thread ID:
01157324
Message ID:
01157521
Views:
13
>>Tired of googling it out, can't find whether it exists or is called something else.
>>
>>How do I know whether I have a transaction started in MySQL? I need an equivalent to TSQL's @@TRANCOUNT or VFP's TxnLevel().
>
>Maybe I'm reading it wrong:
>
>"In MySQL you cannot nest transactions. If you issue a BEGINstatement for agiven user while that user has a pending transaction, MySQL will treat it as aCOMMITfollowed by a BEGIN. In other words, MySQL allows individual users to per-form only sequential transactions.
>NOTEMySQL does not support save points as do some other data-bases.You can only commit or roll back a complete transaction."
>
>Source: dev.mysql.com/tech-resources/articles/mysql-db-design-ch5.pdf

Thanks - but I still know whether this applies to the current version. There are savepoints now. So even if there's a max of one transaction level, the question remains how do I know what is it, zero or one?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform