Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Oct 2007 at 18:26 UTC
Updated:
29 Dec 2007 at 15:11 UTC
Jump to comment: Most recent file
The primary table name must be in curly braces, otherwise there will be errors when table prefixes are used.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | database.inc-182728.patch | 1.93 KB | gpk |
| #5 | database_13.patch | 605 bytes | hazexp |
| #1 | database.inc-182728.patch | 832 bytes | darren oh |
Comments
Comment #1
darren ohComment #2
dries commentedCommitted. Thanks.
Comment #3
darren ohApplied to HEAD in CVS commit 84159.
Comment #4
patchnewbie commentedThis would be a good patch for someone new to core development.
Comment #5
hazexp commentedPatch ported to D6.
Comment #6
patchnewbie commentedGreat! Marking for review.
Comment #7
fp commentedTested - fantastic!
Comment #8
drummCommitted to 5.x
Comment #9
darren ohFixed in CVS commit 87175.
Comment #10
gpk commentedShould similar changes also be made to _db_rewrite_sql() for consistency?
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
gpk commentedActually it looks as though the patch at comment #1 got committed first to D6 (although it was intended for D5) then to D5 and the patch at #5 was never applied.
Here's another patch for D6 based on HEAD. It fixes a couple of excessively long lines in the phpdoc of db_rewrite_sql(), clarifies the instructions further, and does same for _db_rewrite_sql() also.
The doc. for http://api.drupal.org/api/function/hook_db_rewrite_sql should also be updated accordingly but I don't know how to do that!
Comment #13
gábor hojtsyIndeed, we mostly used table aliases but these were not documented. Thanks for the improvement.
Comment #14
gpk commentedThanks Gábor.
(Commit #91420.)
Comment #15
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.