ejc-sql
ejc-sql copied to clipboard
Upon killing buffer with connection, reopenning buffer raises error "Selecting deleted buffer"
Here is a minimal working example
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
;;* Straight config
(setq straight-use-package-by-default t)
(setq straight-host-usernames '((github . "cheerio-pixel")))
(straight-use-package 'use-package)
(eval-when-compile (require 'use-package))
;; ---------------------------------------------------------------------------------------------
(use-package ejc-sql
:config
(setq ejc-connections
'(("lab3"
(:classname . "com.mysql.jdbc.Driver")
(:classpath .
["/home/cheerio-pixel/.m2/repository/mysql/mysql-connector-java/5.1.44/mysql-connector-java-5.1.44.jar"])
(:password . "testtest")
(:user . "MySQL test")
(:port . "3306")
(:host . "localhost")
(:dbname . "lab3")
(:dbtype . "mysql"))))
)
Then open a sql connection on a file and kill it. if you try to reopen that file the error "Selecting deleted buffer" is raised