1
0
Fork 0

Adding upstream version 17.7.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-13 20:46:23 +01:00
parent 5c63f2bde9
commit 4a22906fbb
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
93 changed files with 41580 additions and 39040 deletions

View file

@ -851,9 +851,9 @@ class TestFunctions(unittest.TestCase):
def test_to_timestamp(self):
col_str = SF.to_timestamp("cola")
self.assertEqual("TO_TIMESTAMP(cola)", col_str.sql())
self.assertEqual("CAST(cola AS TIMESTAMP)", col_str.sql())
col = SF.to_timestamp(SF.col("cola"))
self.assertEqual("TO_TIMESTAMP(cola)", col.sql())
self.assertEqual("CAST(cola AS TIMESTAMP)", col.sql())
col_with_format = SF.to_timestamp("cola", "yyyy-MM-dd")
self.assertEqual("TO_TIMESTAMP(cola, 'yyyy-MM-dd')", col_with_format.sql())