Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I escape multiple variables? #45

Open
mngyng opened this issue May 13, 2021 · 0 comments
Open

How do I escape multiple variables? #45

mngyng opened this issue May 13, 2021 · 0 comments

Comments

@mngyng
Copy link

mngyng commented May 13, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant