Fixes codecov issue

pull/7253/head
gindibay 2023-11-22 04:23:28 +03:00
parent 63e3738f46
commit 1900c8e0f4
4 changed files with 0 additions and 26 deletions

View File

@ -70,15 +70,6 @@ DefElemOptionToStatement(StringInfo buf, DefElem *option,
break; break;
} }
#if PG_VERSION_NUM >= PG_VERSION_15
case OPTION_FORMAT_OBJECT_ID:
{
Oid value = defGetObjectId(option);
appendStringInfo(buf, optionFormats[i].format, value);
break;
}
#endif
case OPTION_FORMAT_LITERAL_CSTR: case OPTION_FORMAT_LITERAL_CSTR:
{ {
char *value = defGetString(option); char *value = defGetString(option);

View File

@ -323,11 +323,6 @@ DeparseCreateDatabaseStmt(Node *node)
static void static void
AppendCreateDatabaseStmt(StringInfo buf, CreatedbStmt *stmt) AppendCreateDatabaseStmt(StringInfo buf, CreatedbStmt *stmt)
{ {
/*
* Make sure that we don't try to deparse something that this
* function doesn't expect.
*/
EnsureSupportedCreateDatabaseCommand(stmt);
appendStringInfo(buf, appendStringInfo(buf,
"CREATE DATABASE %s", "CREATE DATABASE %s",

View File

@ -932,11 +932,6 @@ SELECT * FROM public.check_database_on_all_nodes('test_db') ORDER BY node_type;
REVOKE CONNECT ON DATABASE test_db FROM propagated_role; REVOKE CONNECT ON DATABASE test_db FROM propagated_role;
DROP DATABASE test_db; DROP DATABASE test_db;
DROP ROLE propagated_role, non_propagated_role; DROP ROLE propagated_role, non_propagated_role;
--test that create database with oid option failed when citus.enable_create_database_propagation is on
set citus.enable_create_database_propagation TO on;
CREATE DATABASE db_oid_test WITH OID 123;
ERROR: CREATE DATABASE option "oid" is not supported
set citus.enable_create_database_propagation TO off;
--clean up resources created by this test --clean up resources created by this test
-- DROP TABLESPACE is not supported, so we need to drop it manually. -- DROP TABLESPACE is not supported, so we need to drop it manually.
SELECT result FROM run_command_on_all_nodes( SELECT result FROM run_command_on_all_nodes(

View File

@ -536,13 +536,6 @@ REVOKE CONNECT ON DATABASE test_db FROM propagated_role;
DROP DATABASE test_db; DROP DATABASE test_db;
DROP ROLE propagated_role, non_propagated_role; DROP ROLE propagated_role, non_propagated_role;
--test that create database with oid option failed when citus.enable_create_database_propagation is on
set citus.enable_create_database_propagation TO on;
CREATE DATABASE db_oid_test WITH OID 123;
set citus.enable_create_database_propagation TO off;
--clean up resources created by this test --clean up resources created by this test