houqp / sqlvet

Go fearless SQL. Sqlvet performs static analysis on raw SQL queries in your Go code base.
MIT License
493 stars 25 forks source link

update pg_query_go to v4 #31

Closed valichek closed 11 months ago

valichek commented 1 year ago

This updates pg_query_go dependency to v4. Removes warnings mentioned in https://github.com/houqp/sqlvet/issues/30 but another warnings come out

...
src_backend_nodes_nodeFuncs.c:1380:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
...

From https://github.com/pganalyze/pg_query_go/blob/main/CHANGELOG.md#420-----2023-02-08

4.2.0 2023-02-08
     Update to libpg_query 15-4.2.0
           Update to PostgreSQL 15.1