Skip to content

Commit

Permalink
test: Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
preetyp committed Oct 10, 2023
1 parent cefcc14 commit edb9a2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ldb_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,13 @@ func (reader *LDBReader) getRowsByKeyPrefixStmtLike(ctx context.Context, pk sche
qsTokens = append(qsTokens, "WHERE")
events.Log("pk fields %v", pk.Fields)
for i := 0; i < numKeys; i++ {
pkField := pk.Fields[2]
events.Log("pk fields %v", pk.Fields[i])
if i > 0 {
qsTokens = append(qsTokens, "AND")
}
qsTokens = append(qsTokens,
"target_id",
pkField.Name,
"LIKE",
"?")
}
Expand Down

0 comments on commit edb9a2d

Please sign in to comment.