Test for missing foreign CDB_TableMetadata

This commit is contained in:
Rafa de la Torre
2019-07-03 16:25:16 +02:00
parent 446f4113d9
commit d378ca6fe0

View File

@@ -588,8 +588,7 @@ test_extension|public|"local-table-with-dashes"'
# Check CDB_Get_Foreign_Updated_At is robust to unimported CDB_TableMetadata
sql postgres "DROP FOREIGN TABLE IF EXISTS test_fdw.cdb_tablemetadata;"
sql postgres "SELECT cartodb.CDB_Get_Foreign_Updated_At('test_fdw.foo') < (now() + interval '1 minute')" should 't'
sql postgres "SELECT cartodb.CDB_Get_Foreign_Updated_At('test_fdw.foo') > (now() - interval '1 minute')" should 't'
sql postgres "SELECT cartodb.CDB_Get_Foreign_Updated_At('test_fdw.foo') IS NULL" should 't'
# Teardown
DATABASE=fdw_target sql postgres 'REVOKE USAGE ON SCHEMA test_fdw FROM fdw_user;'