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

Commit 8547410

Browse files
committed
sql: fix row construction in innerJoinIter
Signed-off-by: Miguel Molina <[email protected]>
1 parent 2f71ae5 commit 8547410

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/plan/innerjoin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ func (i *innerJoinIter) Next() (sql.Row, error) {
167167
return nil, err
168168
}
169169

170-
row := append(i.leftRow[:], rightRow...)
170+
var row = make(sql.Row, len(i.leftRow)+len(rightRow))
171+
copy(row, i.leftRow)
172+
copy(row[len(i.leftRow):], rightRow)
171173

172174
v, err := i.cond.Eval(i.ctx, row)
173175
if err != nil {

0 commit comments

Comments
 (0)