We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f266a24 commit eadf951Copy full SHA for eadf951
internal/mysql/gen.go
@@ -230,7 +230,7 @@ func goTypeCol(col *sqlparser.ColumnDefinition, settings dinosql.GenerateSetting
230
}
231
return "sql.NullString"
232
case "int" == t, "integer" == t, t == "smallint",
233
- t == "tinyint", "mediumint" == t, "bigint" == t, "year" == t:
+ "mediumint" == t, "bigint" == t, "year" == t:
234
if col.Type.NotNull {
235
return "int"
236
@@ -250,7 +250,7 @@ func goTypeCol(col *sqlparser.ColumnDefinition, settings dinosql.GenerateSetting
250
return "time.Time"
251
252
return "sql.NullTime"
253
- case "boolean" == t:
+ case "boolean" == t, "bool" == t, "tinyint" == t:
254
255
return "bool"
256
0 commit comments