- Notifications
You must be signed in to change notification settings - Fork 978
Closed
Labels
Description
Version
1.15.0
What happened?
Example Query:
-- name: CheckIfSomeRandomColumnIsNotNull :oneSELECT`some_random_column`IS NOT NULLAS`is_some_random_column_not_null`FROM`example`WHERE`id`= ?;Results in:
typeCheckIfSomeRandomColumnIsNotNullRowstruct{IsSomeRandomColumnNotNullinterface{} }Every attempt to use ::bool to type the struct field correctly resulted in a syntax error.
Relevant log output
No response
Database schema
CREATETABLE `example` ( `id`bigint unsigned NOT NULL AUTO_INCREMENT, `some_random_column`bigint unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
Linux
What database engines are you using?
MySQL
What type of code are you generating?
Go