Files
cartodb-postgresql/test/CDB_FederatedServerTables_expect

31 lines
974 B
Plaintext

C1|
## Registering an existing table works
R1|
V1| SELECT t.id AS cartodb_id,
t.geom AS the_geom,
st_transform(t.geom, 3857) AS the_geom_webmercator,
t.another_field
FROM cdb_fs_schema_b904664b5208433cd85a1693ba4f7570.remote_geom t;
S1|1|POINT(1 1)|patata
S1|2|POINT(2 2)|patata2
list_remotes1|(remote_geom,public.remote_geom)
## Registering another existing table works
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
list_remotes2|(remote_geom2,"public.""myFullTable""")
list_remotes2|(remote_geom,public.remote_geom)
## Re-registering a table works
R3|
ERROR: relation "myFullTable" does not exist at character 70
S3_new|3|POINT(3 3)|patata
## Unregistering works
U1|
ERROR: relation "remote_geom" does not exist at character 71
list_remotes3|(remote_geom2,public.different_name)
D1|