Opened 13 years ago
Last modified 13 years ago
#3786 new defect
SDE layers with joined tables and a null filter produce a segfault on retrieving shape by ID
Reported by: | ejn | Owned by: | hobu |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Input - Native SDE Support | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | sde, join |
Cc: |
Description
For layers from a database join, SDE uses the function getSDESQLConstructInfo to setup the SQL connection. If there is an ID query involved, the layer->filter.string is not checked for a NULL value before being concatenated to the full filter set on the connection (where property of the connection object). This causes a segfault if an attempt is made to retrieve a single record by id from the join layer when the filter is NULL.
Attachments (1)
Change History (2)
by , 13 years ago
Attachment: | ms-svn-patch_sde_join_null-filter.patch added |
---|
comment:1 by , 13 years ago
Note: to workaround this problem, you can set the layer filter to a dummy value (e.g. "1 = 1"). Affects versions back to at least Mapserver 5.4.2.
Patch to add check for null filter.string