I have run the below query successfully on a spatial database in a standalone workspace:
st_intersects(st_setsrid(st_geomfromtext('$(poly)'), 27700), geom)
The poly parameter brings in the relevant wkt.
When I run this query with the paramater passed through a master workspace it treats '$poly' as a string rather than a parameter. If i remove the single quotes the wkt comes through as expected, however the single quotes are part of the spatial query so the sql fails.
Has anyone got any advice on how to get around this problem?
Many Thanks,