From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gary Oberbrunner Subject: [PATCH] ob-sql.el: fix typo preventing mysql table headers from being parsed Date: Tue, 9 Feb 2016 09:35:33 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3869ada7e65052b573a35 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT9OD-0007pL-O5 for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 09:35:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aT9OA-0006lS-BP for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 09:35:37 -0500 Received: from mail-lb0-x229.google.com ([2a00:1450:4010:c04::229]:34323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aT9OA-0006lI-2B for emacs-orgmode@gnu.org; Tue, 09 Feb 2016 09:35:34 -0500 Received: by mail-lb0-x229.google.com with SMTP id cw1so101309408lbb.1 for ; Tue, 09 Feb 2016 06:35:33 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Orgmode Mailing List --001a11c3869ada7e65052b573a35 Content-Type: text/plain; charset=UTF-8 * ob-sql.el (org-babel-execute:sql): fix typo (introduced in 8c2e232) which prevented correct parsing of mysql table headers. --- lisp/ob-sql.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el index 724f7c6..6488afe 100644 --- a/lisp/ob-sql.el +++ b/lisp/ob-sql.el @@ -181,7 +181,7 @@ SET COLSEP '|' (progn (insert-file-contents-literally out-file) (buffer-string))) (with-temp-buffer (cond - ((memq (intern engine) '(dbi myslq postgresql)) + ((memq (intern engine) '(dbi mysql postgresql)) ;; Add header row delimiter after column-names header in first line (cond (colnames-p -- 2.7.0 -- Gary --001a11c3869ada7e65052b573a35 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* ob-sql.el (org-babel-execute:sql): fix typo (introd= uced in 8c2e232)
which prevented correct parsing of mysql tab= le headers.
---
=C2=A0lisp/ob-sql.el | 2 +-
= =C2=A01 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ob-sql.el b/lisp/ob-sql.el
index 724f7c6..648= 8afe 100644
--- a/lisp/ob-sql.el
+++ b/lisp/ob-sql.el
@@ -181,7 +181,7 @@ SET COLSEP '|'
=C2=A0 (progn (insert-file-contents-li= terally out-file) (buffer-string)))
=C2=A0 =C2=A0 =C2=A0 =C2=A0(w= ith-temp-buffer
=C2=A0= (cond
- ((memq (intern engine) '(dbi myslq postgresql))
+ ((memq (intern engine) '(dbi = mysql postgresql))
=C2=A0 =C2=A0;; Add header row delimiter after column-names header in = first line
=C2=A0 =C2=A0(cond
=C2=A0= =C2=A0 (colnames-p
--=C2=A0
2.7.0

--
Gary
--001a11c3869ada7e65052b573a35--