From: nospam at webdragon dot net Operating system: Linux (Fedora Core 1) PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: RFE change in function.mysql-fetch-array.html
Description: ------------ Following is a patch to the documentation to make the aliasing issue slightly clearer. I (in my caffeine deprived state) not only failed to realize that you were referring to aliasing via mysql, but didn't notice that the query below was doing that very thing in mysql. This patch makes this slightly clearer. (hopefully linewrapping won't bollix this) Reproduce code: --------------- --- function.mysql-fetch-array.html 2004-02-08 16:43:54.000000000 -0500 +++ function.mysql-fetch-array.new.html 2004-02-23 13:08:26.000000000 -0500 @@ -144,7 +144,7 @@ ></A ><P ><B ->Example 1. Query with duplicate field names</B +>Example 1. Query with aliased duplicate field names</B ></P ><TABLE BORDER="0" @@ -154,7 +154,7 @@ ><TD ><PRE CLASS="sql" ->select table1.field as foo, table2.field as bar from table1, table2</PRE +>SELECT table1.field AS foo, table2.field AS bar FROM table1, table2</PRE ></TD ></TR ></TABLE @@ -432,4 +432,4 @@ ></DIV ></BODY ></HTML -> \ No newline at end of file +> -- Edit bug report at http://bugs.php.net/?id=27369&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27369&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27369&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27369&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27369&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27369&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27369&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27369&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27369&r=support Expected behavior: http://bugs.php.net/fix.php?id=27369&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27369&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27369&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27369&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27369&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27369&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27369&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27369&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27369&r=float
