hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject incubator-hawq git commit: HAWQ-457. Remove reserved schema name "madlib"
Date Fri, 26 Feb 2016 02:10:09 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 8eec56ed6 -> 77dd43df1


HAWQ-457. Remove reserved schema name "madlib"


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/77dd43df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/77dd43df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/77dd43df

Branch: refs/heads/master
Commit: 77dd43df1a152021ae4c0b1c33bdaa8448b6883a
Parents: 8eec56e
Author: Ming LI <mli@pivotal.io>
Authored: Thu Feb 25 12:28:36 2016 +0800
Committer: Ming LI <mli@pivotal.io>
Committed: Fri Feb 26 10:09:48 2016 +0800

----------------------------------------------------------------------
 src/backend/commands/schemacmds.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/77dd43df/src/backend/commands/schemacmds.c
----------------------------------------------------------------------
diff --git a/src/backend/commands/schemacmds.c b/src/backend/commands/schemacmds.c
index 4ce2fe1..eae26c6 100644
--- a/src/backend/commands/schemacmds.c
+++ b/src/backend/commands/schemacmds.c
@@ -129,8 +129,7 @@ CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString)
 		check_is_member_of_role(saved_uid, owner_uid);
 
 		/* Additional check to protect reserved schema names */
-		if (!allowSystemTableModsDDL &&
-			(IsReservedName(schemaName) || strcmp(schemaName, "madlib") == 0))
+		if (!allowSystemTableModsDDL && IsReservedName(schemaName))
 		{
 			ereport(ERROR,
 					(errcode(ERRCODE_RESERVED_NAME),


Mime
View raw message