Bug #64209 [Opn->Nab]: mysqli.insert-id return autoincrement not insert id
Edit report at https://bugs.php.net/bug.php?id=64209&edit=1
ID: 64209
Updated by: johannes@php.net
Reported by: grek at pogodzinach dot net
Summary: mysqli.insert-id return autoincrement not insert id
-Status: Open
+Status: Not a bug
Type: Bug
-Package: PHAR related
+Package: MySQLi related
Operating System: ubuntu
PHP Version: 5.4.11
Block user comment: N
Private report: N
New Comment:
"Insert ID" is a term used by MySQL. If you want to change this, ask Oracle to fix this in
MySQL. There is no reason for PHP to use different terminology.
Previous Comments:
------------------------------------------------------------------------
[2013-02-14 10:46:40] grek at pogodzinach dot net
Description:
------------
Hy
mysqli.insert-id = this is error / bug or
please rename funcion mysqli.insert-id to mysqli.autoincrement-value
or add to mysqli.insert-id return primary row value
- this func return 0 when primary value dont have auto increment
Test script:
---------------
any , always !
Expected result:
----------------
return real insert id = primary rov value
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64209&edit=1
Thread (2 messages)