forked from huawei/openGauss-server
commit
53626285eb
|
@ -5859,8 +5859,10 @@ ForeignScan* make_foreignscan(
|
|||
plan->righttree = NULL;
|
||||
plan->exec_type = type;
|
||||
plan->distributed_keys = NIL;
|
||||
#ifdef ENABLE_MULTIPLE_NODES
|
||||
plan->distributed_keys =
|
||||
lappend(plan->distributed_keys, makeVar(0, InvalidAttrNumber, InvalidOid, -1, InvalidOid, 0));
|
||||
#endif
|
||||
node->scan.scanrelid = scanrelid;
|
||||
node->fdw_exprs = fdw_exprs;
|
||||
node->fdw_private = fdw_private;
|
||||
|
|
|
@ -8504,7 +8504,8 @@ bool DropExtensionIsSupported(const char* query_string)
|
|||
{
|
||||
char* lower_string = lowerstr(query_string);
|
||||
|
||||
if (strstr(lower_string, "drop") && (strstr(lower_string, "postgis") || strstr(lower_string, "packages"))) {
|
||||
if (strstr(lower_string, "drop") && (strstr(lower_string, "postgis") || strstr(lower_string, "packages") ||
|
||||
strstr(lower_string, "mysql_fdw") || strstr(lower_string, "oracle_fdw"))) {
|
||||
pfree_ext(lower_string);
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue