diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2010-12-09 12:54:13 +0100 |
---|---|---|
committer | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2010-12-09 12:54:13 +0100 |
commit | 1c516e842badb9eaf3e226cdb95786a16b2d6b00 (patch) | |
tree | afc4e95c2a7040e91809497f298f175269799ac1 /connectivity/source/parse | |
parent | 406dec43952fa9a7afa55738c6e7df317ad26275 (diff) |
dba33m: #i115436# do not insert a space infront of ( and after )
Diffstat (limited to 'connectivity/source/parse')
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index b8bcd5334787..209dc0d6fc18 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -2511,6 +2511,7 @@ void OSQLParseNode::parseLeaf(::rtl::OUStringBuffer& rString, const SQLParseNode rString.append(m_aNodeValue); rString.appendAscii("#"); break; + case SQL_NODE_INTNUM: case SQL_NODE_APPROXNUM: { @@ -2524,6 +2525,13 @@ void OSQLParseNode::parseLeaf(::rtl::OUStringBuffer& rString, const SQLParseNode } break; // fall through + case SQL_NODE_PUNCTUATION: + if ( m_aNodeValue.toChar() == '(' || m_aNodeValue.toChar() == ')') // no spaces in front of '(' or after ')' + { + rString.append(m_aNodeValue); + break; + } + // fall through default: if (rString.getLength() && m_aNodeValue.toChar() != '.' && m_aNodeValue.toChar() != ':' ) { |