Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit d480733

Browse files
committed
Changed REPLACE bool from if-else to assignment of conditional statement
Signed-off-by: Daylon Wilkins <[email protected]>
1 parent 887aabc commit d480733

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sql/parse/parse.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,7 @@ func convertInsert(ctx *sql.Context, i *sqlparser.Insert) (sql.Node, error) {
373373
return nil, ErrUnsupportedSyntax.New(i)
374374
}
375375

376-
isReplace := false
377-
if i.Action == sqlparser.ReplaceStr {
378-
isReplace = true
379-
}
376+
isReplace := i.Action == sqlparser.ReplaceStr
380377

381378
src, err := insertRowsToNode(ctx, i.Rows)
382379
if err != nil {

0 commit comments

Comments
 (0)