Skip to content

Commit 43b5a64

Browse files
committed
bug fix
1 parent f3293c6 commit 43b5a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/rowexec/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (i *insertIter) Next(ctx *sql.Context) (returnRow sql.Row, returnErr error)
177177

178178
i.updateLastInsertId(ctx, row)
179179

180-
if i.returnExprs != nil {
180+
if len(i.returnExprs) > 0 {
181181
var retExprRow sql.Row
182182
for _, returnExpr := range i.returnExprs {
183183
result, err := returnExpr.Eval(ctx, row)

0 commit comments

Comments
 (0)