mirror of
https://github.com/ent/ent.git
synced 2026-03-05 19:35:23 +03:00
fix: set the dialect for the generated query (#4349)
different quote characters are used by different dialects
This commit is contained in:
@@ -82,7 +82,8 @@ func (cmd *GlobalID) Run(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
rows := &sql.Rows{}
|
||||
query, args := sql.Select("type").
|
||||
query, args := sql.Dialect(cmd.Dialect).
|
||||
Select("type").
|
||||
From(sql.Table(schema.TypeTable)).
|
||||
OrderBy(sql.Asc("id")).
|
||||
Query()
|
||||
|
||||
Reference in New Issue
Block a user