]> git.nbdom.net Git - nb.git/commitdiff
header by default
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 7 Mar 2016 10:56:00 +0000 (11:56 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 7 Mar 2016 10:56:00 +0000 (11:56 +0100)
bin/dbq

diff --git a/bin/dbq b/bin/dbq
index 34f810f1e1088d1c9edb5c9293f70668ee066912..ecf23f0ba9f024b4f00bea97c77f1575942a87ff 100755 (executable)
--- 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/:(.*)$//;
 
 #################################################################################