summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@oracle.com>2010-12-09 12:54:13 +0100
committerOcke Janssen [oj] <Ocke.Janssen@oracle.com>2010-12-09 12:54:13 +0100
commit1c516e842badb9eaf3e226cdb95786a16b2d6b00 (patch)
treeafc4e95c2a7040e91809497f298f175269799ac1 /connectivity/source
parentmasterfix OOO330: #i115774# crash in FR version when typing / as first character (diff)
downloadcore-1c516e842badb9eaf3e226cdb95786a16b2d6b00.tar.gz
core-1c516e842badb9eaf3e226cdb95786a16b2d6b00.zip
dba33m: #i115436# do not insert a space infront of ( and after )
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/parse/sqlnode.cxx8
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() != ':' )
{