User search does not work

Bug #544901 reported by Ruslan Kabalin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Undecided
Richard Mansfield

Bug Description

Branch: master

Any user searching attempt ends up with error message. The problem is related to real name search introduction (4339ecf6243f), there is a type mismatch in user search query. The patch is attached.

Tags: search user
Revision history for this message
Ruslan Kabalin (rkabalin) wrote :
Revision history for this message
Evan Goldenberg (naveg) wrote :

Are you using the latest? I think I fixed this in 32f72753b3f121959c1b26db76d1498dcb741dc5. Could be wrong though.

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

It's a bit of a worry this, because the same kind of thing probably happens in quite a few queries. I can't reproduce any of these errors using pg 8.1 on my dev server (or on master.dev.mahara.org) -- these pg installs must be overly forgiving of type mismatches.

After pulling down 32f72753b3f121959c1b26db76d1498dcb741dc5 I still don't get any pg errors but my mysql install won't search users any more.

mysql error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) <> 1)
                         AND (u.firstname LIKE '%' || '' || '%' OR' at line 7] ...

Revision history for this message
Richard Mansfield (richard-mansfield) wrote :

Ruslan's patch works for me in both pg & mysql.

Changed in mahara:
status: New → Fix Committed
milestone: none → 1.3.0
assignee: nobody → Richard Mansfield (richard-mansfield)
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.