[Rt-commit] [svn] r1379 - in rt/branches/3.2-RELEASE: . lib/RT
jesse at pallas.eruditorum.org
jesse at pallas.eruditorum.org
Tue Aug 31 04:14:55 EDT 2004
Author: jesse
Date: Tue Aug 31 04:14:54 2004
New Revision: 1379
Modified:
rt/branches/3.2-RELEASE/ (props changed)
rt/branches/3.2-RELEASE/lib/RT/Tickets_Overlay_SQL.pm
Log:
----------------------------------------------------------------------
r8478 at tinbook: jesse | 2004-08-31T08:14:29.467020Z
Inlined Tickets_Overlay_SQL's "match"
----------------------------------------------------------------------
Modified: rt/branches/3.2-RELEASE/lib/RT/Tickets_Overlay_SQL.pm
==============================================================================
--- rt/branches/3.2-RELEASE/lib/RT/Tickets_Overlay_SQL.pm (original)
+++ rt/branches/3.2-RELEASE/lib/RT/Tickets_Overlay_SQL.pm Tue Aug 31 04:14:54 2004
@@ -120,14 +120,6 @@
=cut
-sub _match {
- # Case insensitive equality
- my ($y,$x) = @_;
- return 1 if $x =~ /^$y$/i;
- # return 1 if ((lc $x) eq (lc $y)); # Why isnt this equiv?
- return 0;
-}
-
=head2 Robert's Simple SQL Parser
Documentation In Progress
@@ -228,11 +220,11 @@
my $current = 0;
# Highest priority is last
- $current = OP if _match($re_op,$val) ;
- $current = VALUE if _match($re_value,$val);
- $current = KEYWORD if _match($re_keyword,$val) && ($want & KEYWORD);
- $current = AGGREG if _match($re_aggreg,$val);
- $current = PAREN if _match($re_paren,$val);
+ $current = OP if $val =~ /^$re_op$/io;
+ $current = VALUE if $val =~ /^$re_value$/io;
+ $current = KEYWORD if $val =~ /^$re_keyword$/io && ($want & KEYWORD);
+ $current = AGGREG if $val =~ /^$re_aggreg$/io;
+ $current = PAREN if $val =~ /^$re_paren$/io;
unless ($current && $want & $current) {
More information about the Rt-commit
mailing list