GNU bug report logs - #30494
25.2; (setting-constant nil) error in sql.el

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: sciamano@HIDDEN; Keywords: confirmed easy; dated Fri, 16 Feb 2018 22:01:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) confirmed and easy. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 30494 <at> debbugs.gnu.org:


Received: (at 30494) by debbugs.gnu.org; 9 Mar 2018 01:18:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 08 20:18:58 2018
Received: from localhost ([127.0.0.1]:51633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1eu6gU-0006ax-70
	for submit <at> debbugs.gnu.org; Thu, 08 Mar 2018 20:18:58 -0500
Received: from mail-it0-f42.google.com ([209.85.214.42]:55426)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1eu6gS-0006aa-8L; Thu, 08 Mar 2018 20:18:56 -0500
Received: by mail-it0-f42.google.com with SMTP id n136so873605itg.5;
 Thu, 08 Mar 2018 17:18:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=nKtgAteWKzOnL0HvenA0czObBGfn2gWoNJH5neJ9OmU=;
 b=Zx6vPzuWeAfijvTVzmRJu3BApnMvcYI/3+Ymju7yWLZobEdHepUhNy2QvUqvpPCZny
 uYcjVlm97K2wYXXUjvxZsNGMg5GO9uaH+ZmfFTpfYlndMadqXbXlYjUH+J25ZL5HEdmz
 iE5xessK8iRAgm62IoiYDGGMSB+pu85FL6t3S3ONDnviMdTIByNqlCsCFsGfN3FrfvRC
 2dQGK3W+JLoBDJe912m8oXFOOOV+J/kyMyOHNdDk0YZBZcQJS8Y1t0VBxf3BArj+pFCt
 FExeL3QiMpl+DcGpo12mw3PD0hHH2dR+UeFPETq1uR2Q/6cBWWbwyaAzsO2+c7+/OknQ
 mgTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=nKtgAteWKzOnL0HvenA0czObBGfn2gWoNJH5neJ9OmU=;
 b=DoRzzH8sBnHYSqX6BT5rv5BkFLFezA7cF1ZhxnU+MJQ1CprnYmVKxh2RXxxpQOAFV0
 gIEkB5ZyuozIavXraeUrIz8ehmXqRgJnvWoonW7AbKYJigFhpLfB5odmGOA/FC+fWTWI
 cqaL/X1EKFjbNyd6pWQYThWeWKRthzIEYSKXOpAU79MJCafo+x/J8C4KxxWBF5plNJX7
 INF84rqmgVRLRBX6kUPuI9E6B0nXCnENOtLxX9NvcQwmXPQ9eFfYqvoYPnVSH/IG32rT
 0t4TyuT0oAwI9g5DuoHVoTjOoeNUC5Kshl71D3H6//CTrw8ufFz+yPjaLYhZF3N59NVY
 Wetw==
X-Gm-Message-State: AElRT7EUaHhNgN5TspOTM6gRsCuzJfZMDJASXwM2j5A1e4zWiOa/cn0y
 TR7moLqAzfm64GQLQJiW/jbe4A==
X-Google-Smtp-Source: AG47ELtBZHwBN6fqvsiQ3qfkFdIo2VG+9Nuz8JBwVwlHo9z0fg3/fhaLEEb5W78LWblorfrFbd6Xkg==
X-Received: by 10.36.22.200 with SMTP id a191mr1230468ita.102.1520558330807;
 Thu, 08 Mar 2018 17:18:50 -0800 (PST)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 199-v6sm691208itl.1.2018.03.08.17.18.49
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 08 Mar 2018 17:18:50 -0800 (PST)
From: Noam Postavsky <npostavs@HIDDEN>
To: sciamano@HIDDEN
Subject: Re: bug#30494: 25.2; (setting-constant nil) error in sql.el
References: <20180216214220.GA29493@localhost>
Date: Thu, 08 Mar 2018 20:18:48 -0500
In-Reply-To: <20180216214220.GA29493@localhost> (sciamano's message of "Fri,
 16 Feb 2018 22:52:28 +0100")
Message-ID: <87d10e11xj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 30494
Cc: 30494 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

tags 30494 + confirmed easy
quit

sciamano@HIDDEN 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.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#30494; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Feb 2018 22:01:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 16 17:01:01 2018
Received: from localhost ([127.0.0.1]:47306 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1emo3x-0007SR-JW
	for submit <at> debbugs.gnu.org; Fri, 16 Feb 2018 17:01:01 -0500
Received: from eggs.gnu.org ([208.118.235.92]:49122)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sciamano@HIDDEN>) id 1emnw4-0007FX-El
 for submit <at> debbugs.gnu.org; Fri, 16 Feb 2018 16:52:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sciamano@HIDDEN>) id 1emnvy-0005Nb-Gv
 for submit <at> debbugs.gnu.org; Fri, 16 Feb 2018 16:52:47 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:35203)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <sciamano@HIDDEN>) id 1emnvy-0005NT-Cb
 for submit <at> debbugs.gnu.org; Fri, 16 Feb 2018 16:52:46 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40091)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <sciamano@HIDDEN>) id 1emnvx-0005MY-Cs
 for bug-gnu-emacs@HIDDEN; Fri, 16 Feb 2018 16:52:46 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <sciamano@HIDDEN>) id 1emnvw-0005Mu-MU
 for bug-gnu-emacs@HIDDEN; Fri, 16 Feb 2018 16:52:45 -0500
