#40808 [Asn->Csd]: pg_insert problem
| From: | felipe@php.net | Date: | Thu, 16 Oct 2008 00:46:16 +0000 |
| Subject: | #40808 [Asn->Csd]: pg_insert problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129736@lists.php.net to get a copy of this message | ||
ID: 40808
Updated by: felipe@php.net
Reported By: pentropia at gmail dot com
-Status: Assigned
+Status: Closed
Bug Type: PostgreSQL related
Operating System: Win32
PHP Version: 5.2.1
Assigned To: yohgaki
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-03-14 20:21:38] pentropia at gmail dot com
Description:
------------
Im referencing you to this bug:
http://bugs.php.net/bug.php?id=24679
Obviously he forgot to put the status back to 'open'.
pg_insert throws a couple of errors when you try to reference a table
within i schema.
This is because the query isn't composed the right way.
Reproduce code:
---------------
sql
CREATE SCHEMA foo;
CREATE TABLE foo.bar (
id int
);
php
pg_insert( $sqlres , "foo.bar" , array( "id" => 5 ) );
Expected result:
----------------
Expected new row to be added to table 'foo' within schema 'bar'.
Actual result:
--------------
Do not have the error atm. Could be brought up if requested.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40808&edit=1