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

Commit 92013a1

Browse files
authored
Merge pull request #595 from erizocosmico/fix/inner-join-iter
sql: fix row construction in innerJoinIter
2 parents 2f71ae5 + 8547410 commit 92013a1

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy