mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
LAST_INSERT_ID()}will now return 0 if the last INSERT didn't insert any rows.
This commit is contained in:
@ -143,5 +143,5 @@ insert into t1 values (NULL, 10);
|
||||
ERROR 23000: Duplicate entry '10' for key 2
|
||||
select last_insert_id();
|
||||
last_insert_id()
|
||||
3
|
||||
0
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user