|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-05-13 23:33 UTC] cstdenis at ctgameinfo dot com
Description:
------------
Warning: pg_send_query() expects exactly 2 parameters, 1 given
According to the docs
bool pg_send_query ( resource connection, string query )
bool pg_send_query ( string query )
One of those is wrong, and I'm betting on the code since all the other functions in the group accept 1 OR 2 prameters.
Reproduce code:
---------------
pg_send_query ("insert into test (test1, test2) ('a', 1)");
Expected result:
----------------
Query executed.
Actual result:
--------------
Warning: pg_send_query() expects exactly 2 parameters, 1 given
Query not executed.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 04:00:01 2025 UTC |
Mistyped the query. Should be pg_send_query ("insert into test (test1, test2) values ('a', 1)"); not that it matters, its just an example.