Skip to content

Commit

Permalink
remove sqlite patch remark
Browse files Browse the repository at this point in the history
  • Loading branch information
flintforge committed Sep 12, 2024
1 parent 66f6202 commit 71875ec
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions ob-sql-session.org
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 71875ec

Please sign in to comment.