targeted string re-work
Change-Id: I08114529cc6be6148a4f9ee3c89aafaafada77fe
This commit is contained in:
@@ -187,7 +187,7 @@ void SAL_CALL OptimisticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORow
|
||||
if ( m_aJoinedKeyColumns.empty() )
|
||||
throw SQLException();
|
||||
// list all cloumns that should be set
|
||||
static ::rtl::OUString s_sPara(RTL_CONSTASCII_USTRINGPARAM(" = ?"));
|
||||
static ::rtl::OUString s_sPara(" = ?");
|
||||
::rtl::OUString aQuote = getIdentifierQuoteString();
|
||||
|
||||
::rtl::OUString aColumnName;
|
||||
@@ -234,8 +234,8 @@ void SAL_CALL OptimisticSet::updateRow(const ORowSetRow& _rInsertRow ,const ORow
|
||||
if( aKeyConditions.empty() )
|
||||
::dbtools::throwSQLException( DBACORE_RESSTRING( RID_STR_NO_CONDITION_FOR_PK ), SQL_GENERAL_ERROR, m_xConnection );
|
||||
|
||||
static const ::rtl::OUString s_sUPDATE(RTL_CONSTASCII_USTRINGPARAM("UPDATE "));
|
||||
static const ::rtl::OUString s_sSET(RTL_CONSTASCII_USTRINGPARAM(" SET "));
|
||||
static const ::rtl::OUString s_sUPDATE("UPDATE ");
|
||||
static const ::rtl::OUString s_sSET(" SET ");
|
||||
|
||||
Reference<XDatabaseMetaData> xMetaData = m_xConnection->getMetaData();
|
||||
|
||||
@@ -307,8 +307,8 @@ void SAL_CALL OptimisticSet::insertRow( const ORowSetRow& _rInsertRow,const conn
|
||||
::dbtools::throwSQLException( DBACORE_RESSTRING( RID_STR_NO_VALUE_CHANGED ), SQL_GENERAL_ERROR, m_xConnection );
|
||||
|
||||
Reference<XDatabaseMetaData> xMetaData = m_xConnection->getMetaData();
|
||||
static const ::rtl::OUString s_sINSERT(RTL_CONSTASCII_USTRINGPARAM("INSERT INTO "));
|
||||
static const ::rtl::OUString s_sVALUES(RTL_CONSTASCII_USTRINGPARAM(") VALUES ( "));
|
||||
static const ::rtl::OUString s_sINSERT("INSERT INTO ");
|
||||
static const ::rtl::OUString s_sVALUES(") VALUES ( ");
|
||||
TSQLStatements::iterator aSqlIter = aSql.begin();
|
||||
TSQLStatements::iterator aSqlEnd = aSql.end();
|
||||
for(;aSqlIter != aSqlEnd ; ++aSqlIter)
|
||||
|
Reference in New Issue
Block a user