Skip to content

Commit

Permalink
fix: update opengemini/query_expression.go
Browse files Browse the repository at this point in the history
Co-authored-by: ZhangJian He <[email protected]>
  • Loading branch information
zhiheng123 and shoothzj authored Aug 29, 2024
1 parent a3d6e33 commit a826ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opengemini/query_expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type AsExpression struct {
}

func (a *AsExpression) build() string {
return fmt.Sprintf("%s as \"%s\"", a.OriginExpr.build(), a.AliasName)
return fmt.Sprintf("%s AS \"%s\"", a.OriginExpr.build(), a.AliasName)
}

func NewAsExpression(aliasName string, expr Expression) *AsExpression {
Expand Down

0 comments on commit a826ad8

Please sign in to comment.