1
0
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:
monty@narttu.mysql.fi
2003-06-15 12:34:04 +03:00
parent 1e62d6070a
commit d33cb08eb6
2 changed files with 14 additions and 3 deletions

View File

@ -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;