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-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7451b69401d5f8ec69027f4c12bd3d8fcb57cbb0;p=scpubgit%2FQ-Branch.git default to no-op expansion for node types --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 720f378..a88a149 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_(.*)$/) {