WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 93ca430

Browse files
committed
add a test for simple static set that sets a variable to the value of another variable
1 parent 9dfbf42 commit 93ca430

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SET x = 42;
2+
SET y = $x;
3+
SET z = $y;
4+
select 'text' as component,
5+
case $z
6+
when '42' then 'It works !'
7+
else 'It failed ! Expected 42 but got ' || COALESCE($z, 'NULL')
8+
end
9+
AS contents;

0 commit comments

Comments
 (0)