[otrs-cvs] otrs/Kernel/System DB.pm,1.153,1.154

"CVS commits notifications of OTRS.org" <[email protected]>
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/otrs/Kernel/System
In directory lancelot:/tmp/cvs-serv1447/Kernel/System

Modified Files:
	DB.pm 
Log Message:
Small regex improvement.

Author: mb

Index: DB.pm
===================================================================
RCS file: /home/cvs/otrs/Kernel/System/DB.pm,v
retrieving revision 1.153
retrieving revision 1.154
diff -2 -u -d -r1.153 -r1.154
--- DB.pm	11 Dec 2012 06:19:42 -0000	1.153
+++ DB.pm	11 Dec 2012 09:28:56 -0000	1.154
@@ -561,4 +561,7 @@
         }
         elsif ( $Self->{Backend}->{'DB::Limit'} eq 'top' ) {
+            $SQL =~ s{ \A SELECT }{SELECT TOP $Limit}xmsi;
+        }
+        elsif ( $Self->{Backend}->{'DB::Limit'} eq 'top' ) {
             $SQL =~ s/^SELECT/SELECT TOP $Limit/i;
         }
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.