vim-dadbod-completion icon indicating copy to clipboard operation
vim-dadbod-completion copied to clipboard

Autocomplete problems when using table alias

Open fmorroni opened this issue 9 months ago • 0 comments

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: image For table inscripciones.alumno completions work fine.

image For curso too.

image 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).

image

If I start typing one of the inscripcion table columns it does find it, but it's pretty much useless at that point... image

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.

fmorroni avatar Apr 25 '24 14:04 fmorroni