emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* patch for ob-sql and postgresql for supporting :colnames
@ 2014-01-08 12:58 Joost Helberg
  2014-01-08 16:58 ` Eric Schulte
  0 siblings, 1 reply; 5+ messages in thread
From: Joost Helberg @ 2014-01-08 12:58 UTC (permalink / raw)
  To: Org-Mode

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-02-04 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 12:58 patch for ob-sql and postgresql for supporting :colnames Joost Helberg
2014-01-08 16:58 ` Eric Schulte
2014-02-03 13:11   ` Joost Helberg
2014-02-03 14:54     ` Bastien
2014-02-04 10:04       ` Joost Helberg

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).