Skip to content

Commit

Permalink
add formatting results
Browse files Browse the repository at this point in the history
  • Loading branch information
parrt committed Apr 13, 2016
1 parent 7a84e8a commit eb1c523
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions corpus/sqlite/testing/t1.sql.formatted
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SELECT CASE WHEN c>(SELECT avg(c) FROM t1) THEN a*2 ELSE b*10 END,
b-c,
a,
(a+b+c+d+e)/5,
c,
a+b*2
FROM t1
WHERE d>e AND EXISTS(SELECT 1 FROM t1 AS x WHERE x.b<t1.b)
ORDER BY 6,1,4,2,5,3
14 changes: 14 additions & 0 deletions corpus/sqlite/testing/t2.sql.formatted
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
SELECT d-e,
c,
a+b*2+c*3,
b,
abs(a),
CASE WHEN a<b-3 THEN 111
WHEN a<=b THEN 222
WHEN a<b+3 THEN 333 ELSE 444 END,
a+b*2+c*3+d*4+e*5
FROM t1
WHERE (e>c
OR e<d)
AND d>e AND c>d
ORDER BY 3,5,1,2,4,6,7

0 comments on commit eb1c523

Please sign in to comment.