summaryrefslogtreecommitdiff
path: root/tests/sql_indent.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sql_indent.ur')
-rw-r--r--tests/sql_indent.ur16
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)))