From 072afd4fb6623bf6563f90a8a30969adbc548b43 Mon Sep 17 00:00:00 2001 From: Zhengda Lu Date: Tue, 26 Sep 2023 16:14:12 -0400 Subject: [PATCH] fix sqlserver bind parameter scan --- sqllexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqllexer.go b/sqllexer.go index 7ba1b04..f3edf61 100644 --- a/sqllexer.go +++ b/sqllexer.go @@ -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()