emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Babel sql code block issue and patch proposal
@ 2011-03-03 11:23 Alain Clément
  2011-03-03 13:11 ` Eric Schulte
  0 siblings, 1 reply; 7+ messages in thread
From: Alain Clément @ 2011-03-03 11:23 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 697 bytes --]

Hi everyone,

The =org-babel-temp-file= string seems to be escaped with backslashes on
some platforms (like MacOSX), which is not very appreciated by the =mysql
-e= command. I suggest the following patch for =ob-sql.el= (Org-mode Version
7.4 (release_7.4.590.g85d4d)):

74c74
<                     ('mysql (format "mysql %s < %s > %s"
---
>                     ('mysql (format "mysql %s -e \"source %s\" > %s"

Best regards,
-- Alain

-- 



Alain Clément
Dr ès sc. mathématiques

Université de Lausanne
Quartier UNIL-Centre
Bâtiment Unicentre
Bureau 339
CH-1015 Lausanne

T. +41 21 692 20 36 (direct)
T. +41 21 692 20 60 (secrétariat)

alain.clement@unil.ch

[-- Attachment #1.2: Type: text/html, Size: 1132 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

-- 
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2011-03-07 16:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-03 11:23 Babel sql code block issue and patch proposal Alain Clément
2011-03-03 13:11 ` Eric Schulte
2011-03-03 19:34   ` Alain Clément
2011-03-03 19:51     ` Eric Schulte
2011-03-07  9:15       ` Alain Clément
2011-03-07 15:33         ` Eric Schulte
2011-03-07 16:24           ` Alain Clément

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).