commit | 15f3740c0154d3b417e1d3a44da52ec5ab6c9d6b | [log] [tgz] |
---|---|---|
author | Brian Payton <bpayton@us.ibm.com> | Sat Jan 24 03:47:46 2009 +0000 |
committer | Brian Payton <bpayton@us.ibm.com> | Sat Jan 24 03:47:46 2009 +0000 |
tree | 58350a65bc85014afca180b4e342289c22df4887 | |
parent | 8ab9070d447b7e930af048f785c63b159205b2ec [diff] |
[202602] Modified the appendComment method of the SQLQuerySourceWriter class in the o.e.d.modelbase.sql.query plugin to put out an extra space at the beginning of multiline comments so the comment won't be concatenated with SQL code.
diff --git a/plugins/org.eclipse.datatools.modelbase.sql.query/src/org/eclipse/datatools/modelbase/sql/query/util/SQLQuerySourceWriter.java b/plugins/org.eclipse.datatools.modelbase.sql.query/src/org/eclipse/datatools/modelbase/sql/query/util/SQLQuerySourceWriter.java index b51b89f..3ac0610 100644 --- a/plugins/org.eclipse.datatools.modelbase.sql.query/src/org/eclipse/datatools/modelbase/sql/query/util/SQLQuerySourceWriter.java +++ b/plugins/org.eclipse.datatools.modelbase.sql.query/src/org/eclipse/datatools/modelbase/sql/query/util/SQLQuerySourceWriter.java
@@ -1193,6 +1193,11 @@ if (trimText.startsWith(COMMENT_PREFIX_MULTI_LINE) == false) { sbComment.append(COMMENT_PREFIX_MULTI_LINE); } + // BZ 202602 drigby 02 Dec 2008 + // If the comment is a multiline comment padd with 1 leading space + if (trimText.startsWith(COMMENT_PREFIX_MULTI_LINE)) { + sbComment.append(" "); + } sbComment.append(text); if (trimText.endsWith(COMMENT_SUFFIX_MULTI_LINE) == false) { sbComment.append(COMMENT_SUFFIX_MULTI_LINE);