Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Feb 2012 at 03:13 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mdupontThis is what PHP official documentation says:
Comment #2
jhodgdonSounds like something that needs to be updated in the documentation - thanks!
Comment #3
chris.leversuch commentedSomething like this?
I assume this doesn't need fixing in D8 or D7 since the database system changed a lot.
Comment #4
jhodgdonI don't think "resultset" is a word, even though the official PHP documentation apparently uses it? Also, maybe we should give examples of which queries return result sets, like the PHP docs in #2 do?
And yes, this is drupal 6 only.
Comment #5
chris.leversuch commentedIs this better?
Comment #6
jhodgdonThat looks better! I am wondering if we can combine the mysql and mysqli parts?
Also, our style guidelines in the Drupal project require a , before the final or in a list:
apples, oranges, or bananas
Comment #7
chris.leversuch commentedThe PHP docs area slightly different for mysql/mysqli - mysql has "and other statements returning resultset" after the list of query types. I guess it could be that they're actually the same and the PHP docs are misleading.
Should I remove the distinction between the 2 and just say "Successful SELECT, SHOW, DESCRIBE, EXPLAIN, or other queries which return a set of results will return a database query result resource" ?
Comment #8
jhodgdonThat seems like a good idea to me (combining as you suggest).
Comment #9
chris.leversuch commentedAttached.
Comment #10
jhodgdonThat looks good to me, thanks!
Comment #11
gábor hojtsyThanks, committed, pushed.