summaryrefslogtreecommitdiffstats
path: root/tests/test_parser.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-23 17:07:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-09-23 17:07:13 +0000
commita3a22f545e149b714b6f2b17cd04a5d6e0bd5294 (patch)
treec85091fdb1158b1f0edaf40267d812197c0bc76c /tests/test_parser.py
parentAdding upstream version 6.1.1. (diff)
downloadsqlglot-a3a22f545e149b714b6f2b17cd04a5d6e0bd5294.tar.xz
sqlglot-a3a22f545e149b714b6f2b17cd04a5d6e0bd5294.zip
Adding upstream version 6.2.0.upstream/6.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_parser.py')
-rw-r--r--tests/test_parser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_parser.py b/tests/test_parser.py
index 1054103..9e430e2 100644
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -114,6 +114,9 @@ class TestParser(unittest.TestCase):
with self.assertRaises(ParseError):
parse_one("SELECT FROM x ORDER BY")
+ def test_parameter(self):
+ self.assertEqual(parse_one("SELECT @x, @@x, @1").sql(), "SELECT @x, @@x, @1")
+
def test_annotations(self):
expression = parse_one(
"""