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

From: Noam Postavsky <[email-masked]>
Date: Thu, 08 Mar 2018 20:18:48 -0500

tags 30494 + confirmed easy
quit

[email-masked] writes:

> 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)

Looks like it's probably just a missing nil check in
sql-set-product-feature.