Skip to content

How do I escape multiple variables? #45

@mngyng

Description

@mngyng

Would I do
app.layer('escapedLayer', function(tile, render){ render(['SELECT ST_AsGeoJSON(the_geom) as the_geom_geojson FROM $1 WHERE ST_Intersects(the_geom, !bbox_4326!) AND state=$2', 'points', 'California']); });
or
app.layer('escapedLayer', function(tile, render){ render(['SELECT ST_AsGeoJSON(the_geom) as the_geom_geojson FROM $1 WHERE ST_Intersects(the_geom, !bbox_4326!) AND state=$2', ['points', 'California'] ]); });
or should I do something else other than these?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions