main.stack view protocol - correct test result

View protocol requires expressions include a simple alias.
This commit is contained in:
Daniel Black 2024-11-21 17:30:13 +11:00
parent 32962ea253
commit 2c89fe7ea6
2 changed files with 3 additions and 3 deletions

View File

@ -18,8 +18,8 @@ FROM Fibonacci
WHERE N < 100000
)
SELECT PrevN as N, Stack FROM Fibonacci;
select (select stack from t1 where n=2) = (select stack from t1 where N=75025);
(select stack from t1 where n=2) = (select stack from t1 where N=75025)
select (select stack from t1 where n=2) = (select stack from t1 where N=75025) as c;
c
1
DROP table t1;
#

View File

@ -22,7 +22,7 @@ WITH recursive Fibonacci(PrevN, N, Stack) AS
)
SELECT PrevN as N, Stack FROM Fibonacci;
select (select stack from t1 where n=2) = (select stack from t1 where N=75025);
select (select stack from t1 where n=2) = (select stack from t1 where N=75025) as c;
DROP table t1;
--echo #