Skip to content

Commit 0bb83ba

Browse files
sunxunlelisitsky
authored andcommitted
chore: fix some comments (sqlc-dev#3278)
Signed-off-by: sunxunle <sunxunle@gmail.com>
1 parent 2c1399e commit 0bb83ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/analyzer/analyzer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (c *CachedAnalyzer) Analyze(ctx context.Context, n ast.Node, q string, sche
4848
}
4949

5050
func (c *CachedAnalyzer) analyze(ctx context.Context, n ast.Node, q string, schema []string, np *named.ParamSet) (*analysis.Analysis, bool, error) {
51-
// Only cache queries for managed databases. We can't be certain the the
51+
// Only cache queries for managed databases. We can't be certain the
5252
// database is in an unchanged state otherwise
5353
if !c.db.Managed {
5454
return nil, true, nil

internal/engine/postgresql/parse.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func translate(node *nodes.Node) (ast.Node, error) {
271271
case nodes.AlterTableType_AT_AddColumn:
272272
d, ok := altercmd.Def.Node.(*nodes.Node_ColumnDef)
273273
if !ok {
274-
return nil, fmt.Errorf("expected alter table defintion to be a ColumnDef")
274+
return nil, fmt.Errorf("expected alter table definition to be a ColumnDef")
275275
}
276276

277277
rel, err := parseRelationFromNodes(d.ColumnDef.TypeName.Names)
@@ -290,7 +290,7 @@ func translate(node *nodes.Node) (ast.Node, error) {
290290
case nodes.AlterTableType_AT_AlterColumnType:
291291
d, ok := altercmd.Def.Node.(*nodes.Node_ColumnDef)
292292
if !ok {
293-
return nil, fmt.Errorf("expected alter table defintion to be a ColumnDef")
293+
return nil, fmt.Errorf("expected alter table definition to be a ColumnDef")
294294
}
295295
col := ""
296296
if altercmd.Name != "" {

0 commit comments

Comments
 (0)