tpope / vim-dadbod

dadbod.vim: Modern database interface for Vim
https://www.vim.org/scripts/script.php?script_id=5665
3.49k stars 124 forks source link

sqlcmd hangs vim on windows7 #37

Open dhazel opened 5 years ago

dhazel commented 5 years ago

Environment Vim8 on Windows7

Issue When calling DB to connect to an sqlserver database, a spawned command window stays open and vim hangs until the window is closed. (names below are redacted for security)

:DB g:sandbox = sqlserver://username:password@server

Notes This behavior does not happen when using osql in place of sqlcmd. In that case, there is no spawned command window left hanging open, and dadbod works as expected.

Desired Outcome I would like to be able to use sqlcmd rather than osql because sqlcmd has the -W option that will trim trailing whitespace from the query results. Without trimmed trailing whitespace, for the db's I am working with, the fields are returned absurdly long, making the output nearly unreadable.

What I've Tried

tpope commented 5 years ago

This is out of my wheelhouse, but see #5 for some context.