mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-28094 Window function in expression in ORDER BY
call item->split_sum_func() in setup_order() just as it's done in setup_fields()
This commit is contained in:
@ -93,3 +93,15 @@ pk a c sum(c) over (partition by a order by pk ROWS BETWEEN 1 PRECEDING AND 1 FO
|
||||
126 6 NULL NULL
|
||||
127 6 NULL NULL
|
||||
drop table t1;
|
||||
#
|
||||
# End of 10.2 tests
|
||||
#
|
||||
#
|
||||
# MDEV-28094 Window function in expression in ORDER BY
|
||||
#
|
||||
SELECT EXISTS (SELECT 1 ORDER BY 1+sum(2) OVER ());
|
||||
EXISTS (SELECT 1 ORDER BY 1+sum(2) OVER ())
|
||||
1
|
||||
#
|
||||
# End of 10.4 tests
|
||||
#
|
||||
|
Reference in New Issue
Block a user