-
Notifications
You must be signed in to change notification settings - Fork 902
Closed
Description
Version
Other
What happened?
updated from v1.17.2 and get the following log when i run sqlc generate
. I use brew to install sqlc and it looks like old versions are not being tracked in brew so we cannot downgrade.
Relevant log output
sqlc generate
panic: interface conversion: ast.Node is *ast.SQLValueFunction, not *ast.FuncCall
goroutine 19 [running]:
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).sourceTables(0x104b0f2e0?, 0x14000a7b4a0, {0x104d52198?, 0x14000d90dc0?})
github.com/kyleconroy/sqlc/internal/compiler/output_columns.go:510 +0xdb4
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).outputColumns(0x14000114000, 0x14000a7b4a0, {0x104d52198?, 0x14000d90dc0})
github.com/kyleconroy/sqlc/internal/compiler/output_columns.go:55 +0x38
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).buildQueryCatalog(0x104a95200?, 0x14000116000, {0x104d52198?, 0x14000d90fd0?}, {0x0, 0x0, 0x0})
github.com/kyleconroy/sqlc/internal/compiler/query_catalog.go:35 +0x1c4
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).parseQuery(0x14000114000, {0x104d51f38?, 0x14000e97620?}, {0x14000203200, 0x8ba}, {{0x0?, 0x0?, {0x0?, 0x0?}, 0x0?}})
github.com/kyleconroy/sqlc/internal/compiler/parse.go:93 +0x65c
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).parseQueries(0x14000114000, {{0x0?, 0x0?, {0x0?, 0x1?}, 0x1?}})
github.com/kyleconroy/sqlc/internal/compiler/compile.go:80 +0x3bc
github.com/kyleconroy/sqlc/internal/compiler.(*Compiler).ParseQueries(...)
github.com/kyleconroy/sqlc/internal/compiler/engine.go:49
github.com/kyleconroy/sqlc/internal/cmd.parse({_, _}, {_, _}, {_, _}, {{0x140004ac030, 0xa}, {0x14000110000, 0x1, ...}, ...}, ...)
github.com/kyleconroy/sqlc/internal/cmd/generate.go:350 +0x1e0
github.com/kyleconroy/sqlc/internal/cmd.Generate.func1()
github.com/kyleconroy/sqlc/internal/cmd/generate.go:224 +0x654
golang.org/x/sync/errgroup.(*Group).Go.func1()
golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x5c
created by golang.org/x/sync/errgroup.(*Group).Go
golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa0
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux, macOS
What database engines are you using?
No response
What type of code are you generating?
Go
reddec