Subject: Re: bug#32107: 27.0.50; sql-connect/sql-send-paragraph broken

From: Filipp Gunbin <[email-masked]>
Date: Tue, 10 Jul 2018 19:52:50 +0300

tags 32107 notabug

On 10/07/2018 00:08 +0300, vividsnow wrote:

> Hi
>
> Steps to reproduce:
>
> * switch to *scratch*
> * sql-mode
> * sql-sqlite -> test.db
> * sql-save-connection -> test
> * kill *SQL* interactive buffer
> * switch to *scratch*
> * sql-connect -> test
> * switch back to *scratch*
> * try to send something (eg "select 1" ) via C-c C-c (sql-send-paragraph)
> * got "user-error: No SQL process started"

That seems to work as expected.  From sql-mode buffer, you set "target"
SQLi buffer with sql-set-sqli-buffer (actually, it sets sql-buffer var).

Then if you kill the SQLi buffer and get a new one, sql-set-sqli-buffer
needs to be called again.

See also function sql-set-sqli-buffer-generally.

Filipp