From 71875ec267584c542c720c3ce57e46cdb99140d3 Mon Sep 17 00:00:00 2001 From: flintforge Date: Thu, 12 Sep 2024 07:18:22 +0200 Subject: [PATCH] remove sqlite patch remark --- ob-sql-session.org | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/ob-sql-session.org b/ob-sql-session.org index 3574de0..6e33311 100644 --- a/ob-sql-session.org +++ b/ob-sql-session.org @@ -248,7 +248,7 @@ Returning error : hello|1 : world|2 -** In order to run sqlite in memory +** In order to run sqlite in memory (for older versions of emacs) =sql-database= can be /nil/ and no option given to =sql-comint-sqlite= #+begin_src elisp @@ -264,30 +264,6 @@ Returning error (sql-comint product params buf-name))) #+end_src - -#+begin_src patch -modified lisp/progmodes/sql.el -@@ -5061,14 +5061,15 @@ sql-sqlite - (interactive "P") - (sql-product-interactive 'sqlite buffer)) - --(defun sql-comint-sqlite (product options &optional buf-name) -+(defun sql-comint-sqlite (product &optional options buf-name) - "Create comint buffer and connect to SQLite." - ;; Put all parameters to the program (if defined) in a list and call - ;; make-comint. - (let ((params - (append options -- (if (not (string= "" sql-database)) -- `(,(expand-file-name sql-database)))))) -+ (if (and sql-database -+ (not (string= "" sql-database))) -+ `(,(expand-file-name sql-database)))))) - (sql-comint product params buf-name))) - -#+end_src - - Test it: #+begin_example ,#+begin_src sql-session :engine sqlite