diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-07 08:41:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-07 08:41:24 +0000 |
commit | a21275a58f5eecb8fac93010042a726e5d76e2c5 (patch) | |
tree | 76490913c40f39084002ed19398747b146437c36 /includes/bootstrap.inc | |
parent | f23c24c8a31ea3787d5039d36de56001f731e22a (diff) | |
download | brdo-a21275a58f5eecb8fac93010042a726e5d76e2c5.tar.gz brdo-a21275a58f5eecb8fac93010042a726e5d76e2c5.tar.bz2 |
- Patch #165160 by hswong3i: made two SQL queries work on DB2.
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r-- | includes/bootstrap.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 93a35f041..32721b921 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -822,7 +822,7 @@ function drupal_is_denied($type, $mask) { // (allowed). // The use of ORDER BY / LIMIT is more efficient than "MAX(status) = 0" // in PostgreSQL <= 8.0. - return (bool) db_result(db_query_range("SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM {access} WHERE type = '%s' AND LOWER('%s') LIKE LOWER(mask) ORDER BY status DESC", $type, $mask, 0, 1)); + return (bool) db_result(db_query_range("SELECT CASE WHEN status=1 THEN 0 ELSE 1 END FROM {access} WHERE type = '%s' AND LOWER(mask) LIKE LOWER('%s') ORDER BY status DESC", $type, $mask, 0, 1)); } /** |