Skip to content

Commit

Permalink
fix: named error
Browse files Browse the repository at this point in the history
  • Loading branch information
elvizlai committed Nov 12, 2018
1 parent 82935fa commit 30e0314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion named.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func compileNamedQuery(qs []byte, bindType int) (query string, names []string, e
}
inName = true
name = []byte{}
} else if inName && i > 0 && b == '=' {
} else if inName && i > 0 && b == '=' && len(name) == 0 {
rebound = append(rebound, ':', '=')
inName = false
continue
Expand Down

0 comments on commit 30e0314

Please sign in to comment.