diff --git a/API-changes-between-v3.0-and-v3.1.md b/API-changes-between-v3.0-and-v3.1.md index 7a1cf5d..39f9411 100644 --- a/API-changes-between-v3.0-and-v3.1.md +++ b/API-changes-between-v3.0-and-v3.1.md @@ -6,9 +6,26 @@ TODO ## Changed - - PostGIS: Variables in postgis SQL queries must now be wrapped in `!`. In Mapnik 3.0.x you could supply `@foo` but now you must supply `!@foo!` - refs https://github.com/mapnik/mapnik/pull/3618 - - PostGIS: the `geometry_table` argument must be quoted if it contains reserved words - refs https://github.com/mapnik/mapnik/pull/3618 + - PostGIS: Variables in postgis SQL queries must now additionally be wrapped in `!` (refs [#3618](https://github.com/mapnik/mapnik/pull/3618)): +```sql +-- Mapnik 3.0 +SELECT ... WHERE trait = @variable + +-- Mapnik 3.1 +SELECT ... WHERE trait = !@variable! +``` + + - PostGIS/PGraster: The `table`/`geometry_table`/`raster_table` parameter in XML style must be quoted if it would need quoting in SQL query (refs [#3618](https://github.com/mapnik/mapnik/pull/3618)): +```xml + +rolling stones + + +"rolling stones" +``` ## Added + - PGraster: Variable interpolation just like PostGIS plugin (refs [#3618](https://github.com/mapnik/mapnik/pull/3618)). + TODO \ No newline at end of file