Closed Bug 442582 Opened 17 years ago Closed 17 years ago

Use sql_iposition instead of sql_position(lc($var), LOWER($var)) in Bugzilla::User::match

Categories

(Bugzilla :: Database, enhancement)

3.1.4
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

In bug 321427 I created sql_iposition, and there are a few other places that we can use it other than the place I used it in that bug.
Turns out it's only used in Bugzilla::User.
Summary: Use sql_iposition instead of sql_position(lc($var), LOWER($var)) → Use sql_iposition instead of sql_position(lc($var), LOWER($var)) in Bugzilla::User::match
Attached patch v1Splinter Review
This patch is pretty obvious. This is also the very last use of LOWER in Bugzilla outside of the DB layer! :-) This should make user-matching slightly faster on MySQL, I think.
Assignee: database → mkanat
Status: NEW → ASSIGNED
Attachment #327346 - Flags: review?(LpSolit)
Comment on attachment 327346 [details] [diff] [review] v1 Works fine. r=LpSolit
Attachment #327346 - Flags: review?(LpSolit) → review+
Flags: approval+
Checking in Bugzilla/User.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/User.pm,v <-- User.pm new revision: 1.165; previous revision: 1.164 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: