Commit df6abda
fix: add missing column in group by expression (#534)
when trying to use the lsp server autocompletion didnt work and when
activating logs found messages such as:
> ERROR pgt_lsp::session error=Database error: column "c.relkind" must
appear in the GROUP BY clause or be used in an aggregate function
upon adding c.relkind into the group by expression autocomplete started
working as expected, the issue seems to be using c.relkind in the select
statement without using it in the group by expression
I'm using postgres 12 to test it
---------
Co-authored-by: Nicolás De los Santos <nicolas.delossantos@meteologica.com>1 parent a1f6a56 commit df6abda
File tree
2 files changed
+5
-17
lines changed- .sqlx
- crates/pgt_schema_cache/src/queries
2 files changed
+5
-17
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | | - | |
| 42 | + | |
0 commit comments