Web lists-archives.com

behavior and documents conflict for SELECT LAST_INSERT_ID()

Dear friends,

1. https://bugs.mysql.com/bug.php?id=78934


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?

Best Regards,
Chenxi Li