Commit 0ae1695e authored by Vincent Pelletier's avatar Vincent Pelletier
Browse files

Some MySQL verions behave strangely when LAST_INSERT_ID is used twice in the...

Some MySQL verions behave strangely when LAST_INSERT_ID is used twice in the same request. As the query is in a BEGIN..COMMIT block, fetch the inserted value instead of using LAST_INSERT_ID trick. Patch proposed by Yoshinori & applied verbatim.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13789 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5c22344
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment