Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
All commands aplicable in an active transaction only, ie. commit/rollback/savepoint/release savepoint, must emit an error if they are executed in a connection without active transaction.
Also start transaction should emit an error if there is an active transaction already.
repro: https://dbfiddle.uk/ipMQHAT7
Attachments
Issue Links
- relates to
-
MDEV-35335 implicit commit at START TRANSACTION doesn't reset characteristics
-
- Closed
-
- links to
That's not really possible to implement by default without severely breaking backwards compatibility.
I wonder what the SQL standard says is the correct behaviour, if it is covered in there?
It might be possible to implement a non-default SQL_MODE or similar that would enable this behaviour, if deemed sufficiently important.