all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rolf@linux-qg7d.i-did-not-set--mail-host-address--so-tickle-me
To: npostavs@users.sourceforge.net
Cc: 25628@debbugs.gnu.org
Subject: bug#25628: 26.0.50; [PATCH] sql-mode w/ sqlite: In-memory database
Date: Thu, 02 Mar 2017 17:56:01 +0100	[thread overview]
Message-ID: <87d1dzsjmm.fsf@pointsman.de> (raw)
In-Reply-To: <87fuivby3m.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Thu, 02 Mar 2017 08:35:25 -0500")


Am 03/02/2017 02:35 PM, npostavs@users.sourceforge.net wrote:
> 
>> From: Rolf Ade <rolf@pointsman.de> Date: Sun, 5 Feb 2017 19:46:24
>> +0100 Subject: [PATCH] sql-mode w/ sqlite: In-memory database
>> 
>> Enable the usage of an in-memory database. Prior to this, sql-mode
>> w/ sqlite could only be used with file databases. *
>> list/progmodes/sql.el (sql-get-login-ext): Don't expand an empty 
>> file name provided by the user, but call sub-process sqlite with
>> that, in which case it use an in-memory database.
> 
> Could this potentially cause problems for users of a non-sqlite 
> database?

"Impossible" is a strong word and therefor I'm shy to use it, but it
comes really close to that. To start with: The product "sqlite" is the
only product of the currently supported db engines, that use the :file
property by default.

In theory, a user could have customized another product to use the :file
property for the login parameters, but even after thinking about this
(again) for a few minutes I don't see, how this could make sense (they
are client/server db systems). But even then: my patch changes only one
special case - the user enters the empty string on the read-file-name
prompt - and for every other input everything still is, as it was. And
this one single case, that is altered by my patch, wasn't a resonable
input even after the changes of #23566.

But an even stronger argument is: Prior to the unreleased changes from
#23566 it was in fact impossible (without changing the source file or
effectively replace this part of the implementation with something else
by advice overwrite), to enter the empty string on the read-file-name
prompt (because of the third argument to the read-file-name parameters).

Thanks for taking care.





  reply	other threads:[~2017-03-02 16:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-05 19:19 bug#25628: 26.0.50; [PATCH] sql-mode w/ sqlite: In-memory database Rolf Ade
2017-03-02 13:35 ` npostavs
2017-03-02 16:56   ` rolf [this message]
2017-03-03  0:12     ` npostavs

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=87d1dzsjmm.fsf@pointsman.de \
    --to=rolf@linux-qg7d.i-did-not-set--mail-host-address--so-tickle-me \
    --cc=25628@debbugs.gnu.org \
    --cc=npostavs@users.sourceforge.net \
    /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.