diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-10-16 17:15:21 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-10-16 17:15:21 -0400 |
commit | ac3729041810d3277c5e3ad68b93f1208d3cd602 (patch) | |
tree | ccbf4fbfccc615829e4db9a4e23da3829c38bfb5 /tests | |
parent | 78c1a4cd0f7766327190268b8e3609c854ebfa54 (diff) |
Indenting paren-nested SQL expressions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sql_indent.ur | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/sql_indent.ur b/tests/sql_indent.ur index e312dc3b..dec1c2d5 100644 --- a/tests/sql_indent.ur +++ b/tests/sql_indent.ur @@ -1,7 +1,7 @@ table t1 : {A : int, B : string, C : float} val q1 = (SELECT * - FROM t1 + FROM t1) WHERE A = 0) val a1 = (INSERT INTO t1 @@ -9,6 +9,18 @@ val a1 = (INSERT INTO t1 val a2 = (UPDATE t1 SET A = 3, B = "4", C = 5.0) - + val a3 = (DELETE FROM t1 WHERE B <> "good") + + +val q2 = (SELECT * + FROM t1 + WHERE A = 0 + OR B = "hi" + AND (C <> 10.01 + OR A = 8) + AND (B = B + OR B = B + AND C = C OR (D = + 6 AND 8 = 8))) |