Merging upstream version 25.16.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
7688e2bdf8
commit
bad79d1f7c
110 changed files with 75353 additions and 68092 deletions
|
@ -1,3 +1,4 @@
|
|||
import time
|
||||
import unittest
|
||||
|
||||
from sqlglot import exp, parse_one
|
||||
|
@ -43,3 +44,10 @@ class TestGenerator(unittest.TestCase):
|
|||
assert parse_one("X").sql(identify="safe") == "X"
|
||||
assert parse_one("x as 1").sql(identify="safe") == '"x" AS "1"'
|
||||
assert parse_one("X as 1").sql(identify="safe") == 'X AS "1"'
|
||||
|
||||
def test_generate_nested_binary(self):
|
||||
sql = "SELECT 'foo'" + (" || 'foo'" * 500)
|
||||
|
||||
now = time.time()
|
||||
self.assertEqual(parse_one(sql).sql(), sql)
|
||||
self.assertLessEqual(time.time() - now, 0.1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue