|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-18 06:14 UTC] grant dot croker at ingres dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 12 23:00:01 2025 UTC |
Description: ------------ Inserting into a table with an auto-sequence and then trying to get the inserted id fails with fatal error when using the code below. Reproduce code: --------------- create table my_table (i integer with default my_seq.nextval) <?php $link = ingres2_connect("database"); ingres2_autocommit($link); ingres2_query($link, "insert into my_table values (default)"); $res = ingres2_query($link, "select current value for my_seq"); $row = ingres2_fetch_array($res); ?> Expected result: ---------------- It should return the last ID for that sequence Actual result: -------------- It gives a fatal error with internal commit