GNU bug report logs -
#30494
25.2; (setting-constant nil) error in sql.el
Previous Next
Reported by: sciamano <at> yandex.ru
Date: Fri, 16 Feb 2018 22:01:02 UTC
Severity: normal
Tags: confirmed, easy
Found in version 25.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30494 in the body.
You can then email your comments to 30494 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Fri, 16 Feb 2018 22:01:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
sciamano <at> yandex.ru
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 16 Feb 2018 22:01:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Fri, 09 Mar 2018 01:19:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 30494 <at> debbugs.gnu.org (full text, mbox):
tags 30494 + confirmed easy
quit
sciamano <at> yandex.ru 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.
Added tag(s) confirmed and easy.
Request was from
Noam Postavsky <npostavs <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Fri, 09 Mar 2018 01:19:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Sat, 01 Dec 2018 00:31:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 30494 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Noam Postavsky <npostavs <at> gmail.com> writes:
> tags 30494 + confirmed easy
> quit
>
> sciamano <at> yandex.ru 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.
>
Does the attached patch do the trick ?
[0001-Check-that-feature-exist-in-sql-set-product-feature-.patch (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Thu, 13 Dec 2018 19:41:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 30494 <at> debbugs.gnu.org (full text, mbox):
pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
> Noam Postavsky <npostavs <at> gmail.com> writes:
>
>> tags 30494 + confirmed easy
>> quit
>>
>> sciamano <at> yandex.ru 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.
>>
>
> Does the attached patch do the trick ?
>
Any interrest on this ?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Sun, 23 Dec 2018 19:52:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 30494 <at> debbugs.gnu.org (full text, mbox):
pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
> pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
>
>> Noam Postavsky <npostavs <at> gmail.com> writes:
>>
>>> tags 30494 + confirmed easy
>>> quit
>>>
>>> sciamano <at> yandex.ru 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.
>>>
>>
>> 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 ?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30494
; Package
emacs
.
(Tue, 08 Jan 2019 22:01:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 30494 <at> debbugs.gnu.org (full text, mbox):
pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
> pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
>
>> pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
>>
>>> Noam Postavsky <npostavs <at> gmail.com> writes:
>>>
>>>> tags 30494 + confirmed easy
>>>> quit
>>>>
>>>> sciamano <at> yandex.ru 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.
>>>>
>>>
>>> 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 !
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Sat, 12 Jan 2019 11:36:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
sciamano <at> yandex.ru
:
bug acknowledged by developer.
(Sat, 12 Jan 2019 11:36:02 GMT)
Full text and
rfc822 format available.
Message #27 received at 30494-done <at> debbugs.gnu.org (full text, mbox):
> From: pierre.techoueyres <at> free.fr (Pierre Téchoueyres)
> Date: Tue, 08 Jan 2019 23:00:06 +0100
> Cc: sciamano <at> yandex.ru, 30494 <at> debbugs.gnu.org
>
> >>>> 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.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 09 Feb 2019 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.