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.
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 CreditAttribution: Dries commentedCommitted. Thanks.
Comment #3
Darren OhApplied to HEAD in CVS commit 84159.
Comment #4
patchnewbie CreditAttribution: patchnewbie commentedThis would be a good patch for someone new to core development.
Comment #5
hazexp CreditAttribution: hazexp commentedPatch ported to D6.
Comment #6
patchnewbie CreditAttribution: patchnewbie commentedGreat! Marking for review.
Comment #7
fp CreditAttribution: fp commentedTested - fantastic!
Comment #8
drummCommitted to 5.x
Comment #9
Darren OhFixed in CVS commit 87175.
Comment #10
gpk CreditAttribution: gpk commentedShould similar changes also be made to _db_rewrite_sql() for consistency?
Comment #11
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
gpk CreditAttribution: 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 CreditAttribution: gpk commentedThanks Gábor.
(Commit #91420.)
Comment #15
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.