Subject: bug#30494: closed (Re: bug#30494: 25.2; (setting-constant nil) error in sql.el)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 12 Jan 2019 11:36:02 +0000

Your bug report

#30494: 25.2; (setting-constant nil) error in sql.el

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
30494: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30494
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#30494: 25.2; (setting-constant nil) error in sql.el
From: Eli Zaretskii <[email-masked]>
To: [email-masked] (Pierre Téchoueyres)
Cc: [email-masked], [email-masked], [email-masked]
Date: Sat, 12 Jan 2019 13:35:14 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: [email-masked] (Pierre Téchoueyres)
> Date: Tue, 08 Jan 2019 23:00:06 +0100
> Cc: [email-masked], [email-masked]
> 
> >>>> Looks like it's probably just a missing nil check in
> >>>> sql-set-product-feature.
> >>>>
> >>>
> >>> Does the attached patch do the trick ?
> >>>
> >> Any interrest on this ?
> >
> > Ping ! Or if this isn't desired, maybe it's time to close the bug ?
> 
> Ping ! Ping !

Sorry for lack of replies so far.

I've now pushed these changes to the master branch, and I'm closing
the bug report.  In the future, please be sure to state in the log
message the function(s) where you make changes.

Subject: 25.2; (setting-constant nil) error in sql.el
From: [email-masked]
To: [email-masked]
Date: Fri, 16 Feb 2018 22:52:28 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

i'm trying to add SQL product by following steps from the introduction
section in the sql.el, but for the settings
:sqli-program
:sqli-login
:sqli-options
it fails with "attemt to set a constant symbol: nil"

In 'emacs -Q' executing it step-by-step:

(require 'sql)

(sql-add-product 'xyz "XyzDB"
                 '(:free-software t))

(defcustom my-sql-xyz-program "ixyz"
  "Command to start ixyz by XyzDB."
  :type 'file
  :group 'SQL)

;; NEXT STEP FAILS WITH:
;; Debugger entered--Lisp error: (setting-constant nil)
;;  sql-set-product-feature(xyz :sqli-program my-sql-xyz-program)
;;  eval((sql-set-product-feature (quote xyz) :sqli-program (quote my-sql-xyz-program)) nil)
(sql-set-product-feature 'xyz
                         :sqli-program 'my-sql-xyz-program)

;; BUT THIS TWO ARE OK
(sql-set-product-feature 'xyz
			 :prompt-regexp "^xyzdb> ")
(sql-set-product-feature 'xyz
			 :prompt-length 7)

-- 
Denis