Skip to content

Commit

Permalink
fix sqlserver bind parameter scan
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zhengda committed Sep 26, 2023
1 parent 5973eba commit 072afd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqllexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (s *Lexer) scanBindParameter() Token {
s.start = s.cursor
ch := s.nextBy(2) // consume the (colon|at sign) and the char
for {
if !isLetter(ch) {
if !isLetter(ch) && !isDigit(ch) {
break
}
ch = s.next()
Expand Down

0 comments on commit 072afd4

Please sign in to comment.