[Bast-commits] r8939 -
SQL-Abstract/1.x/branches/arbitrary_op_nesting/lib/SQL
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Mon Mar 8 21:12:07 GMT 2010
Author: ribasushi
Date: 2010-03-08 21:12:07 +0000 (Mon, 08 Mar 2010)
New Revision: 8939
Modified:
SQL-Abstract/1.x/branches/arbitrary_op_nesting/lib/SQL/Abstract.pm
Log:
Simplify a bit
Modified: SQL-Abstract/1.x/branches/arbitrary_op_nesting/lib/SQL/Abstract.pm
===================================================================
--- SQL-Abstract/1.x/branches/arbitrary_op_nesting/lib/SQL/Abstract.pm 2010-03-08 20:28:22 UTC (rev 8938)
+++ SQL-Abstract/1.x/branches/arbitrary_op_nesting/lib/SQL/Abstract.pm 2010-03-08 21:12:07 UTC (rev 8939)
@@ -565,22 +565,6 @@
$self->_SWITCH_refkind($v, {
- ARRAYREF => sub {
- return $self->_where_ARRAYREF($v, '');
- },
-
- HASHREF => sub {
- return $self->_where_HASHREF($v);
- },
-
- SCALARREF => sub { # literal SQL
- return ($$v);
- },
-
- ARRAYREFREF => sub { # literal SQL
- return @{${$v}};
- },
-
SCALAR => sub { # permissively interpreted as SQL
belch "literal SQL should be -nest => \\'scalar' "
. "instead of -nest => 'scalar' ";
@@ -590,6 +574,11 @@
UNDEF => sub {
puke "-$op => undef not supported";
},
+
+ FALLBACK => sub {
+ $self->_recurse_where ($v);
+ },
+
});
}
More information about the Bast-commits
mailing list