This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author erlendaasland
Recipients berker.peksag, erlendaasland, serhiy.storchaka
Date 2021-02-18.22:20:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613686860.13.0.742108376023.issue43258@roundup.psfhosted.org>
In-reply-to
Content
If no rows match an aggregate query, _pysqlite_step_callback() is never called, and _pysqlite_final_callback() is called once. In order to prevent needless context allocation, we should pass 0 as the second argument to sqlite3_aggregate_context().


Quoting from https://sqlite.org/c3ref/aggregate_context.html:

Within the xFinal callback, it is customary to set N=0 in calls to sqlite3_aggregate_context(C,N) so that no pointless memory allocations occur.
History
Date User Action Args
2021-02-18 22:21:00erlendaaslandsetrecipients: + erlendaasland, berker.peksag, serhiy.storchaka
2021-02-18 22:21:00erlendaaslandsetmessageid: <1613686860.13.0.742108376023.issue43258@roundup.psfhosted.org>
2021-02-18 22:20:59erlendaaslandlinkissue43258 messages
2021-02-18 22:20:59erlendaaslandcreate