Opened 12 years ago
Closed 12 years ago
#4684 closed defect (fixed)
OGR SQLite ExecuteSQL returns NULL if result of SELECT is empty
Reported by: | rblazek | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.9.2 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | sqlite |
Cc: |
Description
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.
Attachments (1)
Change History (2)
by , 12 years ago
Attachment: | ogrsqlitedatasource.cpp-empty-select.patch added |
---|
comment:1 by , 12 years ago
Component: | default → OGR_SF |
---|---|
Keywords: | sqlite added |
Milestone: | → 1.9.2 |
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch against 1.8.1