mirror of
https://github.com/postgres/postgres.git
synced 2025-10-18 04:29:09 +03:00
Fix crash in ALTER OPERATOR CLASS/FAMILY .. SET SCHEMA.
In the previous coding, the parser emitted a List containing a C string, which is no good, because copyObject() can't handle it. Dimitri Fontaine
This commit is contained in:
@@ -6225,7 +6225,7 @@ AlterObjectSchemaStmt:
|
||||
AlterObjectSchemaStmt *n = makeNode(AlterObjectSchemaStmt);
|
||||
n->objectType = OBJECT_OPCLASS;
|
||||
n->object = $4;
|
||||
n->objarg = list_make1($6);
|
||||
n->addname = $6;
|
||||
n->newschema = $9;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
@@ -6234,7 +6234,7 @@ AlterObjectSchemaStmt:
|
||||
AlterObjectSchemaStmt *n = makeNode(AlterObjectSchemaStmt);
|
||||
n->objectType = OBJECT_OPFAMILY;
|
||||
n->object = $4;
|
||||
n->objarg = list_make1($6);
|
||||
n->addname = $6;
|
||||
n->newschema = $9;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
|
Reference in New Issue
Block a user