summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-13 06:44:31 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-13 06:44:31 +0000
commit85213d3bee5c4373f12378c3fa910f0e93e6d678 (patch)
treed97cce804430817ebc6217fb25fb69e09171bf50 /modules/comment
parent83c97345e8eada544d7da4586e2c77db469ed5b1 (diff)
downloadbrdo-85213d3bee5c4373f12378c3fa910f0e93e6d678.tar.gz
brdo-85213d3bee5c4373f12378c3fa910f0e93e6d678.tar.bz2
#279851 by catch, et al: Replace LOWER() with db_select() and LIKE() where possible.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 0b3fc2d8c..691c1421b 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1990,7 +1990,7 @@ function comment_form_validate($form, &$form_state) {
$query = db_select('users', 'u');
$query->addField('u', 'uid', 'uid');
$taken = $query
- ->where('LOWER(name) = :name', array(':name' => $form_state['values']['name']))
+ ->condition('name', db_like($form_state['values']['name']), 'LIKE')
->countQuery()
->execute()
->fetchField();