Merging upstream version 25.24.5.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f2b92bd29a
commit
1763c7a4ef
80 changed files with 61531 additions and 59444 deletions
|
@ -563,7 +563,36 @@ FROM x""",
|
|||
)
|
||||
self.validate(
|
||||
"""with a as /* comment */ ( select * from b) select * from a""",
|
||||
"""WITH a AS (SELECT * FROM b) /* comment */ SELECT * FROM a""",
|
||||
"""WITH a /* comment */ AS (SELECT * FROM b) SELECT * FROM a""",
|
||||
)
|
||||
self.validate(
|
||||
"""
|
||||
-- comment at the top
|
||||
WITH
|
||||
-- comment for tbl1
|
||||
tbl1 AS (SELECT 1)
|
||||
-- comment for tbl2
|
||||
, tbl2 AS (SELECT 2)
|
||||
-- comment for tbl3
|
||||
, tbl3 AS (SELECT 3)
|
||||
-- comment for final select
|
||||
SELECT * FROM tbl1""",
|
||||
"""/* comment at the top */
|
||||
WITH tbl1 /* comment for tbl1 */ AS (
|
||||
SELECT
|
||||
1
|
||||
), tbl2 /* comment for tbl2 */ AS (
|
||||
SELECT
|
||||
2
|
||||
), tbl3 /* comment for tbl3 */ AS (
|
||||
SELECT
|
||||
3
|
||||
)
|
||||
/* comment for final select */
|
||||
SELECT
|
||||
*
|
||||
FROM tbl1""",
|
||||
pretty=True,
|
||||
)
|
||||
|
||||
def test_types(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue