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

From: vividsnow <[email-masked]>
Date: Wed, 11 Jul 2018 00:01:10 +0300

sql-set-sqli-buffer not working either.

Lets say I have saved connection: test (as in first example)
Then:

* sql-connect -> test
* switch to *scratch*
* sql-mode
* sql-set-set-sql-buffer
* minibuffer asks new database connection details, not buffer name

On 07/10/2018 07:52 PM, Filipp Gunbin wrote:
> 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
>