We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e79159b commit 6e0a5ccCopy full SHA for 6e0a5cc
mindsdb_sql_parser/utils.py
@@ -81,10 +81,18 @@ def tokens_to_string(tokens):
81
# filling space between tokens
82
line += ' '*(token.index - shift - len(line))
83
84
+ match token.type:
85
+ case 'VARIABLE':
86
+ token_value = '@' + token.value
87
+ case 'SYSTEM_VARIABLE':
88
+ token_value = '@@' + token.value
89
+ case _:
90
+ token_value = token.value
91
+
92
# add token
- line += token.value
93
+ line += token_value
94
- last_pos = token.index + len(token.value)
95
+ last_pos = token.index + len(token_value)
96
97
# last line
98
content += line
0 commit comments