*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/alter.c,v 1.26 2008/01/01 19:45:48 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/alter.c,v 1.27 2008/02/07 21:07:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
break;
case OBJECT_DATABASE:
- AlterDatabaseOwner((char *) linitial(stmt->object), newowner);
+ AlterDatabaseOwner(strVal(linitial(stmt->object)), newowner);
break;
case OBJECT_FUNCTION:
break;
case OBJECT_LANGUAGE:
- AlterLanguageOwner((char *) linitial(stmt->object), newowner);
+ AlterLanguageOwner(strVal(linitial(stmt->object)), newowner);
break;
case OBJECT_OPERATOR:
break;
case OBJECT_SCHEMA:
- AlterSchemaOwner((char *) linitial(stmt->object), newowner);
+ AlterSchemaOwner(strVal(linitial(stmt->object)), newowner);
break;
case OBJECT_TABLESPACE:
- AlterTableSpaceOwner((char *) linitial(stmt->object), newowner);
+ AlterTableSpaceOwner(strVal(linitial(stmt->object)), newowner);
break;
case OBJECT_TYPE:
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.605 2008/01/01 19:45:50 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.606 2008/02/07 21:07:55 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
{
AlterOwnerStmt *n = makeNode(AlterOwnerStmt);
n->objectType = OBJECT_DATABASE;
- n->object = list_make1($3);
+ n->object = list_make1(makeString($3));
n->newowner = $6;
$$ = (Node *)n;
}
{
AlterOwnerStmt *n = makeNode(AlterOwnerStmt);
n->objectType = OBJECT_LANGUAGE;
- n->object = list_make1($4);
+ n->object = list_make1(makeString($4));
n->newowner = $7;
$$ = (Node *)n;
}
{
AlterOwnerStmt *n = makeNode(AlterOwnerStmt);
n->objectType = OBJECT_SCHEMA;
- n->object = list_make1($3);
+ n->object = list_make1(makeString($3));
n->newowner = $6;
$$ = (Node *)n;
}
{
AlterOwnerStmt *n = makeNode(AlterOwnerStmt);
n->objectType = OBJECT_TABLESPACE;
- n->object = list_make1($3);
+ n->object = list_make1(makeString($3));
n->newowner = $6;
$$ = (Node *)n;
}