diff options
Diffstat (limited to 'connectivity/source/parse')
-rw-r--r-- | connectivity/source/parse/sqliterator.cxx | 4 | ||||
-rw-r--r-- | connectivity/source/parse/sqlnode.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index e7faecfc987a..7dd6919baa72 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -936,7 +936,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele if (pSelectNode->getChild(2)->isRule() && SQL_ISPUNCTUATION(pSelectNode->getChild(2)->getChild(0),"*")) { // SELECT * ... - setSelectColumnName(m_aSelectColumns,OUString("*"), aEmptyString,aEmptyString); + setSelectColumnName(m_aSelectColumns,"*", aEmptyString,aEmptyString); } else if (SQL_ISRULE(pSelectNode->getChild(2),scalar_exp_commalist)) { @@ -956,7 +956,7 @@ bool OSQLParseTreeIterator::traverseSelectColumnNames(const OSQLParseNode* pSele // All the table's columns OUString aTableRange; pColumnRef->getChild(0)->parseNodeToStr( aTableRange, m_pImpl->m_xConnection, NULL, false, false ); - setSelectColumnName(m_aSelectColumns,OUString("*"), aEmptyString,aTableRange); + setSelectColumnName(m_aSelectColumns,"*", aEmptyString,aTableRange); continue; } else if (SQL_ISRULE(pColumnRef,derived_column)) diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index d03f97eecbb8..ac4f62bcdd1f 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -741,7 +741,7 @@ void OSQLParseNode::impl_parseLikeNodeToString_throw( OUStringBuffer& rString, c { OUString aStr = ConvertLikeToken(pParaNode, pEscNode, rParam.bInternational); rString.append(" "); - rString.append(SetQuotation(aStr,OUString("\'"),OUString("\'\'"))); + rString.append(SetQuotation(aStr,"\'","\'\'")); } else pParaNode->impl_parseNodeToString_throw( rString, aNewParam, false ); @@ -1004,7 +1004,7 @@ sal_Int16 OSQLParser::buildLikeRule(OSQLParseNode* pAppend, OSQLParseNode*& pLit sal_Int16 nScale = 0; try { - Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, OUString("Decimals") ); + Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, "Decimals" ); aValue >>= nScale; } catch( Exception& ) @@ -1092,7 +1092,7 @@ OSQLParseNode* OSQLParser::buildNode_STR_NUM(OSQLParseNode*& _pLiteral) sal_Int16 nScale = 0; try { - Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, OUString("Decimals") ); + Any aValue = getNumberFormatProperty( m_xFormatter, m_nFormatKey, "Decimals" ); aValue >>= nScale; } catch( Exception& ) @@ -2437,7 +2437,7 @@ void OSQLParseNode::parseLeaf(OUStringBuffer& rString, const SQLParseNodeParamet case SQL_NODE_STRING: if (!rString.isEmpty()) rString.append(" "); - rString.append(SetQuotation(m_aNodeValue,OUString("\'"),OUString("\'\'"))); + rString.append(SetQuotation(m_aNodeValue,"\'","\'\'")); break; case SQL_NODE_NAME: if (!rString.isEmpty()) |