1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Window functions: return error if aggregate is not supported as window functions

This commit is contained in:
Sergei Petrunia
2016-04-10 11:28:33 +02:00
parent 29705a4d38
commit 2905b2feb6
3 changed files with 23 additions and 1 deletions

View File

@@ -1766,7 +1766,8 @@ bool Window_func_runner::setup(THD *thd)
break;
}
default:
DBUG_ASSERT(0);
my_error(ER_NOT_SUPPORTED_YET, MYF(0), "This aggregate as window function");
return true;
}
return false;