From: Matt S Trout Date: Tue, 11 Sep 2018 22:10:45 +0000 (+0000) Subject: disable IN and BETWEEN implementations X-Git-Tag: v2.000000~3^2~487 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=85bf32ac09f18a6600f2444c9153f1c3af8aa359;p=dbsrgits%2FSQL-Abstract.git disable IN and BETWEEN implementations --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 9725b00..dfdfb24 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -37,8 +37,8 @@ our $AUTOLOAD; # special operators (-in, -between). May be extended/overridden by user. # See section WHERE: BUILTIN SPECIAL OPERATORS below for implementation my @BUILTIN_SPECIAL_OPS = ( - {regex => qr/^ (?: not \s )? between $/ix, handler => '_where_field_BETWEEN'}, - {regex => qr/^ (?: not \s )? in $/ix, handler => '_where_field_IN'}, + {regex => qr/^ (?: not \s )? between $/ix, handler => sub { die "NOPE" }}, + {regex => qr/^ (?: not \s )? in $/ix, handler => sub { die "NOPE" }}, {regex => qr/^ ident $/ix, handler => '_where_op_IDENT'}, {regex => qr/^ value $/ix, handler => '_where_op_VALUE'}, {regex => qr/^ is (?: \s+ not )? $/ix, handler => '_where_field_IS'},