Received: from forward104o.mail.yandex.net ([2a02:6b8:0:1a2d::607]:40887)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <sciamano@HIDDEN>) id 1emnvw-0005M8-84
 for bug-gnu-emacs@HIDDEN; Fri, 16 Feb 2018 16:52:44 -0500
Received: from mxback9j.mail.yandex.net (mxback9j.mail.yandex.net
 [IPv6:2a02:6b8:0:1619::112])
 by forward104o.mail.yandex.net (Yandex) with ESMTP id 9A5B370122D
 for <bug-gnu-emacs@HIDDEN>; Sat, 17 Feb 2018 00:52:30 +0300 (MSK)
Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net
 [2a02:6b8:0:1472:2741:0:8b6:6])
 by mxback9j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id beyx7A2XSc-qUXa8wha; 
 Sat, 17 Feb 2018 00:52:30 +0300
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1518817950; bh=GW5bhblz4r80Etvis+q2VrpW6Ey0VL6NoSnvNwUKpO0=;
 h=Date:From:To:Subject:Message-ID;
 b=VoXkDP+JPbaOMGIjsJ/o5od8kGp7HzSMtK3EUiZ61DB8E+C3BBhDDQ1BOfzcghtBn
 BvCy8PmMpg47ght9kTYvVqaXJ07M2OZ+3ogS5Us8ndyPuSyLRVf3BX3RSjmbuHxlCG
 PaUk+oSpxhBSweKljftm/8XFb2iGZH/opp+fQ8E4=
Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id
 YN6uVG50GT-qTvSWtoa; Sat, 17 Feb 2018 00:52:29 +0300
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client certificate not present)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1518817949; bh=GW5bhblz4r80Etvis+q2VrpW6Ey0VL6NoSnvNwUKpO0=;
 h=Date:From:To:Subject:Message-ID;
 b=Qq5LGXioFGRv+kqicUF6A8doweKleDQFwFZbn9SG8zRJWOLwtqeodi3ktt+SXCyRh
 z9/bIxv7+sLsaECL0Bp4sDyUf3F2rzyVx0QBHai8u92aaBaChZRDoZlV5wXEhsQi26
 j6AYiUaQM2Y0RpDq9Cp3LnZ6OY+FPPNDujLP8FSQ=
Authentication-Results: smtp1p.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Fri, 16 Feb 2018 22:52:28 +0100
From: sciamano@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 25.2; (setting-constant nil) error in sql.el
Message-ID: <20180216214220.GA29493@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.9.3 (2018-01-21)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 16 Feb 2018 17:01:01 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

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





Acknowledgement sent to sciamano@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#30494; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 9 Mar 2018 01:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.