sqlc
sqlc copied to clipboard
Failure to generate for Postgres 17.6 and 18.0
Version
1.30.0
What happened?
starting postgres 17.6
schema.sql contains at the beginning of the file. thus sqlc fails when encounters **
-- PostgreSQL database dump
\restrict cRe26dxyO3We839cJ3COtDCpNvQBSEG33rrGwRIgsYLdkpPRu7RhWGxQhG36png
-- Dumped from database version 18.0 -- Dumped by pg_dump version 18.0
SQLC error : schema.sql:5:2: syntax error at or near ""
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response
I think this is a duplicate of https://github.com/sqlc-dev/sqlc/issues/4065 and should be closed.