From: Nicolas Boisselier Date: Mon, 7 Mar 2016 10:56:00 +0000 (+0100) Subject: header by default X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b2bf457bf4b4c5962ea7ba11e746605401bbcaa6;p=nb.git header by default --- diff --git a/bin/dbq b/bin/dbq index 34f810f1..ecf23f0b 100755 --- a/bin/dbq +++ b/bin/dbq @@ -142,7 +142,10 @@ while (my ($k,$v) = each %ACTION) { $keys{$k} = $v; } -$keys{header} = '0' if !defined($keys{header}) and $keys{action} ne 'rows'; +# NB 07.03.16 $keys{header} = '0' if !defined($keys{header}) and ( +# NB 07.03.16 $keys{action} ne 'rows' +# NB 07.03.16 or $keys{format} ne 'nc' +# NB 07.03.16 ); $keys{table} = $1 if $keys{db} and $keys{db} =~ s/:(.*)$//; #################################################################################