This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch branch-feature-AMBARI-14714
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-feature-AMBARI-14714 by 
this push:
     new d4f2533  AMBARI-23441. Escape column name `key` (reserved word) (#977)
d4f2533 is described below

commit d4f25334c6217a0731615218c558a692c8bd8e91
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Sat Apr 28 09:29:18 2018 +0200

    AMBARI-23441. Escape column name `key` (reserved word) (#977)
---
 ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 
b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
index 2892cc8..165839e 100644
--- a/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
+++ b/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
@@ -1086,7 +1086,7 @@ CREATE TABLE upgrade_plan_config (
   id BIGINT NOT NULL,
   upgrade_plan_detail_id BIGINT NOT NULL,
   config_type VARCHAR(255) NOT NULL,
-  key VARCHAR(255) NOT NULL,
+  `key` VARCHAR(255) NOT NULL,
   new_value LONGTEXT,
   remove SMALLINT DEFAULT 0 NOT NULL,
   CONSTRAINT PK_upgrade_plan_config PRIMARY KEY (id),

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to