CDB_FederatedServerTables: Avoid decimal mismatch

This commit is contained in:
Raul Marin 2019-10-30 15:04:01 +01:00
parent 28376ffecb
commit f75756138a
2 changed files with 5 additions and 5 deletions

View File

@ -81,7 +81,7 @@ SELECT 'R2', cartodb.CDB_Federated_Table_Register(
);
SELECT 'V2', pg_get_viewdef('"myFullTable"');
SELECT 'S2', cartodb_id, ST_AsText(the_geom_webmercator), another_field FROM "myFullTable";
SELECT 'S2', cartodb_id, ST_AsText(the_geom), another_field FROM "myFullTable";
Select 'list_remotes2', CDB_Federated_Server_List_Registered_Tables(
server => 'loopback',
@ -99,9 +99,9 @@ SELECT 'R3', cartodb.CDB_Federated_Table_Register(
);
-- The old view should dissapear
SELECT 'S3_old', cartodb_id, ST_AsText(the_geom_webmercator), another_field FROM "myFullTable";
SELECT 'S3_old', cartodb_id, ST_AsText(the_geom), another_field FROM "myFullTable";
-- And the new appear
SELECT 'S3_new', cartodb_id, ST_AsText(the_geom_webmercator), another_field FROM different_name;
SELECT 'S3_new', cartodb_id, ST_AsText(the_geom), another_field FROM different_name;
-- Deregistering the first table
SELECT 'U1', CDB_Federated_Table_Unregister(

View File

@ -18,8 +18,8 @@ S2|3|POINT(3 3)|patata
list_remotes2|(remote_geom2,"public.""myFullTable""")
list_remotes2|(remote_geom,public.remote_geom)
R3|
ERROR: relation "myFullTable" does not exist at character 82
S3_new|3|POINT(333958.472379821 334111.17140196)|patata
ERROR: relation "myFullTable" does not exist at character 70
S3_new|3|POINT(3 3)|patata
U1|
ERROR: relation "remote_geom" does not exist at character 71
list_remotes3|(remote_geom2,public.different_name)