1
0
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:
Robert Haas
2011-01-03 22:08:55 -05:00
parent dc8a14311a
commit 7f60be72b0
4 changed files with 8 additions and 13 deletions

View File

@@ -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;
}