* [Babel] Patch for adding Microsoft's osql command-line utility
@ 2010-12-03 15:18 Sébastien Vauban
2010-12-05 14:24 ` Eric Schulte
0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Vauban @ 2010-12-03 15:18 UTC (permalink / raw
To: emacs-orgmode-mXXj517/zsQ
[-- Attachment #1: Type: text/plain, Size: 49 bytes --]
Hi Eric,
Here a patch for osql from Microsoft.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-adding-microsft-osql-utility.patch --]
[-- Type: text/x-patch, Size: 799 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 50 bytes --]
Best regards,
Seb
--
Sébastien Vauban
[-- Attachment #4: Type: text/plain, Size: 222 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Babel] Patch for adding Microsoft's osql command-line utility
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
0 siblings, 0 replies; 2+ messages in thread
From: Eric Schulte @ 2010-12-05 14:24 UTC (permalink / raw
To: Sébastien Vauban; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-05 14:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.