vim-dadbod-completion
vim-dadbod-completion copied to clipboard
Autocomplete problems when using table alias
Hi, I'm having a similar problem as in this issue https://github.com/kristijanhusak/vim-dadbod-completion/issues/25, but in my case it's not because there is a table with the same name as the alias.
For starters, it seems like alias completion doesn't work at all if I start dbui in a .sql
buffer. It only work if I start it with a new query, after that it also works in the buffer.
But even when it works, it works on some tables and not others, even given the same alias.
For example:
For table
inscripciones.alumno
completions work fine.
For
curso
too.
But for
inscripcion
it gives me hundreds of completions. It appears like it gives me completions for all of the schema and table names in the database (including all of the ones inside the pg_catalog
schema).
If I start typing one of the inscripcion
table columns it does find it, but it's pretty much useless at that point...
The same happens for one of the tables in another one of the schemas. I have no clue what is the trigger, but it happens always for the same tables across all sessions as far as I can tell.