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
currently, when there is a tinyint, or bit (boolean) field in mysql, you cannot store this type into a golang 'bool' type without error. Currently these are pulled in as string, or possibly int64.
Example code
var isEnabled bool
conn.Query('SELECT isEnabled FROM table')
rows.Scan(&isEnabled)
results in:
panic: sql: Scan error on column index 9: sql/driver: couldn't convert "\x01" into type bool