From: Joost Helberg <joost@snow.nl>
To: Org-Mode <emacs-orgmode@gnu.org>
Subject: patch for ob-sql and postgresql for supporting :colnames
Date: Wed, 08 Jan 2014 13:58:46 +0100 [thread overview]
Message-ID: <87bnzm4ol5.fsf@snow.nl> (raw)
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
next reply other threads:[~2014-01-08 12:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-08 12:58 Joost Helberg [this message]
2014-01-08 16:58 ` patch for ob-sql and postgresql for supporting :colnames Eric Schulte
2014-02-03 13:11 ` Joost Helberg
2014-02-03 14:54 ` Bastien
2014-02-04 10:04 ` Joost Helberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnzm4ol5.fsf@snow.nl \
--to=joost@snow.nl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).