summaryrefslogtreecommitdiff
path: root/lisp/ob-sql.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ob-sql.el')
-rw-r--r--lisp/ob-sql.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
index ec94c35..06477d3 100644
--- a/lisp/ob-sql.el
+++ b/lisp/ob-sql.el
@@ -1,6 +1,6 @@
;;; ob-sql.el --- Babel Functions for SQL -*- lexical-binding: t; -*-
-;; Copyright (C) 2009-2016 Free Software Foundation, Inc.
+;; Copyright (C) 2009-2017 Free Software Foundation, Inc.
;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
@@ -117,14 +117,14 @@ SQL Server on Windows and Linux platform."
" "))
(defun org-babel-sql-convert-standard-filename (file)
- "Convert the file name to OS standard.
+ "Convert FILE to OS standard file name.
If in Cygwin environment, uses Cygwin specific function to
-convert the file name. Otherwise, uses Emacs' standard conversion
-function."
- (format "\"%s\""
- (if (fboundp 'cygwin-convert-file-name-to-windows)
- (cygwin-convert-file-name-to-windows file)
- (convert-standard-filename file))))
+convert the file name. In a Windows-NT environment, do nothing.
+Otherwise, use Emacs' standard conversion function."
+ (cond ((fboundp 'cygwin-convert-file-name-to-windows)
+ (format "%S" (cygwin-convert-file-name-to-windows file)))
+ ((string= "windows-nt" system-type) file)
+ (t (format "%S" (convert-standard-filename file)))))
(defun org-babel-execute:sql (body params)
"Execute a block of Sql code with Babel.