Skip to content

Conversation

kyleconroy
Copy link
Collaborator

@kyleconroy kyleconroy commented Apr 7, 2021

Since MySQL doesn't have native boolean support, we turn all values with data type tinyint(1) into bools. We need to have the associated length with the datatype for this to work. Make sure that we pass length in all the required spots.

Fixes #856

@kyleconroy kyleconroy merged commit f65152a into master Apr 7, 2021
@kyleconroy kyleconroy deleted the kyle/mysql-query-bool branch April 7, 2021 00:05
victoraugustolls pushed a commit to Streppel/sqlc that referenced this pull request May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MySQL bool type generates int32 golang type
1 participant