dialect/sql/schema: support mysql mediumtext type (#1972)

Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
storyicon
2021-09-22 20:35:14 +08:00
committed by GitHub
parent 073215901e
commit 779594f7da

View File

@@ -461,6 +461,9 @@ func (d *MySQL) scanColumn(c *Column, rows *sql.Rows) error {
case "text":
c.Size = math.MaxUint16
c.Type = field.TypeString
case "mediumtext":
c.Size = 1<<24 - 1
c.Type = field.TypeString
case "longtext":
c.Size = math.MaxInt32
c.Type = field.TypeString