Adding upstream version 10.5.6.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
b97d49f611
commit
556602e7d9
39 changed files with 786 additions and 133 deletions
20
tests/fixtures/pretty.sql
vendored
20
tests/fixtures/pretty.sql
vendored
|
@ -322,3 +322,23 @@ SELECT
|
|||
* /* multi
|
||||
line
|
||||
comment */;
|
||||
WITH table_data AS (
|
||||
SELECT 'bob' AS name, ARRAY['banana', 'apple', 'orange'] AS fruit_basket
|
||||
)
|
||||
SELECT
|
||||
name,
|
||||
fruit,
|
||||
basket_index
|
||||
FROM table_data
|
||||
CROSS JOIN UNNEST(fruit_basket) AS fruit WITH OFFSET basket_index;
|
||||
WITH table_data AS (
|
||||
SELECT
|
||||
'bob' AS name,
|
||||
ARRAY('banana', 'apple', 'orange') AS fruit_basket
|
||||
)
|
||||
SELECT
|
||||
name,
|
||||
fruit,
|
||||
basket_index
|
||||
FROM table_data
|
||||
CROSS JOIN UNNEST(fruit_basket) AS fruit WITH OFFSET AS basket_index;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue