Merging upstream version 25.26.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
9138e4b92a
commit
829a709061
117 changed files with 49296 additions and 47316 deletions
|
@ -935,15 +935,13 @@ FROM foo""",
|
|||
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")
|
||||
with self.assertRaises(ValueError):
|
||||
exp.to_interval("bla")
|
||||
self.assertEqual(exp.to_interval("-2 day").sql(), "INTERVAL '-2' DAY")
|
||||
|
||||
self.assertEqual(exp.to_interval(exp.Literal.string("1day")).sql(), "INTERVAL '1' DAY")
|
||||
self.assertEqual(exp.to_interval(exp.Literal.string("-2 day")).sql(), "INTERVAL '-2' DAY")
|
||||
self.assertEqual(
|
||||
exp.to_interval(exp.Literal.string(" 5 months")).sql(), "INTERVAL '5' MONTHS"
|
||||
)
|
||||
with self.assertRaises(ValueError):
|
||||
exp.to_interval(exp.Literal.string("bla"))
|
||||
|
||||
def test_to_table(self):
|
||||
table_only = exp.to_table("table_name")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue