Test renaming
This commit is contained in:
@@ -65,6 +65,19 @@ SELECT 'R1', cartodb.CDB_Federated_Table_Register(
|
|||||||
SELECT 'V1', pg_get_viewdef('remote_geom');
|
SELECT 'V1', pg_get_viewdef('remote_geom');
|
||||||
SELECT 'S1', cartodb_id, ST_AsText(the_geom), another_field FROM remote_geom;
|
SELECT 'S1', cartodb_id, ST_AsText(the_geom), another_field FROM remote_geom;
|
||||||
|
|
||||||
|
SELECT 'R2', cartodb.CDB_Federated_Table_Register(
|
||||||
|
server => 'loopback',
|
||||||
|
remote_schema => 'remote_schema',
|
||||||
|
remote_table => 'remote_geom2',
|
||||||
|
id_column => 'id',
|
||||||
|
geom_column => 'geom',
|
||||||
|
webmercator_column => 'geom_mercator',
|
||||||
|
local_name => 'myFullTable'
|
||||||
|
);
|
||||||
|
|
||||||
|
SELECT 'V2', pg_get_viewdef('"myFullTable"');
|
||||||
|
SELECT 'S2', cartodb_id, ST_AsText(the_geom_webmercator), another_field FROM "myFullTable";
|
||||||
|
|
||||||
|
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Cleanup
|
-- Cleanup
|
||||||
|
|||||||
@@ -7,4 +7,11 @@ V1| SELECT t.id AS cartodb_id,
|
|||||||
FROM cdb_fs_schema_b904664b5208433cd85a1693ba4f7570.remote_geom t;
|
FROM cdb_fs_schema_b904664b5208433cd85a1693ba4f7570.remote_geom t;
|
||||||
S1|1|POINT(1 1)|patata
|
S1|1|POINT(1 1)|patata
|
||||||
S1|2|POINT(2 2)|patata2
|
S1|2|POINT(2 2)|patata2
|
||||||
|
R2|
|
||||||
|
V2| SELECT t.id AS cartodb_id,
|
||||||
|
t.geom AS the_geom,
|
||||||
|
t.geom_mercator AS the_geom_webmercator,
|
||||||
|
t.another_field
|
||||||
|
FROM cdb_fs_schema_b904664b5208433cd85a1693ba4f7570.remote_geom2 t;
|
||||||
|
S2|3|POINT(3 3)|patata
|
||||||
D1|
|
D1|
|
||||||
|
|||||||
Reference in New Issue
Block a user