From a21275a58f5eecb8fac93010042a726e5d76e2c5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Aug 2007 08:41:24 +0000 Subject: - Patch #165160 by hswong3i: made two SQL queries work on DB2. --- includes/bootstrap.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/bootstrap.inc') 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)); } /** -- cgit v1.2.3