note 106504 added to pdostatement.fetchall

From: Date: Tue, 15 Nov 2011 00:38:15 +0000
Subject: note 106504 added to pdostatement.fetchall
Groups: php.notes 
Request: Send a blank email to php-notes+get-184443@lists.php.net to get a copy of this message
@ Daniel Hofmann's comment It still doesn't solve the problem if you ever need to return the NULL result set. Any instance where you have to return two different tables with the same field name results in one field being returned. If PHP used the table alias and the field name for the returned array key then this behaviour could be avoided. The only alternative is to use a field alias in the SELECT, which I find undesirable. I have resorted to fixing all my field names with its table name prefix to give a unique fieldname throughout the entire database, its messy, but it avoids odd results. ---- Server IP: 69.147.83.197 Probable Submitter: 78.143.202.196 ---- Manual Page -- http://www.php.net/manual/en/pdostatement.fetchall.php Edit -- https://master.php.net/note/edit/106504 Del: integrated -- https://master.php.net/note/delete/106504/integrated Del: useless -- https://master.php.net/note/delete/106504/useless Del: bad code -- https://master.php.net/note/delete/106504/bad+code Del: spam -- https://master.php.net/note/delete/106504/spam Del: non-english -- https://master.php.net/note/delete/106504/non-english Del: in docs -- https://master.php.net/note/delete/106504/in+docs Del: other reasons-- https://master.php.net/note/delete/106504 Reject -- https://master.php.net/note/reject/106504 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184443) next »