#17392DBAL debugger causes backend INSERTs to fail or misbehave
Description
When the DBAL debugger is active, backend inserts into tables cease to work properly. When the TCA has a [‘ctrl’][‘type’] section and the value of the [‘type’] field changes, the BE normally inserts a newly entered record and then repositions to the proper uid.
When the DBAL debugger is enabled, you get the error
Sorry, you didn’t have proper permissions to perform this change.
instead (or a completely wrong record, depending on the table sizes).
Some analysis reveals that the last_insert_id does not return the correct value anymore. Obviously now the last_insert id for the debugger log entry is returned (instead the insert id for the record of the user table).
Perhaps the DBAL debugger uses the same mysql connection resource, this could explain this behaviour.
(issue imported from #M5810)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.