SemanticMediaWiki / SemanticScribunto

Provides service functions to support the Scribunto extension
Other
24 stars 14 forks source link

Fix "mw.smw.ask" for "format=count" queries #81

Closed goossens closed 3 years ago

goossens commented 4 years ago

"format=count" is a pseudo result format that requires special handling. Without this patch, "ask" returns nil. Performing a "getQueryResult" and looking at the row count is a possible workaround but it's incredibly inefficient for larger datasets.

This PR is made in reference to: #80

This PR includes:

Fixes #80

kghbln commented 4 years ago

@goossens Thanks for reporting the issue and providing a patch. @oetterer FYI and action. :)