diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2010-08-24 15:00:36 +0200 |
---|---|---|
committer | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2010-08-24 15:00:36 +0200 |
commit | bb76500478f77218336f4bc9a0d7c635c8d02bce (patch) | |
tree | d09038b057b9138a725fc132942e8921cc2768fc | |
parent | fs33a: #i113583# handle column names from complex descriptions (diff) | |
download | core-bb76500478f77218336f4bc9a0d7c635c8d02bce.tar.gz core-bb76500478f77218336f4bc9a0d7c635c8d02bce.zip |
fs33a: #i113744# check length of value
-rw-r--r-- | dbaccess/source/core/api/KeySet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/core/api/KeySet.cxx b/dbaccess/source/core/api/KeySet.cxx index cee1887832d2..eadbffb52bfe 100644 --- a/dbaccess/source/core/api/KeySet.cxx +++ b/dbaccess/source/core/api/KeySet.cxx @@ -1667,7 +1667,7 @@ void OKeySet::impl_convertValue_throw(const ORowSetRow& _rInsertRow,const Select sal_Int32 nIndex = sValue.indexOf('.'); if ( nIndex != -1 ) { - aValue = sValue.copy(0,nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0)); + aValue = sValue.copy(0,::std::min(sValue.getLength(),nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0))); } } break; |