diff options
Diffstat (limited to 'dbaccess/source/core/api/KeySet.cxx')
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index 4df02302607a..f1538b9f9e0f 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -634,18 +634,18 @@ void SAL_CALL OKeySet::updateRow(const ORowSetRow& _rInsertRow ,const ORowSetRow else ::dbtools::throwSQLException( DBACORE_RESSTRING( RID_STR_NO_VALUE_CHANGED ), SQL_GENERAL_ERROR, m_xConnection ); - if(sKeyCondition.getLength() || sIndexCondition.getLength()) + if(!sKeyCondition.isEmpty() || !sIndexCondition.isEmpty()) { aSql.append(" WHERE "); - if(sKeyCondition.getLength() && sIndexCondition.getLength()) + if(!sKeyCondition.isEmpty() && !sIndexCondition.isEmpty()) { aSql.append(sKeyCondition.makeStringAndClear() + sIndexCondition.makeStringAndClear()); } - else if(sKeyCondition.getLength()) + else if(!sKeyCondition.isEmpty()) { aSql.append(sKeyCondition.makeStringAndClear()); } - else if(sIndexCondition.getLength()) + else if(!sIndexCondition.isEmpty()) { aSql.append(sIndexCondition.makeStringAndClear()); } |