sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Failure to generate for Postgres 17.6 and 18.0

Open go-aegian opened this issue 2 months ago • 1 comments

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

go-aegian avatar Oct 16 '25 08:10 go-aegian

I think this is a duplicate of https://github.com/sqlc-dev/sqlc/issues/4065 and should be closed.

npclaudiu avatar Dec 07 '25 22:12 npclaudiu