Closed (fixed)
Project:
Drupal core
Component:
user.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2005 at 22:40 UTC
Updated:
24 Jan 2006 at 15:13 UTC
The autocomplete sql code doesn't work with postgresql.
I hade to change line 1895 (function user_autocomplete) to:
$result = db_query_range("SELECT name FROM {users} WHERE LOWER(name) LIKE LOWER('%%%s%%')", $string, 0, 10);
Comments
Comment #1
Thox commentedPostgreSQL treats single and double quotes differently?
Comment #2
Cvbge commentedYes, from http://www.postgresql.org/docs/7.4/interactive/sql-syntax.html :
Comment #3
Zen commentedThis appears to be fixed.
-K
Comment #4
dries commented