hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odiache...@apache.org
Subject incubator-hawq git commit: HAWQ-369. Hcatalog as reserved name need regression tests.
Date Fri, 29 Jan 2016 04:10:51 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/HAWQ-369 4efaa85f9 -> a74197c6d


HAWQ-369. Hcatalog as reserved name need regression tests.


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

Branch: refs/heads/HAWQ-369
Commit: a74197c6ddd051ecc5816dfbbe5479c434daecd7
Parents: 4efaa85
Author: Oleksandr Diachenko <odiachenko@pivotal.io>
Authored: Thu Jan 28 20:10:46 2016 -0800
Committer: Oleksandr Diachenko <odiachenko@pivotal.io>
Committed: Thu Jan 28 20:10:46 2016 -0800

----------------------------------------------------------------------
 src/backend/commands/dbcommands.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/a74197c6/src/backend/commands/dbcommands.c
----------------------------------------------------------------------
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index 06b0d4a..5205481 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -848,6 +848,8 @@ createdb(CreatedbStmt *stmt)
 	 * Check for db name conflict.	This is just to give a more friendly error
 	 * message than "unique index violation".  There's a race condition but
 	 * we're willing to accept the less friendly message in that case.
+	 * Also check that user is not trying to use "hcatalog" as a database name,
+	 * because it's already reserved for hcatalog feature integration.
 	 */
 	if (OidIsValid(get_database_oid(dbname)))
 			if (strcmp(dbname, "hcatalog") == 0)


Mime
View raw message