From: lpsolit%gmail.com <> Date: Sat, 23 May 2009 17:39:22 +0000 (+0000) Subject: Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User - Patch... X-Git-Tag: bugzilla-3.5.1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58dedffde8e1e909e5d64f11b131453b0d477e70;p=thirdparty%2Fbugzilla.git Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User - Patch by Michael Thomas r/a=LpSolit --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index ac6e727113..58183a0050 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -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) {