dba33m: #i115436# do not insert a space infront of ( and after )
This commit is contained in:
parent
406dec4395
commit
1c516e842b
1 changed files with 8 additions and 0 deletions
|
@ -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() != ':' )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue