Doc #73036 [Ver->Csd]: pg_insert() now returns a resource ID instead of boolean

From: Date: Wed, 12 Oct 2016 17:12:39 +0000
Subject: Doc #73036 [Ver->Csd]: pg_insert() now returns a resource ID instead of boolean
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14011@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73036&edit=1 ID: 73036 Updated by: cmb@php.net Reported by: tony at precisonline dot com Summary: pg_insert() now returns a resource ID instead of boolean -Status: Verified +Status: Closed Type: Documentation Problem Package: PostgreSQL related Operating System: Windows PHP Version: 5.6.25 Assigned To: cmb Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2016-10-12 17:11:52] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=340460 Log: Fix #73036: pg_insert() now returns a resource ID instead of boolean ------------------------------------------------------------------------ [2016-10-12 16:23:39] cmb@php.net Indeed, the behavior has been changed as of PHP 5.6.0. ------------------------------------------------------------------------ [2016-09-06 21:08:29] tony at precisonline dot com Description: ------------ --- From manual page: http://www.php.net/function.pg-insert --- pg_insert() now returns a resource ID instead of boolean A bug report was marked as closed with this change on 2014-02-16: https://bugs.php.net/bug.php?id=25854 Test script: --------------- $conn = pg_connect($connString); $insert = array( 'name' => 'test' ); $result = pg_insert($conn, 'test', $insert); var_dump($result); Expected result: ---------------- bool(true) Actual result: -------------- resource(3) of type (pgsql result) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73036&edit=1

« previous php.doc.bugs (#14011) next »