From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13715: 24.2; Invalid function when calling sql-connect Date: Fri, 15 Feb 2013 12:09:57 -0500 Message-ID: <20766.27621.472832.970606@gnu.org> References: <87wqub6j9s.fsf@gondwana.office.nugg.ad> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360948234 20567 80.91.229.3 (15 Feb 2013 17:10:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2013 17:10:34 +0000 (UTC) Cc: Roman Scherer To: 13715@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 15 18:10:56 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U6OoJ-0002wh-OH for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 18:10:55 +0100 Original-Received: from localhost ([::1]:50693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Onz-0004Mb-HQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Feb 2013 12:10:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Onr-0004G8-QZ for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:10:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U6Onl-0002Tr-KU for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:10:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52389) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U6Onl-0002TF-HI for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:10:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U6OoQ-0004qI-7q for bug-gnu-emacs@gnu.org; Fri, 15 Feb 2013 12:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Feb 2013 17:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13715 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13715-submit@debbugs.gnu.org id=B13715.136094824618582 (code B ref 13715); Fri, 15 Feb 2013 17:11:02 +0000 Original-Received: (at 13715) by debbugs.gnu.org; 15 Feb 2013 17:10:46 +0000 Original-Received: from localhost ([127.0.0.1]:57851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Oo8-0004pe-Sg for submit@debbugs.gnu.org; Fri, 15 Feb 2013 12:10:45 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:55163) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U6Oo6-0004pX-8b for 13715@debbugs.gnu.org; Fri, 15 Feb 2013 12:10:43 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1U6OnN-0003DL-HQ; Fri, 15 Feb 2013 12:09:57 -0500 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71322 Archived-At: Please keep debbugs cc'd. Resending your comments so they are more visible. Date: Fri, 15 Feb 2013 10:11:04 +0100 From: Roman Scherer thanks for your help. If I remember correctly it used to work with symbols. I also tried this with strings like this: (require 'sql) (setq sql-connection-alist '(("db1" (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db1") (sql-port 3306)) ("db2" (sql-product 'mysql) (sql-server "localhost") (sql-user "tiger") (sql-password "scotch") (sql-database "db2")))) This seems to work. However only after the second time I call sql-connect. The first time I get the error "eval: Attempt to set a constant symbol: nil". Calling it the second time works. I think it breaks in sql-connect near this line: ;; Start the SQLi session with revised list of login parameters (eval `(let ((,param-var ',rem-params)) (sql-product-interactive sql-product new-name)))) Roman