summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/evoab2/NResultSetMetaData.cxx')
-rw-r--r--connectivity/source/drivers/evoab2/NResultSetMetaData.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
index 80b4e90997..2dd6a53d87 100644
--- a/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
+++ b/connectivity/source/drivers/evoab2/NResultSetMetaData.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NResultSetMetaData.cxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.7.56.2 $
*
* This file is part of OpenOffice.org.
*
@@ -35,6 +35,7 @@
#include "connectivity/dbexception.hxx"
#include <com/sun/star/sdbc/DataType.hpp>
#include "NDebug.hxx"
+#include "resource/evoab2_res.hrc"
using namespace connectivity::evoab;
using namespace com::sun::star::uno;
@@ -64,9 +65,14 @@ void OEvoabResultSetMetaData::setEvoabFields(const ::vos::ORef<connectivity::OSQ
(*aIter)->getPropertyValue(aName) >>= aFieldName;
guint nFieldNumber = findEvoabField(aFieldName);
if (nFieldNumber == (guint)-1)
- ::dbtools::throwGenericSQLException(
- ::rtl::OUString::createFromAscii("Invalid column name: ") + aFieldName,
- NULL);
+ {
+ :.connectivity::SharedResource aResource;
+ const ::rtl::OUString sError( aResource.getResourceStringWithSubstitution(
+ STR_INVALID_COLUMNNAME,
+ "$columnname$", aFieldName
+ ) );
+ ::dbtools::throwGenericSQLException( sError, *this );
+ }
m_aEvoabFields.push_back(nFieldNumber);
}
}