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
-- Example queries for sqlcCREATETABLEauthors (
id intPRIMARY KEY,
name textNOT NULL,
bio text
);
CREATETABLEbook1 (
author_id intPRIMARY KEY,
name text,
FOREIGN KEY (`author_id`) REFERENCES`authors` (`id`) ON DELETE CASCADE
);
CREATETABLEbook2 (
author_id intPRIMARY KEY,
name text,
FOREIGN KEY (`author_id`) REFERENCES`authors` (`id`) ON DELETE CASCADE
);
SQL queries
-- name: GetAuthors :manySELECT*FROM authors
whereauthors.id not in (select author_id from book1 unionselect author_id from book2)
Version
1.17.2
What happened?
Generation fails even though the SQL is correct syntax.
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/af4016069178c0a6b6aa0836af1845909b60ba84ec3da78a616231ffd1ecca9f
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: