ejc-sql icon indicating copy to clipboard operation
ejc-sql copied to clipboard

Error when trying to connect

Open thermopyle opened this issue 3 years ago • 0 comments

I get the following error when trying to connect to a Redshift DB;

condition-case: Wrong type argument: stringp, ("ELisp" (lexical-binding (:propertize "/l" help-echo "Using lexical-binding mode") (:propertize "/d" help-echo "Using old dynamic scoping mode
mouse-1: Enable lexical-binding mode" face warning mouse-face mode-line-highlight local-map (keymap (mode-line keymap (mouse-1 . elisp-enable-lexical-binding))))))

This used to work in ejc-sql but since a while back it doesn't. I have the same connection configured in DBeaver which works without any problems.

My config looks like this;

(use-package ejc-sql
  :ensure t
  :hook
  (ejc-sql-minor-mode . company-mode)
  (ejc-sql-connected . (lambda ()
			 (ejc-set-fetch-size nil)
			 (ejc-set-max-rows nil)
			 (ejc-set-column-width-limit nil)))
  :config
  (use-package ejc-company)
  (push 'ejc-company-backend company-backends)
  (setq ejc-complete-on-dot t)
  (ejc-create-connection
   "Redshift"
   :classpath "[/Users/mikael/.m2/repository/postgresql/postgresql/9.3-1102.jdbc41/postgresql-9.3-1102.jdbc41.jar]"
   :password "**************"
   :user "*************"
   :port "5439"
   :host "********************************************"
   :dbname "db"
   :dbtype "postgresql"))

I use Emacs 28.0.50 on MacOS Monterey installed using homebrew.

thermopyle avatar Feb 17 '22 08:02 thermopyle