emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Babel] Patch for adding Microsoft's osql command-line utility
Date: Sun, 05 Dec 2010 07:24:33 -0700	[thread overview]
Message-ID: <87bp501en2.fsf@gmail.com> (raw)
In-Reply-To: <8039qe28bi.fsf@missioncriticalit.com> ("Sébastien Vauban"'s message of "Fri, 03 Dec 2010 16:18:57 +0100")

Hi Seb,

Thanks for the patch, this has just been applied.

-- Eric

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> Hi Eric,
>
> Here a patch for osql from Microsoft.
>
> diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
> index 19c271d..9e6f06a 100644
> --- a/lisp/ob-sql.el
> +++ b/lisp/ob-sql.el
> @@ -66,6 +66,10 @@ This function is called by `org-babel-execute-src-block'."
>           (out-file (or (cdr (assoc :out-file params))
>                         (org-babel-temp-file "sql-out-")))
>           (command (case (intern engine)
> +                    ('msosql (format "osql %s -s \"\t\" -i %s -o %s"
> +                                     (or cmdline "")
> +                                     (org-babel-process-file-name in-file)
> +                                     (org-babel-process-file-name out-file)))
>                      ('mysql (format "mysql %s -e \"source %s\" > %s"
>                                      (or cmdline "")
>  				    (org-babel-process-file-name in-file)
>
> Best regards,
>   Seb

      reply	other threads:[~2010-12-05 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-03 15:18 [Babel] Patch for adding Microsoft's osql command-line utility Sébastien Vauban
2010-12-05 14:24 ` Eric Schulte [this message]

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=87bp501en2.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).