minor bug fixes

This commit is contained in:
2022-01-22 02:31:35 -05:00
parent ee2dc88f06
commit 137d670da2
7 changed files with 49 additions and 33 deletions
-12
View File
@@ -16,18 +16,6 @@ from aquery_parser.types import get_column_type, time_functions
from aquery_parser.utils import *
from aquery_parser.windows import window
def no_dashes(tokens, start, string):
if "-" in tokens[0]:
index = tokens[0].find("-")
raise ParseException(
tokens.type,
start + index + 1, # +1 TO ENSURE THIS MESSAGE HAS PRIORITY
string,
"""Ambiguity: Use backticks (``) around identifiers with dashes, or add space around subtraction operator.""",
)
digit = Char("0123456789")
simple_ident = (
Char(FIRST_IDENT_CHAR)