behavior and documents conflict for SELECT LAST_INSERT_ID()
- Date: Fri, 21 Apr 2017 16:38:13 +0800
- From: Chenxi Li <spiritlcx@xxxxxxxxx>
- Subject: behavior and documents conflict for SELECT LAST_INSERT_ID()
The document (2) says that LAST_INSERT_ID() will not be changed if no rows
are inserted successfully. But (1) says that it's undefined when no rows
are inserted successfully, which is in real case.
What is the problem? the document or the code?