aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/sql/case.sql
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/sql/case.sql')
-rw-r--r--tests/indent/sql/case.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/indent/sql/case.sql b/tests/indent/sql/case.sql
new file mode 100644
index 000000000..eee85a3be
--- /dev/null
+++ b/tests/indent/sql/case.sql
@@ -0,0 +1,8 @@
+select
+ case
+ when a = 1 then '1'
+ when a = 2 then '2'
+ when a = 3 then '3'
+ else '0'
+ end as stmt1
+from tab;