From 07f744be3ab70f64c0952d079e2f750387432f53 Mon Sep 17 00:00:00 2001 From: Nico Boisselier Date: Thu, 27 Oct 2016 09:45:40 +0100 Subject: [PATCH] use DBQ instead of DBQ_PARAMS --- bin/dbq | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/dbq b/bin/dbq index ec3b38f1..6e24ff1e 100755 --- a/bin/dbq +++ b/bin/dbq @@ -35,6 +35,15 @@ my %PARAM = ( $PARAM{'format'} = 'csv' unless -t STDOUT; %PARAM = map {$_=>$PARAM{$_}} grep {$PARAM{$_} ne ''} keys %PARAM; + +# DBQ +if ($ENV{$UC_NAME}) { + for (split(' ',$ENV{$UC_NAME})) { + /^(\w+)=(.*?)$/ and $PARAM{$1} = $2; + } +} + +# DBQ_PARAMS if ($ENV{$UC_NAME.'_PARAMS'}) { for (split(' ',$ENV{$UC_NAME.'_PARAMS'})) { /^(\w+)=(.*?)$/ and $PARAM{$1} = $2; -- 2.47.3