You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- name: GetTicket :oneSELECT Id FROM Tickets WHERE TicketNumber=? AND Activated=False;
-- name: ConsumeTicket :execUPDATE Tickets SET Activated=True, ActivatedAt=CURRENT_TIMESTAMPWHERE TicketNumber=?;
-- name: InsertTicket :execINSERT INTO Tickets (TicketNumber) VALUES (?);
lormayna
changed the title
SQLite: "sqlite.convertLiteral: Unknown node type *parser.Expr_literalContext"
Sqlite INSERT: "sqlite.convertLiteral: Unknown node type *parser.Expr_literalContext"
Jul 23, 2023
Version
1.19.1
What happened?
When I tried to create an insert query, I am getting the following error:
`sqlc generate failed.
2023/07/23 15:12:44 sqlite.convertLiteral: Unknown node type *parser.Expr_literalContext
2023/07/23 15:12:44 sqlite.convertLiteral: Unknown node type *parser.Expr_literalContext
package db
query.sql:34:1: column "TicketNumber" does not exist`
The same parameter don't generate error when used in SELECT.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/598549928daf00679cb6315d8539ed796609774aff56278ca9cf116d6503c5c2
What operating system are you using?
Linux
What database engines are you using?
SQLite
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: