Repository: trafodion Updated Branches: refs/heads/master 0a6b61204 -> dcbc9f2c9
[TRAFODION-3109] undo this change, beacause this issue has been fixed on Trafoidon. Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/0c5ee970 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/0c5ee970 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/0c5ee970 Branch: refs/heads/master Commit: 0c5ee97051200f609bb40e90e4d477b19fb1ad86 Parents: c0a125e Author: zlei929 <[email protected]> Authored: Fri Jun 22 10:22:55 2018 +0800 Committer: zlei929 <[email protected]> Committed: Fri Jun 22 10:22:57 2018 +0800 ---------------------------------------------------------------------- core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/0c5ee970/core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp ---------------------------------------------------------------------- diff --git a/core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp b/core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp index 411560d..9bbaeb6 100644 --- a/core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp +++ b/core/sql/sqlcomp/CmpSeabaseDDLcommentOn.cpp @@ -354,21 +354,16 @@ void CmpSeabaseDDL::doSeabaseCommentOn(StmtDDLCommentOn *commentOnNode, if (comment.length() > 0) { - - //'removeConsecutiveQuotes' was done at the beginning of lexical analysis. - // so we should recovery it("'" ==> "''") in there to make insert successfully. - NAString quotedComment; - ToQuotedString(quotedComment, comment, FALSE); - //add or modify comment char query[2048]; + str_sprintf(query, "insert into %s.\"%s\".%s values (%ld, %d, %d, %d, 0, '%s') ; ", getSystemCatalog(), SEABASE_MD_SCHEMA, SEABASE_TEXT, objUID, textType, subID, 0, - quotedComment.data()); + comment.data()); cliRC = cliInterface.executeImmediate(query); if (cliRC < 0)
