|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-05-26 12:36 UTC] excalibur at hub dot org
I've tested extensively to figure out if this is a bug or not, but since I installed 4.0.5 on my system my queries have been returning twice the number of columns as it should. The table I am selecting from has 3 rows and 3 columns, however pg_fetch_array returns 6 columns (it creates duplicates). My Query is a simple "SELECT * FROM table ORDER BY column request and I am running 7.1 of PostgreSQL, I have already verified that PostgreSQL is not causing the problem. pg_numfields returns a 3 so I have a work around, but using pg_fetch_array is SOOO convienent :> PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 14:00:02 2025 UTC |
Forgot to add my code.. function select($query) { if (!$this->get_pgsql_connection_status()) { $this->open(); } if ($this->get_pgsql_connection_status()) { $result_query = pg_exec($this->pgsql_dbh, $query); if (isset($result_query) && pg_numrows($result_query) > 0) { $result_array = array(); for ($i = 0; $i < pg_numrows($result_query); $i++) { $result_array[$i] = pg_fetch_array($result_query, $i); } $this->close(); return $result_array; } $this->close(); } return false; }