On Fri, 1 Apr 2016 08:54:50 -0700 (PDT), Argiris Grivas wrote:
> Although query #1 returns the row as expected, query #2 returns an
> empty result set. The documentation suggests #2 should give the same
> result as #1. Am I missing something?
>
Hi Argiris,
you are absolutely right; there was an undetected regression
forbidding the Spatial Index to correctly support Spatial Views.
short history: version 4.2 introduced several safety checks
intended to shield the Spatial Index against table declaring
a WITHOUT ROWID clause, as reported here:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=4.2.0+functions#5
Unluckily the code implementation badly ignored the special case
of Spatial Views, and as a sad consequence all Spatial Views were
systematically discarded by the Spatial Index module.
an appropriate patch is already available since the most recent commit
into the Fossil repository and will be publicly released with the
next-to-come 4.4.0
bye Sandro