Skip to content

Failure to generate for Postgres 17.6 and 18.0 #4140

@go-aegian

Description

@go-aegian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions