You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sdlime , seems reslated to 242af9a
looking at the postgis driver, it seems that the unitialized record->resultindex would also cause issues , c.f in msPostgis LayerGetShape() there's a test for resutindex >= 0
layerObj.queryByIndex doesn't run with oracle-layers.
DESCRIPTION:
The function "msQueryByIndex(mapObj* map)" has a local variable "resultObj record;".
The field "record.resultindex" is never initialized.
In this function the uninitialized record-variable is passed to "msLayerGetShape(...,&record)".
The Oracle-Implementation "msOracleSpatialLayerGetShape" of the msLayerGetShape-Function
evaluates the uninitialized "record.resultindex".
In my case "msOracleSpatialLayerGetShape" threw an error.
SOLUTION (Suggestion):
In msQueryByIndex resultObj record should be initialized.
At least:
record.resultindex = -1;
The text was updated successfully, but these errors were encountered: