Bug #45908 | start transaction should fail if a transaction from the same session is active | ||
---|---|---|---|
Submitted: | 2 Jul 2009 12:13 | Modified: | 2 Jul 2009 12:21 |
Reporter: | Peter Lorenz | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | CM-Server 5.1 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | commit, rollback, transaction |
[2 Jul 2009 12:13]
Peter Lorenz
[2 Jul 2009 12:21]
Valeriy Kravchuk
Sorry, but current behaviour is intended and properly documented. Please, read the manual, http://dev.mysql.com/doc/refman/5.1/en/commit.html: "Beginning a transaction causes any pending transaction to be committed."
[6 Jul 2009 15:30]
Sergei Golubchik
btw, from the sql standard (2003, part 2, 16.1 <start transaction statement>, general rules): 1) If a <start transaction statement> statement is executed when an SQL-transaction is currently active, then an exception condition is raised: invalid transaction state - active SQL-transaction.