8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:03:03 +01:00

Fix assertion for query with unused named window and no other window expression.

This commit is contained in:
Adriano dos Santos Fernandes 2018-12-16 17:51:44 -02:00
parent 0ea61c13f8
commit 723c45904b

View File

@ -1354,7 +1354,9 @@ void AggregateSourceNode::genBlr(DsqlCompilerScratch* dsqlScratch)
if (dsqlWindow)
{
fb_assert(dsqlContext->ctx_win_maps.hasData());
// There may be unused named windows.
//fb_assert(dsqlContext->ctx_win_maps.hasData());
dsqlScratch->appendUChar(dsqlContext->ctx_win_maps.getCount()); // number of windows
for (Array<WindowMap*>::iterator i = dsqlContext->ctx_win_maps.begin();