Skip to content

Commit

Permalink
test(mssql): regen sql for upstream mssql quoting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jan 15, 2024
1 parent c2fcc4e commit 48e8936
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
WITH t0 AS (
SELECT
t5.street AS street,
ROW_NUMBER() OVER (ORDER BY t5.street ASC) - 1 AS "key"
ROW_NUMBER() OVER (ORDER BY t5.street ASC) - 1 AS [key]
FROM data AS t5
), t1 AS (
SELECT
t0."key" AS "key"
t0.[key] AS [key]
FROM t0
), t2 AS (
SELECT
t0.street AS street,
t0."key" AS "key"
t0.[key] AS [key]
FROM t0
JOIN t1
ON t0."key" = t1."key"
ON t0.[key] = t1.[key]
), t3 AS (
SELECT
t2.street AS street,
ROW_NUMBER() OVER (ORDER BY t2.street ASC) - 1 AS "key"
ROW_NUMBER() OVER (ORDER BY t2.street ASC) - 1 AS [key]
FROM t2
), t4 AS (
SELECT
t3."key" AS "key"
t3.[key] AS [key]
FROM t3
)
SELECT
t3.street,
t3."key"
t3.[key]
FROM t3
JOIN t4
ON t3."key" = t4."key"
ON t3.[key] = t4.[key]
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
WITH t0 AS (
SELECT
t4."key" AS "key"
t4.[key] AS [key]
FROM leaf AS t4
WHERE
1 = 1
), t1 AS (
SELECT
t0."key" AS "key"
t0.[key] AS [key]
FROM t0
), t2 AS (
SELECT
t0."key" AS "key"
t0.[key] AS [key]
FROM t0
JOIN t1
ON t0."key" = t1."key"
ON t0.[key] = t1.[key]
)
SELECT
t2."key"
t2.[key]
FROM t2
JOIN t2 AS t3
ON t2."key" = t3."key"
ON t2.[key] = t3.[key]
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ SELECT
WHERE
t0.x > 2
) AS t1
) AS "InColumn(x, x)"
) AS [InColumn(x, x)]
FROM t AS t0

0 comments on commit 48e8936

Please sign in to comment.