summaryrefslogtreecommitdiffstats
path: root/tests/test_expressions.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-27 04:28:31 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-27 04:28:31 +0000
commitbe50d61f0b93ed6b4ee2aba329f998b3fab36be7 (patch)
treee02ee1e74adf0e1b3542f2c41ec917a23b943793 /tests/test_expressions.py
parentAdding upstream version 25.6.1. (diff)
downloadsqlglot-be50d61f0b93ed6b4ee2aba329f998b3fab36be7.tar.xz
sqlglot-be50d61f0b93ed6b4ee2aba329f998b3fab36be7.zip
Adding upstream version 25.7.1.upstream/25.7.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r--tests/test_expressions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py
index b3617ee..9ac2110 100644
--- a/tests/test_expressions.py
+++ b/tests/test_expressions.py
@@ -1120,3 +1120,6 @@ FROM foo""",
AssertionError, "x is not <class 'sqlglot.expressions.Identifier'>\\."
):
parse_one("x").assert_is(exp.Identifier)
+
+ def test_parse_identifier(self):
+ self.assertEqual(exp.parse_identifier("a ' b"), exp.to_identifier("a ' b"))