Commit 58dedffd authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User -…

Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User - Patch by Michael Thomas <m.thomas@valueclick.com> r/a=LpSolit
parent 056f4049
......@@ -1657,7 +1657,7 @@ sub is_available_username {
$dbh->sql_position(q{':'}, 'eventdata') . "- 1)) = ?)
OR (tokentype = 'emailnew'
AND SUBSTRING(eventdata, (" .
$dbh->sql_position(q{':'}, 'eventdata') . "+ 1)) = ?)",
$dbh->sql_position(q{':'}, 'eventdata') . "+ 1), LENGTH(eventdata)) = ?)",
undef, ($username, $username));
if ($eventdata) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment