okbob / pspg

Unix pager (with very rich functionality) designed for work with tables. Designed for PostgreSQL, but MySQL is supported too. Works well with pgcli too. Can be used as CSV or TSV viewer too. It supports searching, selecting rows, columns, or block and export selected area to clipboard.
BSD 2-Clause "Simplified" License
2.43k stars 85 forks source link

Fix for issue #228. #229

Closed talek closed 1 year ago

talek commented 1 year ago

If sqlcl is started with /nolog argument and the connect command is used afterwards, pspg fails as described in issue #228. If you connect directly using a connect string provided as an argument, pspg is working for the current session only. As soon as a new connect is issued, all subsequent pspg command will fail with SQL Error: Closed Connection.

This patch ensures that the current sqlcl connection handler is always assigned to the sqlcl executor.

okbob commented 1 year ago

merged, thank you for PR