all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 13715@debbugs.gnu.org
Cc: Roman Scherer <roman.scherer@nugg.ad>
Subject: bug#13715: 24.2; Invalid function when calling sql-connect
Date: Fri, 15 Feb 2013 12:09:57 -0500	[thread overview]
Message-ID: <20766.27621.472832.970606@gnu.org> (raw)
In-Reply-To: <CAOkyP-ZTuVAHRpRVAAV2WiH5N0n2MRAaWRo6PfzbJKw_pGPyNg@mail.gmail.com>


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 <roman.scherer@nugg.ad>

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





  parent reply	other threads:[~2013-02-15 17:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 14:51 bug#13715: 24.2; Invalid function when calling sql-connect roman.scherer
2013-02-14 23:50 ` Glenn Morris
2013-02-15  1:50   ` Glenn Morris
2013-02-15  1:54     ` Glenn Morris
     [not found]       ` <CAOkyP-ZTuVAHRpRVAAV2WiH5N0n2MRAaWRo6PfzbJKw_pGPyNg@mail.gmail.com>
2013-02-15 17:09         ` Glenn Morris [this message]
2013-03-11  1:54     ` Michael Mauger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20766.27621.472832.970606@gnu.org \
    --to=rgm@gnu.org \
    --cc=13715@debbugs.gnu.org \
    --cc=roman.scherer@nugg.ad \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.