sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Generate type-safe code from SQL

Results 511 sqlc issues
Sort by recently updated
recently updated
newest added

### Version 1.28.0 ### What happened? This query cannot be parsed by sqlc using the sqlite engine: ```sql with params (foo) as (select ?) select * from params; ``` I...

bug
:wrench: golang
:computer: windows
:books: sqlite

### Version 1.29.0 ### What happened? set overrides for a field type json is not working ![Image](https://github.com/user-attachments/assets/5616a38c-b3f5-48d9-a9e4-d56acfe04ff6) `sqlc generate` ![Image](https://github.com/user-attachments/assets/e1175c8f-c148-48e0-9233-042d0a812cf4) `GetOrderProductsRow.Additionals` should be `json` cutom type not `[]byte` ### Relevant...

bug
:books: postgresql
:wrench: golang
:computer: linux

Hello I am getting pq bind message errors like the following below ``` 2025/04/06 09:52:07 Error fetching jobs: pq: bind message supplies 6 parameters, but prepared statement "" requires 1...

:books: postgresql

### Version 1.29.0 ### What happened? Using a CTE (`WITH`) before a SELECT statement with a ? argument in it (or sqlc.arg() call) - the argument is not detected by...

bug
:books: mysql
:computer: darwin

### Version 1.29.0 ### What happened? I have these 2 queries When i try to run `sqlc generate` it returns an error saying invalid memory address Not quite sure what...

bug
:wrench: golang
:books: sqlite
:computer: linux

### Version 1.29.0 ### What happened? Hi there, I was trying out sqlc with sqlite in a small experiment and I was trying to find the right away to get...

bug
:wrench: golang
:books: sqlite
:computer: linux

### Version 1.28.0 ### What happened? I'm using this `sqlite3` command to export schema from the database: `sqlite3 db/data.db '.schema authors' > ./db/schema.sql` and it generates an sql schema where...

bug
:wrench: golang
:books: sqlite
:computer: linux

### Version 1.29.0 ### What happened? Using `string_agg` results in a `[]byte` instead of `*string`, or `pgtype.Text`, like I'd expect. The order by in the examples don't make a difference,...

bug
:books: postgresql
:wrench: golang
:computer: linux

### Version 1.26.0 ### What happened? I accidentally left an alias off my subquery and I got a panic instead of a useful error message. Failing playground without alias (included...

bug

### Version 1.26.0 ### What happened? See linked playground. If you make it a single array it works fine. Supported since postgres 9.4 ### Relevant log output ```shell function unnest(unknown,...

bug