]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 487443: MS-SQL requires a different use of SUBSTRING in Bugzilla::User - Patch...
authorlpsolit%gmail.com <>
Sat, 23 May 2009 17:39:22 +0000 (17:39 +0000)
committerlpsolit%gmail.com <>
Sat, 23 May 2009 17:39:22 +0000 (17:39 +0000)
Bugzilla/User.pm

index ac6e727113739f5afc027054639d9726a14a4440..58183a005069c5c959fe9cfbbefed4779a3443f6 100644 (file)
@@ -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) {