Tag: cws_dev300_dba31b
User: oj      
Date: 2008-08-20 07:28:06+0000
Modified:
   dba/connectivity/source/sdbcx/VCollection.cxx

Log:
 #i53067# localize str

File Changes:

Directory: /dba/connectivity/source/sdbcx/
==========================================

File [changed]: VCollection.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/sdbcx/VCollection.cxx?r1=1.43&r2=1.43.56.1
Delta lines:  +12 -3
--------------------
--- VCollection.cxx     2008-04-10 12:00:00+0000        1.43
+++ VCollection.cxx     2008-08-20 07:28:04+0000        1.43.56.1
@@ -7,7 +7,7 @@
  * OpenOffice.org - a multi-platform office productivity suite
  *
  * $RCSfile: VCollection.cxx,v $
- * $Revision: 1.43 $
+ * $Revision: 1.43.56.1 $
  *
  * This file is part of OpenOffice.org.
  *
@@ -42,6 +42,8 @@
 #include <comphelper/property.hxx>
 #include "TConnection.hxx"
 #include <rtl/ustrbuf.hxx>
+#include "resource/common_res.hrc"
+#include "resource/sharedresources.hxx"
 
 using namespace connectivity::sdbcx;
 using namespace connectivity;
@@ -454,7 +456,14 @@
 sal_Int32 SAL_CALL OCollection::findColumn( const ::rtl::OUString& columnName 
) throw(SQLException, RuntimeException)
 {
        if ( !m_pElements->exists(columnName) )
-        ::dbtools::throwGenericSQLException( ::rtl::OUString::createFromAscii( 
"Unknown column name." ), static_cast<XTypeProvider*>(this) );
+    {
+        ::connectivity::SharedResources aResources;
+        const ::rtl::OUString sError( 
aResources.getResourceStringWithSubstitution(
+                            STR_UNKNOWN_COLUMN_NAME,
+                            "$columnname$", columnName
+                         ) );
+               ::dbtools::throwGenericSQLException(sError,static_cast< 
XIndexAccess*>(this));
+    }
 
        return m_pElements->findColumn(columnName) + 1; // because columns 
start at one
 }




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to