diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 02:50:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 02:50:25 +0000 |
commit | cf49728f719975144a958f23ba5f3336fb81ae55 (patch) | |
tree | 78aa5446e86cc5623808508ee167c9a476754939 /tests/test_expressions.py | |
parent | Releasing debian version 23.10.0-1. (diff) | |
download | sqlglot-cf49728f719975144a958f23ba5f3336fb81ae55.tar.xz sqlglot-cf49728f719975144a958f23ba5f3336fb81ae55.zip |
Merging upstream version 23.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_expressions.py')
-rw-r--r-- | tests/test_expressions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_expressions.py b/tests/test_expressions.py index 85560b8..81cfb86 100644 --- a/tests/test_expressions.py +++ b/tests/test_expressions.py @@ -871,6 +871,8 @@ FROM foo""", FROM foo""", ) + self.assertEqual(parse_one('max(x) as "a b" -- comment').comments, [" comment"]) + def test_to_interval(self): self.assertEqual(exp.to_interval("1day").sql(), "INTERVAL '1' DAY") self.assertEqual(exp.to_interval(" 5 months").sql(), "INTERVAL '5' MONTHS") @@ -1104,6 +1106,6 @@ FROM foo""", parse_one("x").assert_is(exp.Column) with self.assertRaisesRegex( - AssertionError, "x is not <class 'sqlglot.expressions.Identifier'>\." + AssertionError, "x is not <class 'sqlglot.expressions.Identifier'>\\." ): parse_one("x").assert_is(exp.Identifier) |