kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

SQL SERVER - FORMATING ISSUE #283

Open jacobgjorva opened 2 weeks ago

jacobgjorva commented 2 weeks ago

Would love for the table to be better formatted when using SQL SERVER.

kristijanhusak commented 2 weeks ago

Formatting is not controlled by vim-dadbod-ui, but instead by the CLI aplication behind it, in case of SQL SERVER that is sqlplus.

oskarcjohansson commented 1 week ago

I had same issue, as @kristijanhusak says - its not controlled by vim-dadbod-ui. I have set a global default length in my .zshrc to kind of solve the issue:

export SQLCMDMAXVARTYPEWIDTH=36
export SQLCMDMAXFIXEDTYPEWIDTH=36

Kind of works, for some queries i saved them where i controll the length with LEFT(). @jacobgjorva If you find a better solution please let me know :)