Skip to content

Commit 732c48e

Browse files
authored
add: float64 support mysql (#2097)
1 parent 397cfc3 commit 732c48e

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

internal/codegen/golang/mysql_type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func mysqlType(req *plugin.CodeGenRequest, col *plugin.Column) string {
5151
}
5252
return "sql.NullString"
5353

54-
case "double", "double precision", "real":
54+
case "double", "double precision", "real", "float":
5555
if notNull {
5656
return "float64"
5757
}

internal/endtoend/testdata/datatype/mysql/go/models.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/endtoend/testdata/valid_group_by_reference/mysql/go/models.go

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)