Skip to content

Commit 23a716d

Browse files
committed
EB-4012 added comment for clarity
1 parent 796d1f5 commit 23a716d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: strmangle.go

+2
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ func WhereInClause(lq, rq string, start int, cols []string, count int) string {
579579
buf := GetBuffer()
580580
defer PutBuffer(buf)
581581

582+
// Start is used as the dialect switch for $ or ?
583+
// Because Placeholders will not accept 0 as a start index, set it to 1 and set useIndexPlaceholders appropriately
582584
useIndexPlaceholders := true
583585
if start == 0 {
584586
start = 1

0 commit comments

Comments
 (0)