OGR SQLite ExecuteSQL returns NULL if result of SELECT is empty
|Reported by:||rblazek||Owned by:||warmerdam|
OGRSQLiteDataSource::ExecuteSQL returns NULL is result of executed SELECT statement is empty (which may be correct result). It should return empty but valid OGRLayer instead.
If this happen in Mapserver, it fails to render a (empty) map and returns error.
I have got around this applying the patch attached. I am not sure if it is 100% correct but definitely better than to return NULL.