[Bast-commits] r9740 - SQL-Abstract/1.x/trunk/lib/SQL/Abstract
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Mon Sep 27 06:54:06 GMT 2010
Author: ribasushi
Date: 2010-09-27 07:54:06 +0100 (Mon, 27 Sep 2010)
New Revision: 9740
Modified:
SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Test.pm
SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm
Log:
These 'optimizations' are silly
Modified: SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Test.pm
===================================================================
--- SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Test.pm 2010-09-23 10:51:29 UTC (rev 9739)
+++ SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Test.pm 2010-09-27 06:54:06 UTC (rev 9740)
@@ -27,7 +27,7 @@
'ORDER \s+ BY',
);
my $unrollable_ops_re = join ' | ', @unrollable_ops;
-$unrollable_ops_re = qr/$unrollable_ops_re/xio;
+$unrollable_ops_re = qr/$unrollable_ops_re/xi;
sub is_same_sql_bind {
my ($sql1, $bind_ref1, $sql2, $bind_ref2, $msg) = @_;
Modified: SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm
===================================================================
--- SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm 2010-09-23 10:51:29 UTC (rev 9739)
+++ SQL-Abstract/1.x/trunk/lib/SQL/Abstract/Tree.pm 2010-09-27 06:54:06 UTC (rev 9740)
@@ -83,7 +83,7 @@
);
my $exp_start_re = join ("\n\t|\n", @expression_start_keywords );
-$exp_start_re = qr/ $op_look_behind (?i: $exp_start_re ) $op_look_ahead /xo;
+$exp_start_re = qr/ $op_look_behind (?i: $exp_start_re ) $op_look_ahead /x;
# These are binary operator keywords always a single LHS and RHS
# * AND/OR are handled separately as they are N-ary
@@ -100,14 +100,14 @@
{ "(?: (?<= [\\w\\s] | $quote_right ) | \\A )" . quotemeta ($_) . "(?: (?= [\\w\\s] | $quote_left ) | \\z )" }
@math_op_keywords
);
-$math_re = qr/$math_re/xo;
+$math_re = qr/$math_re/x;
sub _math_op_re { $math_re }
my $binary_op_re = '(?: NOT \s+)? (?:' . join ('|', qw/IN BETWEEN R?LIKE/) . ')';
$binary_op_re = "(?: $op_look_behind (?i: $binary_op_re ) $op_look_ahead ) \n\t|\n $math_re";
-$binary_op_re = qr/$binary_op_re/xo;
+$binary_op_re = qr/$binary_op_re/x;
sub _binary_op_re { $binary_op_re }
More information about the Bast-commits
mailing list