Merging upstream version 25.18.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
75ba8bde98
commit
f2390c2221
81 changed files with 34133 additions and 33517 deletions
|
@ -1,4 +1,3 @@
|
|||
import time
|
||||
import unittest
|
||||
|
||||
from sqlglot import exp, parse_one
|
||||
|
@ -46,8 +45,5 @@ class TestGenerator(unittest.TestCase):
|
|||
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)
|
||||
sql = "SELECT 'foo'" + (" || 'foo'" * 1000)
|
||||
self.assertEqual(parse_one(sql).sql(copy=False), sql)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue