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

From: Date: Wed, 12 Oct 2016 16:23:40 +0000
Subject: Doc #73036 [Opn->Ver]: 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-14010@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: Open +Status: Verified Type: Documentation Problem Package: PostgreSQL related Operating System: Windows PHP Version: 5.6.25 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Indeed, the behavior has been changed as of PHP 5.6.0. Previous Comments: ------------------------------------------------------------------------ [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 (#14010) next »