|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-22 01:13 UTC] kfbombar at us dot ibm dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 23:00:01 2025 UTC |
Description: ------------ Support for the SERIAL datatype using PDO Reproduce code: --------------- $db = new PDO( "informix:host=xeo;service=1526;database=stores_demo;server=ol_xeo;protocol=olsoctcp;EnableScrollableCursors=1;DB_LOCALE=EN_US.8859-1"/* connection string */ , "informix"/* user */ , "informix"/* password */); $insstmt = 'insert into customer(customer_num, fname, lname, company) values(?, ?, ?, ?);'; $stmt = $db->prepare($insstmt); $dataarray = array('0', 'Jean Georges', 'Perrin', 'None'); $result = $stmt->execute($dataarray); if ($result == true) { echo ("Row successfully insterted, customer #" . $db->lastInsertId()); } Expected result: ---------------- PDO::lastInsertId() should *NOT* return: SQLSTATE[IM001]: Driver does not support this function: driver does not support lastInsertId() in xxx It should return the correct value of the SERIAL.