From: Matt S Trout Date: Mon, 30 Sep 2019 01:12:12 +0000 (+0000) Subject: default to no-op expansion for node types X-Git-Tag: v2.000000~3^2~91 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3546c7188c1bef4631273e3ee80e47c62ef51e1f;p=dbsrgits%2FSQL-Abstract.git default to no-op expansion for node types --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index a758e5d..523e24b 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -144,9 +144,6 @@ our %Defaults = ( op => '_expand_op', func => '_expand_func', values => '_expand_values', - bind => '_expand_noop', - literal => '_expand_noop', - keyword => '_expand_noop', }, expand_op => { 'between' => '_expand_between', @@ -1016,6 +1013,10 @@ sub _expand_hashpair_op { return $self->$exp($op, $v); } + if ($self->{render}{$op}) { + return { "-${op}" => $v }; + } + # Ops prefixed with -not_ get converted if (my ($rest) = $op =~/^not_(.*)$/) {