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.
Visiting admin/user/user when you're using a table prefix in your database, you get the following warning:
user warning: Table 'drupal.users' doesn't exist query: SELECT COUNT(DISTINCT u.uid) FROM users u LEFT JOIN users_roles ur ON u.uid = ur.uid WHERE u.uid != 0 in user.admin.inc on line XXX.
This is because it doesn't put the {} around the table name. The attached patch will fix it.
Comment | File | Size | Author |
---|---|---|---|
#3 | users_admin_admin_5.patch | 1 KB | RobLoach |
adminuseruserbrackets.patch | 1022 bytes | RobLoach | |
Comments
Comment #1
webchickNo-brainer. Nice catch.
Comment #2
Gábor HojtsyThanks, committed.
Comment #3
RobLoachFound that this is persistent in 5.x-dev, as well as Drupal 5.4.
Comment #4
catchhttp://drupal.org/node/198309#comment-650610 was duplicate, and RTBC.
Comment #5
drummCommitted to 5.x.
Comment #6
(not verified) CreditAttribution: commentedAutomatically closed -- issue fixed for two weeks with no activity.