-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Milestone
Description
MySQL doesn't have actual bool type. Boolean is alias of TINYINT(1)
.
Using TINYINT(1)
for regular integer is not so common.
How about treating TINYINT(1)
as bool for better experience?
var b any
db.QueryRow("SELECT true").Scan(&b) // b is bool(true), not int64(1).
kazeburo, LucasSegersFabro, ijomeli, boyer-victor, aaronjheng and 1 moredolmen
Metadata
Metadata
Assignees
Labels
No labels