2
0

NamedArgs allows underscore

This commit is contained in:
Jack Christensen
2022-04-25 10:16:47 -05:00
parent c093c4af21
commit d13bdbbd35
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ func namedArgState(l *sqlLexer) stateFn {
l.start = l.pos
}
return nil
} else if !(isLetter(r) || (r >= '0' && r <= '9')) {
} else if !(isLetter(r) || (r >= '0' && r <= '9') || r == '_') {
l.pos -= width
na := namedArg(l.src[l.start:l.pos])
if _, found := l.nameToOrdinal[na]; !found {