Commit 1c724413 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Frame bounds using FOLLOWING or PRECEDING can have 0 as cardinal value

This makes them behave exactly like CURRENT ROW. Standard specifies
unsigned integer, which includes the value 0.

Expand the win_min_max test to include this kind of frame definitions.
parent 954e4653
This diff is collapsed.
This diff is collapsed.
...@@ -1688,7 +1688,6 @@ class Frame_n_rows_following : public Frame_cursor ...@@ -1688,7 +1688,6 @@ class Frame_n_rows_following : public Frame_cursor
is_top_bound(is_top_bound_arg), n_rows(n_rows_arg), is_top_bound(is_top_bound_arg), n_rows(n_rows_arg),
cursor(thd, partition_list) cursor(thd, partition_list)
{ {
DBUG_ASSERT(n_rows > 0);
} }
void init(READ_RECORD *info) void init(READ_RECORD *info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment