summaryrefslogtreecommitdiff
path: root/sql/sql_window.cc
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-13 17:52:38 +0200
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2016-09-24 15:09:39 +0200
commit1c72441364157f6856406bbfc3a753868d33fbef (patch)
treeab8492264821f66c6868e00c57cb70a57d31bb3a /sql/sql_window.cc
parent954e46531d50a76fdf56c143f22c1cc81a13b081 (diff)
downloadmariadb-git-1c72441364157f6856406bbfc3a753868d33fbef.tar.gz
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.
Diffstat (limited to 'sql/sql_window.cc')
-rw-r--r--sql/sql_window.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_window.cc b/sql/sql_window.cc
index 31c634efbe5..4c8190054b0 100644
--- a/sql/sql_window.cc
+++ b/sql/sql_window.cc
@@ -1688,7 +1688,6 @@ public:
is_top_bound(is_top_bound_arg), n_rows(n_rows_arg),
cursor(thd, partition_list)
{
- DBUG_ASSERT(n_rows > 0);
}
void init(READ_RECORD *info)