Closed
Description
Version
1.15.0
What happened?
Example Query:
-- name: CheckIfSomeRandomColumnIsNotNull :one
SELECT
`some_random_column` IS NOT NULL AS `is_some_random_column_not_null`
FROM
`example`
WHERE
`id` = ?;
Results in:
type CheckIfSomeRandomColumnIsNotNullRow struct {
IsSomeRandomColumnNotNull interface{}
}
Every attempt to use ::bool
to type the struct field correctly resulted in a syntax error.
Relevant log output
No response
Database schema
CREATE TABLE `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