Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
see: http://drupal.org/node/293551
The example code for using the database extraction layer and db_query, which is displayed at api.d.o: http://api.drupal.org/api/group/database/7 is wrong for 4.7.x, 5.x, 6.x, and 7.x. Looks like the example was never updated since 4.6.x?
Obviously, this example may become something different entirely for 7.x if the DBTNG patch lands.
Comment | File | Size | Author |
---|---|---|---|
#1 | db-example-293558-6x-1.patch | 1.19 KB | pwolanin |
Comments
Comment #1
pwolanin CreditAttribution: pwolanin commentedThe DBTNG patch partially changes the example, but does not correct the fact the n.body does not exist. I'll add a comment on that issue and let any other changes for 7.x happen there. Hence moving this to 6.x.
https://4si.devguard.com/svn/public/pdo/includes/database.inc
Attached patch is the easiest fix - just omit n.body, rather than adding the complication of a JOIN to the example.
Comment #2
mr.baileysRTBC.
Comment #3
Gábor HojtsyLet's get this fixed first in Drupal 7 and then backport as usual or we risk keeping this issue in 7.x!
Comment #4
Gábor HojtsyComment #5
pwolanin CreditAttribution: pwolanin commentedComment #6
aspilicious CreditAttribution: aspilicious commentedIs this still relevant? Cause I can't fine the example...
Comment #7
Damien Tournoud CreditAttribution: Damien Tournoud commentedSeems to has been fixed somewhere else for D6 and D7. D5 is wrong, as shown on the API page.
Comment #8
jhodgdon7.0 is out tomorrow, 5.x is obsolete, won't fix, sorry.