From: Matt S Trout Date: Mon, 25 Mar 2019 03:10:34 +0000 (+0000) Subject: let _expand_expr produce the deprecation warning X-Git-Tag: v2.000000~3^2~350 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=54cfcefc432df75736df267d4394922a35963707;p=dbsrgits%2FSQL-Abstract.git let _expand_expr produce the deprecation warning --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index dfedffa..e96c43c 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -648,8 +648,7 @@ sub _expand_expr_hashpair_ident { my $op = join ' ', split '_', (map lc, $vk =~ /^-?(.*)$/)[0]; $self->_assert_pass_injection_guard($op); if ($op =~ s/ [_\s]? \d+ $//x ) { - belch 'Use of [and|or|nest]_N modifiers is deprecated and will be removed in SQLA v2.0. ' - . "You probably wanted ...-and => [ -$op => COND1, -$op => COND2 ... ]"; + return $self->_expand_expr($k, $v); } if (my $x = $self->{expand_op}{$op}) { local our $Cur_Col_Meta = $k;