create table if not exists eg
(
id integer constraint data_pk primary key autoincrement,
name text not null
) STRICT;
SQL queries
-- name: SelectEg :one
select * from (select * from eg);
-- name: SelectEg2 :one
select id from (select id from eg);
-- either of the above will trigger the issue
Version
1.27.0
What happened?
sqlc 1.2.7.0 generation panics and crashes when using a derived table.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
SQLite
What type of code are you generating?
Go