Tests for revealing issue #211

Test creating overviews for tables with boolean columns
This commit is contained in:
Javier Goizueta
2016-03-17 19:27:51 +01:00
parent 06c05a1d67
commit 70eeab5748
2 changed files with 8 additions and 0 deletions

View File

@@ -2240,3 +2240,8 @@ INSERT INTO polyg_t VALUES
(3, 'C', 'SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, ST_Transform('SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, 3857)),
(4, 'D', 'SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, ST_Transform('SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, 3857)),
(5, 'E', 'SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, ST_Transform('SRID=4326;POLYGON((9 40,8 39,8.5 40,9 41,9 40))'::geometry, 3857));
CREATE TABLE column_types_t (cartodb_id integer, the_geom geometry, the_geom_webmercator geometry, odd boolean)
AS SELECT cartodb_id, the_geom, the_geom_webmercator,
(CASE cartodb_id % 2 WHEN 0 THEN 'f' ELSE 't' END)::boolean
FROM base_bare_t;