mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
main.stack view protocol - correct test result
View protocol requires expressions include a simple alias.
This commit is contained in:
@@ -18,8 +18,8 @@ FROM Fibonacci
|
|||||||
WHERE N < 100000
|
WHERE N < 100000
|
||||||
)
|
)
|
||||||
SELECT PrevN as N, Stack FROM Fibonacci;
|
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;
|
||||||
(select stack from t1 where n=2) = (select stack from t1 where N=75025)
|
c
|
||||||
1
|
1
|
||||||
DROP table t1;
|
DROP table t1;
|
||||||
#
|
#
|
||||||
|
@@ -22,7 +22,7 @@ WITH recursive Fibonacci(PrevN, N, Stack) AS
|
|||||||
)
|
)
|
||||||
SELECT PrevN as N, Stack FROM Fibonacci;
|
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;
|
DROP table t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
|
Reference in New Issue
Block a user