dba33m: #i115436# do not insert a space infront of ( and after )

This commit is contained in:
Ocke Janssen [oj] 2010-12-09 12:54:13 +01:00
parent 406dec4395
commit 1c516e842b

View file

@ -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() != ':' )
{