diff --git a/dialect/sql/scan.go b/dialect/sql/scan.go index 2445ada42..e23752fc2 100644 --- a/dialect/sql/scan.go +++ b/dialect/sql/scan.go @@ -12,7 +12,7 @@ import ( ) // ColumnScanner is the interface that wraps the -// three sql.Rows methods used for scanning. +// four sql.Rows methods used for scanning. type ColumnScanner interface { Next() bool Scan(...interface{}) error diff --git a/dialect/sql/schema/mysql.go b/dialect/sql/schema/mysql.go index fbc341026..b799a77a4 100644 --- a/dialect/sql/schema/mysql.go +++ b/dialect/sql/schema/mysql.go @@ -17,7 +17,7 @@ import ( "github.com/facebook/ent/schema/field" ) -// MySQL is a mysql migration driver. +// MySQL is a MySQL migration driver. type MySQL struct { dialect.Driver version string @@ -238,7 +238,7 @@ func (d *MySQL) cType(c *Column) (t string) { t = c.scanTypeOr("double") case field.TypeTime: t = c.scanTypeOr("timestamp") - // In MySQL, timestamp columns are `NOT NULL by default, and assigning NULL + // In MySQL, timestamp columns are `NOT NULL` by default, and assigning NULL // assigns the current_timestamp(). We avoid this if not set otherwise. c.Nullable = c.Attr == "" case field.TypeEnum: