query with template string

This commit is contained in:
Simon Martín
2018-04-17 11:05:37 +02:00
parent 13843772d4
commit adefbb3365

View File

@@ -73,7 +73,6 @@ describe('mvt regressions', function () {
done();
});
});
});
});
});
@@ -94,14 +93,19 @@ describe('MVT Mapnik', function () {
});
it('invalid properties', function (done) {
const query = `
select ldc, cartodb_id, _2016_6_partcntry, the_geom_webmercator, country
from countries_null_values
where country = 'Kenya' OR country = 'Sudan' LIMIT 3
`;
const mapConfig = {
version: '1.7.0',
layers: [
{
type: 'cartodb',
options: {
sql: "select ldc, cartodb_id, _2016_6_partcntry, the_geom_webmercator, country " +
"from countries_null_values where country = 'Kenya' OR country = 'Sudan' LIMIT 3",
sql: query
}
}
]