[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] patch for ob-sql and postgresql for supporting :colnames
From: |
Joost Helberg |
Subject: |
[O] patch for ob-sql and postgresql for supporting :colnames |
Date: |
Wed, 08 Jan 2014 13:58:46 +0100 |
User-agent: |
mu4e 0.9.9.6pre2; emacs 24.3.1 |
hi,
the :colnames header argument is not honoured for postgresql. Hence the
following patch for ob-sql.el. The command-line tool psql supports the
option -t for not displaying column-names. The default behavious is not
changed with this patch.
126,127c126
< "psql --set=\"ON_ERROR_STOP=1\" %s -A -P
footer=off -F \"\t\" -f %s -o %s %s"
< (if colnames-p "" "-t")
---
> "psql --set=\"ON_ERROR_STOP=1\" -A -P
> footer=off -F \"\t\" -f %s -o %s %s"
Can anyone suggest to me why this should not be in ob-sql.el? It is
already implemented for the mysql engine (via -N).
regards,
Joost
--
Snow B.V. http://snow.nl
- [O] patch for ob-sql and postgresql for supporting :colnames,
Joost Helberg <=