fix: set the dialect for the generated query (#4349)

different quote characters are used by different dialects
This commit is contained in:
Michael Caulley
2025-03-12 09:04:42 -04:00
committed by GitHub
parent 80f9cbf5bf
commit 6813cdd337

View File

@@ -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()