remove unnecessary use of OUString constructor in CONNECTIVITY module

Change-Id: Ie32d03920d996db2793ead9940fc90668cde03dd
This commit is contained in:
Noel Grandin 2013-11-04 13:51:21 +02:00
parent 2f2416ff06
commit 1bdb2b6f06
62 changed files with 177 additions and 183 deletions

View File

@ -65,7 +65,7 @@ void AdoDriverTest::setUp()
m_xAdoComponent = getMultiServiceFactory()->createInstance("com.sun.star.comp.sdbc.ado.ODriver");
CPPUNIT_ASSERT_MESSAGE("no ado component!", m_xAdoComponent.is());
OUString url = OUString("sdbc:ado:access:PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=") +
OUString url = "sdbc:ado:access:PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" +
getPathFromWorkdir("/CppunitTest/TS001018407.mdb");
Sequence< PropertyValue > info;

View File

@ -64,7 +64,7 @@ void MorkDriverTest::setUp()
// is this the best way to pass test file through URL?
// may be take a custom Sequence< PropertyValue > route?
OUString url = OUString("sdbc:address:thunderbird:unittest:") +
OUString url = "sdbc:address:thunderbird:unittest:" +
getPathFromSrc("/connectivity/qa/connectivity/mork/abook_10_john_does.mab");
Sequence< PropertyValue > info;

View File

@ -171,7 +171,7 @@ OUString SAL_CALL OPoolCollection::getImplementationName_Static( ) throw(Runtim
Sequence< OUString > SAL_CALL OPoolCollection::getSupportedServiceNames_Static( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
aSupported[0] = OUString("com.sun.star.sdbc.ConnectionPool");
aSupported[0] = "com.sun.star.sdbc.ConnectionPool";
return aSupported;
}
// -----------------------------------------------------------------------------

View File

@ -907,8 +907,8 @@ void ODatabaseMetaDataResultSet::setColumnsMap()
m_aValueRange[12] = aMap;
::std::map< sal_Int32,OUString> aMap2;
aMap2[0] = OUString("YES");
aMap2[1] = OUString("NO");
aMap2[0] = "YES";
aMap2[1] = "NO";
m_aIntValueRange[18] = aMap2;
ODatabaseMetaDataResultSetMetaData* pMetaData = new ODatabaseMetaDataResultSetMetaData(m_pRecordSet,this);
@ -1040,9 +1040,9 @@ void ODatabaseMetaDataResultSet::setIndexInfoMap()
m_aValueRange[8] = aMap2;
::std::map< sal_Int32,OUString> aMap3;
aMap3[0] = OUString();
aMap3[DB_COLLATION_ASC] = OUString("A");
aMap3[DB_COLLATION_DESC] = OUString("D");
aMap3[0] = "";
aMap3[DB_COLLATION_ASC] = "A";
aMap3[DB_COLLATION_DESC] = "D";
m_aIntValueRange[21] = aMap3;
@ -1063,8 +1063,8 @@ void ODatabaseMetaDataResultSet::setTablePrivilegesMap()
m_aColMapping.push_back(7);
::std::map< sal_Int32,OUString> aMap;
aMap[0] = OUString("YES");
aMap[1] = OUString("NO");
aMap[0] = "YES";
aMap[1] = "NO";
m_aIntValueRange[7] = aMap;

View File

@ -90,8 +90,8 @@ OUString ODriver::getImplementationName_Static( ) throw(RuntimeException)
Sequence< OUString > ODriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[1] = OUString("com.sun.star.sdbcx.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
//------------------------------------------------------------------
@ -155,8 +155,8 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBooleanValues(2);
aBooleanValues[0] = OUString( "false" );
aBooleanValues[1] = OUString( "true" );
aBooleanValues[0] = "false";
aBooleanValues[1] = "true";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("IgnoreDriverPrivileges")

View File

@ -61,8 +61,8 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw (::com::sun::star:
::com::sun::star::uno::Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -87,7 +87,7 @@ void OCalcConnection::construct(const OUString& url,const Sequence< PropertyValu
}
m_aFileName = aURL.GetMainURL(INetURLObject::NO_DECODE);
m_sPassword = OUString();
m_sPassword = "";
const char* pPwd = "password";
const PropertyValue *pIter = info.getConstArray();
@ -114,16 +114,16 @@ Reference< XSpreadsheetDocument> OCalcConnection::acquireDoc()
}
// open read-only as long as updating isn't implemented
Sequence<PropertyValue> aArgs(2);
aArgs[0].Name = OUString("Hidden");
aArgs[0].Name = "Hidden";
aArgs[0].Value <<= (sal_Bool) sal_True;
aArgs[1].Name = OUString("ReadOnly");
aArgs[1].Name = "ReadOnly";
aArgs[1].Value <<= (sal_Bool) sal_True;
if ( !m_sPassword.isEmpty() )
{
const sal_Int32 nPos = aArgs.getLength();
aArgs.realloc(nPos+1);
aArgs[nPos].Name = OUString("Password");
aArgs[nPos].Name = "Password";
aArgs[nPos].Value <<= m_sPassword;
}

View File

@ -51,8 +51,8 @@ OUString SAL_CALL OCalcResultSet::getImplementationName( ) throw ( RuntimeExcep
Sequence< OUString > SAL_CALL OCalcResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -479,23 +479,23 @@ void OCalcTable::fillColumns()
}
break;
case DataType::DECIMAL:
aTypeName = OUString("DECIMAL");
aTypeName = "DECIMAL";
break;
case DataType::BIT:
aTypeName = OUString("BOOL");
aTypeName = "BOOL";
break;
case DataType::DATE:
aTypeName = OUString("DATE");
aTypeName = "DATE";
break;
case DataType::TIME:
aTypeName = OUString("TIME");
aTypeName = "TIME";
break;
case DataType::TIMESTAMP:
aTypeName = OUString("TIMESTAMP");
aTypeName = "TIMESTAMP";
break;
default:
SAL_WARN( "connectivity.drivers","missing type name");
aTypeName = OUString();
aTypeName = "";
}
// check if the column name already exists

View File

@ -45,7 +45,7 @@ DBG_NAME(ODbaseConnection)
ODbaseConnection::ODbaseConnection(ODriver* _pDriver) : OConnection(_pDriver)
{
DBG_CTOR(ODbaseConnection,NULL);
m_aFilenameExtension = OUString("dbf");
m_aFilenameExtension = "dbf";
}
//-----------------------------------------------------------------------------
ODbaseConnection::~ODbaseConnection()

View File

@ -81,8 +81,8 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBoolean(2);
aBoolean[0] = OUString("0");
aBoolean[1] = OUString("1");
aBoolean[0] = "0";
aBoolean[1] = "1";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("CharSet")

View File

@ -55,8 +55,8 @@ OUString SAL_CALL ODbaseResultSet::getImplementationName( ) throw ( RuntimeExce
Sequence< OUString > SAL_CALL ODbaseResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -43,7 +43,7 @@ void OEvoabCatalog::refreshTables()
{
TStringVector aVector;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("TABLE");
aTypes[0] = "TABLE";
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
OUString("%"),OUString("%"),aTypes);

View File

@ -92,7 +92,7 @@ Sequence< OUString > OEvoabDriver::getSupportedServiceNames_Static( ) throw (Ru
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
Sequence< OUString > aSNS( 1 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
//------------------------------------------------------------------

View File

@ -72,7 +72,7 @@ OUString SAL_CALL OEvoabResultSet::getImplementationName( ) throw ( RuntimeExce
Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(1);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
return aSupported;
}

View File

@ -50,7 +50,7 @@ ObjectType OEvoabTables::createObject(const OUString& aName)
OUString aSchema( "%" );
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("TABLE");
aTypes[0] = "TABLE";
OUString sEmpty;
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);

View File

@ -167,7 +167,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
// set fields to fetch
Sequence< OUString > aProps(1);
OUString* pProps = aProps.getArray();
pProps[ 0 ] = OUString("Title");
pProps[ 0 ] = "Title";
try
{
@ -394,7 +394,7 @@ Reference< XDynamicResultSet > OConnection::getDir() const
Reference<XDynamicResultSet> xContent;
Sequence< OUString > aProps(1);
OUString* pProps = aProps.getArray();
pProps[ 0 ] = OUString("Title");
pProps[ 0 ] = "Title";
try
{
Reference<XContentIdentifier> xIdent = getContent()->getIdentifier();
@ -437,7 +437,7 @@ void OConnection::throwUrlNotValid(const OUString & _rsUrl,const OUString & _rsM
"$URL$", _rsUrl
);
aError.SQLState = OUString("S1000");
aError.SQLState = "S1000";
aError.ErrorCode = 0;
aError.Context = static_cast< XConnection* >(this);
if (!_rsMessage.isEmpty())

View File

@ -104,25 +104,25 @@ ORowSetValue OOp_DayName::operate(const ORowSetValue& lhs) const
switch(eDayOfWeek)
{
case MONDAY:
sRet = OUString("Monday");
sRet = "Monday";
break;
case TUESDAY:
sRet = OUString("Tuesday");
sRet = "Tuesday";
break;
case WEDNESDAY:
sRet = OUString("Wednesday");
sRet = "Wednesday";
break;
case THURSDAY:
sRet = OUString("Thursday");
sRet = "Thursday";
break;
case FRIDAY:
sRet = OUString("Friday");
sRet = "Friday";
break;
case SATURDAY:
sRet = OUString("Saturday");
sRet = "Saturday";
break;
case SUNDAY:
sRet = OUString("Sunday");
sRet = "Sunday";
break;
default:
OSL_FAIL("Error in enum values for date");
@ -140,40 +140,40 @@ ORowSetValue OOp_MonthName::operate(const ORowSetValue& lhs) const
switch(aD.Month)
{
case 1:
sRet = OUString("January");
sRet = "January";
break;
case 2:
sRet = OUString("February");
sRet = "February";
break;
case 3:
sRet = OUString("March");
sRet = "March";
break;
case 4:
sRet = OUString("April");
sRet = "April";
break;
case 5:
sRet = OUString("May");
sRet = "May";
break;
case 6:
sRet = OUString("June");
sRet = "June";
break;
case 7:
sRet = OUString("July");
sRet = "July";
break;
case 8:
sRet = OUString("August");
sRet = "August";
break;
case 9:
sRet = OUString("September");
sRet = "September";
break;
case 10:
sRet = OUString("October");
sRet = "October";
break;
case 11:
sRet = OUString("November");
sRet = "November";
break;
case 12:
sRet = OUString("December");
sRet = "December";
break;
}
return sRet;

View File

@ -70,8 +70,8 @@ OUString OFileDriver::getImplementationName_Static( ) throw(RuntimeException)
Sequence< OUString > OFileDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[1] = OUString("com.sun.star.sdbcx.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
@ -122,8 +122,8 @@ Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const OUSt
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBoolean(2);
aBoolean[0] = OUString("0");
aBoolean[1] = OUString("1");
aBoolean[0] = "0";
aBoolean[1] = "1";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("CharSet")

View File

@ -105,8 +105,8 @@ rtl::OUString FirebirdDriver::getImplementationName_Static() throw(RuntimeExcept
Sequence< OUString > FirebirdDriver::getSupportedServiceNames_Static() throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = OUString("com.sun.star.sdbcx.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
aSNS[0] = "com.sun.star.sdbcx.Driver";
return aSNS;
}

View File

@ -807,8 +807,8 @@ Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames()
throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -85,8 +85,8 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBoolean(2);
aBoolean[0] = OUString("0");
aBoolean[1] = OUString("1");
aBoolean[0] = "0";
aBoolean[1] = "1";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("FieldDelimiter")

View File

@ -52,8 +52,8 @@ OUString SAL_CALL OFlatResultSet::getImplementationName( ) throw ( RuntimeExcep
Sequence< OUString > SAL_CALL OFlatResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -71,7 +71,7 @@ void OHCatalog::refreshTables()
void OHCatalog::refreshViews()
{
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("VIEW");
aTypes[0] = "VIEW";
sal_Bool bSupportsViews = sal_False;
try

View File

@ -55,7 +55,7 @@ OHSQLColumn::OHSQLColumn( sal_Bool _bCase)
// -------------------------------------------------------------------------
void OHSQLColumn::construct()
{
m_sAutoIncrement = OUString("IDENTITY");
m_sAutoIncrement = "IDENTITY";
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
}
// -----------------------------------------------------------------------------
@ -72,7 +72,7 @@ void OHSQLColumn::construct()
Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
aSupported[0] = OUString("com.sun.star.sdbcx.Column");
aSupported[0] = "com.sun.star.sdbcx.Column";
return aSupported;
}

View File

@ -510,8 +510,8 @@ namespace connectivity
Sequence< OUString > ODriverDelegator::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[1] = OUString("com.sun.star.sdbcx.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
//------------------------------------------------------------------
@ -829,7 +829,7 @@ namespace connectivity
//..............................................................
OUString lcl_getSystemLocale( const Reference< XComponentContext >& _rxContext )
{
OUString sLocaleString = OUString( "en-US" );
OUString sLocaleString = "en-US";
try
{
//.........................................................

View File

@ -63,7 +63,7 @@ OUString java_sql_Driver::getImplementationName_Static( ) throw(RuntimeExceptio
Sequence< OUString > java_sql_Driver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
//------------------------------------------------------------------
@ -136,8 +136,8 @@ Sequence< DriverPropertyInfo > SAL_CALL java_sql_Driver::getPropertyInfo( const
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBooleanValues(2);
aBooleanValues[0] = OUString( "false" );
aBooleanValues[1] = OUString( "true" );
aBooleanValues[0] = "false";
aBooleanValues[1] = "true";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("JavaDriverClass")

View File

@ -43,7 +43,7 @@ void KabCatalog::refreshTables()
{
TStringVector aVector;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(
Any(),
OUString("%"),

View File

@ -233,7 +233,7 @@ void KabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
{
SQLException aError;
aError.Message = _rMessage;
aError.SQLState = OUString( "S1000" );
aError.SQLState = "S1000";
aError.ErrorCode = 0;
throw aError;
}
@ -249,7 +249,7 @@ void KabImplModule::impl_throwKdeTooNewException()
"$major$",OUString::number(MIN_KDE_VERSION_MAJOR),
"$minor$",OUString::number(MIN_KDE_VERSION_MINOR)
);
aError.SQLState = OUString( "S1000" );
aError.SQLState = "S1000";
aError.ErrorCode = 0;
SQLContext aDetails;
@ -351,7 +351,7 @@ Sequence< OUString > KabDriver::getSupportedServiceNames_Static( ) throw (Runti
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
Sequence< OUString > aSNS( 1 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}

View File

@ -38,11 +38,11 @@ using namespace ::com::sun::star::lang;
sdbcx::ObjectType KabTables::createObject(const OUString& _rName)
{
OUString aName,aSchema;
aSchema = OUString("%");
aSchema = "%";
aName = _rName;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
OUString sEmpty;
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(), aSchema, aName, aTypes);

View File

@ -43,7 +43,7 @@ void MacabCatalog::refreshTables()
{
TStringVector aVector;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(
Any(),
OUString("%"),
@ -84,7 +84,7 @@ void MacabCatalog::refreshUsers()
// -------------------------------------------------------------------------
const OUString& MacabCatalog::getDot()
{
static const OUString sDot = OUString(".");
static const OUString sDot = ".";
return sDot;
}
// -----------------------------------------------------------------------------

View File

@ -141,7 +141,7 @@ void MacabImplModule::impl_throwGenericSQLException( const OUString& _rMessage )
{
SQLException aError;
aError.Message = _rMessage;
aError.SQLState = OUString( "S1000" );
aError.SQLState = "S1000";
aError.ErrorCode = 0;
throw aError;
}
@ -219,7 +219,7 @@ Sequence< OUString > MacabDriver::getSupportedServiceNames_Static( ) throw (Run
// which service is supported
// for more information @see com.sun.star.sdbc.Driver
Sequence< OUString > aSNS( 1 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}

View File

@ -38,11 +38,11 @@ using namespace ::com::sun::star::lang;
sdbcx::ObjectType MacabTables::createObject(const OUString& _rName)
{
OUString aName,aSchema;
aSchema = OUString("%");
aSchema = "%";
aName = _rName;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
OUString sEmpty;
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(), aSchema, aName, aTypes);

View File

@ -51,7 +51,7 @@ void OCatalog::refreshTables()
{
TStringVector aVector;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
OUString("%"),OUString("%"),aTypes);

View File

@ -75,7 +75,7 @@ IniParser::IniParser(OUString const & rIniName) throw(com::sun::star::io::IOExce
sectionName = OStringToOUString(
line.copy(nIndexStart + 1,nIndexEnd - nIndexStart -1).trim(), RTL_TEXTENCODING_ASCII_US );
if (sectionName.isEmpty())
sectionName = OUString("no name section");
sectionName = "no name section";
ini_Section *aSection = &mAllSection[sectionName];
aSection->sName = sectionName;

View File

@ -71,8 +71,8 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}
@ -734,11 +734,11 @@ void OResultSet::parseParameter( const OSQLParseNode* pNode, OUString& rMatchStr
OSQLParseNode *pMark = pNode->getChild(0);
// Initialize to empty string
rMatchString = OUString("");
rMatchString = "";
OUString aParameterName;
if (SQL_ISPUNCTUATION(pMark,"?")) {
aParameterName = OUString("?");
aParameterName = "?";
}
else if (SQL_ISPUNCTUATION(pMark,":")) {
aParameterName = pNode->getChild(1)->getTokenValue();
@ -940,7 +940,7 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
// String containing only a '%' and nothing else
op = MQueryOp::Exists;
// Will be ignored for Exists case, but clear anyway.
matchString = OUString("");
matchString = "";
}
else if ( matchString.indexOf ( WILDCARD ) == -1 &&
matchString.indexOf ( MATCHCHAR ) == -1 )
@ -1369,7 +1369,7 @@ void OResultSet::setBoundedColumns(const OValueRow& _rRow,
if (xTableColumn.is())
xTableColumn->getPropertyValue(sName) >>= sTableColumnName;
else
sTableColumnName = OUString();
sTableColumnName = "";
// look if we have such a select column
// TODO: would like to have a O(log n) search here ...

View File

@ -47,11 +47,11 @@ using namespace dbtools;
sdbcx::ObjectType OTables::createObject(const OUString& _rName)
{
OUString aName,aSchema;
aSchema = OUString("%");
aSchema = "%";
aName = _rName;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);

View File

@ -51,7 +51,7 @@ void OCatalog::refreshTables()
{
TStringVector aVector;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
OUString("%"),OUString("%"),aTypes);

View File

@ -70,8 +70,8 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}
@ -716,11 +716,11 @@ void OResultSet::parseParameter( const OSQLParseNode* pNode, OUString& rMatchStr
OSQLParseNode *pMark = pNode->getChild(0);
// Initialize to empty string
rMatchString = OUString("");
rMatchString = "";
OUString aParameterName;
if (SQL_ISPUNCTUATION(pMark,"?")) {
aParameterName = OUString("?");
aParameterName = "?";
}
else if (SQL_ISPUNCTUATION(pMark,":")) {
aParameterName = pNode->getChild(1)->getTokenValue();
@ -922,7 +922,7 @@ void OResultSet::analyseWhereClause( const OSQLParseNode* parseT
// String containing only a '%' and nothing else
op = MQueryOp::Exists;
// Will be ignored for Exists case, but clear anyway.
matchString = OUString("");
matchString = "";
}
else if ( matchString.indexOf ( WILDCARD ) == -1 &&
matchString.indexOf ( MATCHCHAR ) == -1 )
@ -1088,9 +1088,9 @@ void OResultSet::fillRowData()
OSL_ENSURE(m_pStatement, "Cannot determine Parent Statement");
OUString aStr;
if (xConnection->isLDAP())
aStr = OUString("PrimaryEmail");
aStr = "PrimaryEmail";
else
aStr = OUString("card:nsIAbCard");
aStr = "card:nsIAbCard";
eVector.push_back( new MQueryExpressionString(aStr, MQueryOp::Exists) );
queryExpression.setExpressions( eVector );
@ -1370,7 +1370,7 @@ void OResultSet::setBoundedColumns(const OValueRow& _rRow,
if (xTableColumn.is())
xTableColumn->getPropertyValue(sName) >>= sTableColumnName;
else
sTableColumnName = OUString();
sTableColumnName = "";
// look if we have such a select column
// TODO: would like to have a O(log n) search here ...

View File

@ -47,11 +47,11 @@ using namespace dbtools;
sdbcx::ObjectType OTables::createObject(const OUString& _rName)
{
OUString aName,aSchema;
aSchema = OUString("%");
aSchema = "%";
aName = _rName;
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("%");
aTypes[0] = "%";
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),aSchema,aName,aTypes);

View File

@ -82,7 +82,7 @@ IniParser::IniParser(OUString const & rIniName) throw(com::sun::star::io::IOExce
sectionName = OStringToOUString(
line.copy(nIndexStart + 1,nIndexEnd - nIndexStart -1).trim(), RTL_TEXTENCODING_ASCII_US );
if (sectionName.isEmpty())
sectionName = OUString("no name section");
sectionName = "no name section";
ini_Section *aSection = &mAllSection[sectionName];
aSection->sName = sectionName;

View File

@ -440,7 +440,7 @@ nsresult getTableStringsProxied(const sal_Char* sAbURI, sal_Int32 *nDirectoryTyp
// Insert table into map
if ( aTableName.isEmpty() )
aTableName = OUString("AddressBook");
aTableName = "AddressBook";
OSL_TRACE("TableName = >%s<", OUtoCStr( aTableName ) );
@ -624,7 +624,7 @@ sal_Bool MDatabaseMetaDataHelper::getTables( OConnection* _pCon,
::std::vector< OUString > tables;
::std::vector< OUString > tabletypes;
OUString matchAny = OUString("%");
OUString matchAny = "%";
if ( !getTableStrings( _pCon, tables,tabletypes ) )
return sal_False;
@ -643,7 +643,7 @@ sal_Bool MDatabaseMetaDataHelper::getTables( OConnection* _pCon,
0 != ::comphelper::findValue( types, aTableType, sal_True ).getLength() ||
0 != ::comphelper::findValue( types, matchAny, sal_True ).getLength())) {
if ( aTableName.isEmpty() ) {
aTableName = OUString("AddressBook");
aTableName = "AddressBook";
}
OSL_TRACE( "TableName = %s ; TableType = %s", OUtoCStr(aTableName), OUtoCStr(aTableType) );

View File

@ -74,7 +74,7 @@ void OMySQLCatalog::refreshTables()
void OMySQLCatalog::refreshViews()
{
Sequence< OUString > aTypes(1);
aTypes[0] = OUString("VIEW");
aTypes[0] = "VIEW";
// let's simply assume the server is new enough to support views. Current drivers
// as of this writing might not return the proper information in getTableTypes, so

View File

@ -55,7 +55,7 @@ OMySQLColumn::OMySQLColumn( sal_Bool _bCase)
// -------------------------------------------------------------------------
void OMySQLColumn::construct()
{
m_sAutoIncrement = OUString("auto_increment");
m_sAutoIncrement = "auto_increment";
registerProperty(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_AUTOINCREMENTCREATION),PROPERTY_ID_AUTOINCREMENTCREATION,0,&m_sAutoIncrement, ::getCppuType(&m_sAutoIncrement));
}
// -----------------------------------------------------------------------------
@ -72,7 +72,7 @@ void OMySQLColumn::construct()
Sequence< OUString > SAL_CALL OMySQLColumn::getSupportedServiceNames( ) throw(RuntimeException)
{
Sequence< OUString > aSupported(1);
aSupported[0] = OUString("com.sun.star.sdbcx.Column");
aSupported[0] = "com.sun.star.sdbcx.Column";
return aSupported;
}

View File

@ -137,17 +137,12 @@ namespace connectivity
{
OUString sNewUrl = _sUrl.copy(11);
if ( isOdbcUrl( _sUrl ) )
sNewUrl = OUString("sdbc:") + sNewUrl;
sNewUrl = "sdbc:" + sNewUrl;
else if ( isNativeUrl( _sUrl ) )
sNewUrl = OUString("sdbc:") + sNewUrl;
sNewUrl = "sdbc:" + sNewUrl;
else
{
sNewUrl = sNewUrl.copy(5);
OUString sTempUrl = OUString("jdbc:mysql://");
sTempUrl += sNewUrl;
sNewUrl = sTempUrl;
sNewUrl = "jdbc:mysql://" + sNewUrl.copy(5);
}
return sNewUrl;
}
@ -340,8 +335,8 @@ namespace connectivity
return Sequence< DriverPropertyInfo >();
Sequence< OUString > aBoolean(2);
aBoolean[0] = OUString("0");
aBoolean[1] = OUString("1");
aBoolean[0] = "0";
aBoolean[1] = "1";
aDriverInfo.push_back(DriverPropertyInfo(
@ -478,8 +473,8 @@ namespace connectivity
Sequence< OUString > ODriverDelegator::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 2 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[1] = OUString("com.sun.star.sdbcx.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
aSNS[1] = "com.sun.star.sdbcx.Driver";
return aSNS;
}
//------------------------------------------------------------------

View File

@ -91,16 +91,16 @@ sal_Bool LoadLibrary_ODBC3(OUString &_rPath)
if (bLoaded)
return sal_True;
#ifdef WNT
_rPath = OUString("ODBC32.DLL");
_rPath = "ODBC32.DLL";
#endif
#ifdef UNX
#ifdef MACOSX
_rPath = OUString("libiodbc.dylib");
_rPath = "libiodbc.dylib";
#else
_rPath = OUString("libodbc.so.1");
_rPath = "libodbc.so.1";
pODBCso = osl_loadModule( _rPath.pData,SAL_LOADMODULE_NOW );
if ( !pODBCso )
_rPath = OUString("libodbc.so");
_rPath = "libodbc.so";
#endif /* MACOSX */
#endif

View File

@ -51,7 +51,7 @@ ODatabaseMetaData::ODatabaseMetaData(const SQLHANDLE _pHandle,OConnection* _pCon
{
m_bUseCatalog = !(usesLocalFiles() || usesLocalFilePerTable());
OUString sVersion = getDriverVersion();
m_bOdbc3 = sVersion != OUString("02.50") && sVersion != OUString("02.00");
m_bOdbc3 = sVersion != "02.50" && sVersion != "02.00";
}
catch(SQLException& )
{ // doesn't matter here
@ -1188,8 +1188,7 @@ OUString SAL_CALL ODatabaseMetaData::getURL( ) throw(SQLException, RuntimeExcep
OUString aValue = m_pConnection->getURL();
if ( aValue.isEmpty() )
{
aValue = OUString("sdbc:odbc:");
aValue += getURLImpl();
aValue = "sdbc:odbc:" + getURLImpl();
}
return aValue;
}

View File

@ -68,7 +68,7 @@ OUString ODBCDriver::getImplementationName_Static( ) throw(RuntimeException)
Sequence< OUString > ODBCDriver::getSupportedServiceNames_Static( ) throw (RuntimeException)
{
Sequence< OUString > aSNS( 1 );
aSNS[0] = OUString("com.sun.star.sdbc.Driver");
aSNS[0] = "com.sun.star.sdbc.Driver";
return aSNS;
}
@ -122,8 +122,8 @@ Sequence< DriverPropertyInfo > SAL_CALL ODBCDriver::getPropertyInfo( const OUStr
::std::vector< DriverPropertyInfo > aDriverInfo;
Sequence< OUString > aBooleanValues(2);
aBooleanValues[0] = OUString( "false" );
aBooleanValues[1] = OUString( "true" );
aBooleanValues[0] = "false";
aBooleanValues[1] = "true";
aDriverInfo.push_back(DriverPropertyInfo(
OUString("CharSet")

View File

@ -75,8 +75,8 @@ OUString SAL_CALL OResultSet::getImplementationName( ) throw ( RuntimeException
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames( ) throw( RuntimeException)
{
Sequence< OUString > aSupported(2);
aSupported[0] = OUString("com.sun.star.sdbc.ResultSet");
aSupported[1] = OUString("com.sun.star.sdbcx.ResultSet");
aSupported[0] = "com.sun.star.sdbc.ResultSet";
aSupported[1] = "com.sun.star.sdbcx.ResultSet";
return aSupported;
}

View File

@ -148,7 +148,7 @@ static sal_Int32 readLogLevelFromConfiguration()
OUString fileName;
osl_getModuleURLFromAddress(
(void*) readLogLevelFromConfiguration, (rtl_uString **) &fileName );
fileName = OUString( fileName.getStr(), fileName.lastIndexOf( '/' )+1 );
fileName = fileName.copy( fileName.lastIndexOf( '/' )+1 );
fileName += "postgresql-sdbc.ini";
rtl::Bootstrap bootstrapHandle( fileName );
@ -558,7 +558,7 @@ void Connection::initialize( const Sequence< Any >& aArguments )
free(err);
}
else
errorMessage = OUString("#no error message#");
errorMessage = "#no error message#";
OUStringBuffer buf( 128 );
buf.appendAscii( "Error in database URL '" );
buf.append( url );

View File

@ -266,7 +266,7 @@ void OOrderColumn::construct()
::com::sun::star::uno::Sequence< OUString > SAL_CALL OOrderColumn::getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException)
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
aSupported[0] = OUString("com.sun.star.sdb.OrderColumn");
aSupported[0] = "com.sun.star.sdb.OrderColumn";
return aSupported;
}

View File

@ -258,7 +258,7 @@ namespace
{
_out_rString = _rxRow->getString( _nColumnIndex );
if ( _rxRow->wasNull() )
_out_rString= OUString();
_out_rString = "";
}
//.........................................................................
@ -280,7 +280,7 @@ namespace
if ( _rxDBMeta.is() )
{
sComposedName = OUString();
sComposedName = "";
Reference< XResultSet> xRes = _rxDBMeta->getTables(
!_rCatalog.isEmpty() ? makeAny( _rCatalog ) : Any(), !_rSchema.isEmpty() ? _rSchema : s_sWildcard, _rTableName, sTableTypes );
@ -512,7 +512,7 @@ void OSQLParseTreeIterator::getQualified_join( OSQLTables& _rTables, const OSQLP
OSL_PRECOND( SQL_ISRULE( pTableRef, cross_union ) || SQL_ISRULE( pTableRef, qualified_join ) ,
"OSQLParseTreeIterator::getQualified_join: illegal node!" );
aTableRange = OUString();
aTableRange = "";
const OSQLParseNode* pNode = getTableNode(_rTables,pTableRef->getChild(0),aTableRange);
if ( isTableNode( pNode ) )
@ -632,7 +632,7 @@ void OSQLParseTreeIterator::getSelect_statement(OSQLTables& _rTables,const OSQLP
OUString aTableRange;
for (sal_uInt32 i = 0; i < pTableRefCommalist->count(); i++)
{ // Process FROM clause
aTableRange = OUString();
aTableRange = "";
const OSQLParseNode* pTableListElement = pTableRefCommalist->getChild(i);
if ( isTableNode( pTableListElement ) )
@ -725,7 +725,7 @@ namespace
OUString& _out_rColumnName, OUString& _out_rTableRange,
const OSQLColumns* _pSelectColumns, OUString& _out_rColumnAliasIfPresent )
{
_out_rColumnName = _out_rTableRange = _out_rColumnAliasIfPresent = OUString();
_out_rColumnName = _out_rTableRange = _out_rColumnAliasIfPresent = "";
if ( SQL_ISRULE( _pColumnRef, column_ref ) )
{
if( _pColumnRef->count() > 1 )
@ -911,7 +911,7 @@ void OSQLParseTreeIterator::traverseCreateColumns(const OSQLParseNode* pSelectNo
}
else if(pDatatype && pDatatype->getNodeType() == SQL_NODE_KEYWORD)
{
aTypeName = OUString("VARCHAR");
aTypeName = "VARCHAR";
}
if (!aTypeName.isEmpty())
@ -1102,8 +1102,8 @@ void OSQLParseTreeIterator::traverseByColumnNames(const OSQLParseNode* pSelectNo
pColumnRef = pColumnRef->getChild(0);
}
OSL_ENSURE(pColumnRef != NULL,"OSQLParseTreeIterator: error in parse tree!");
aTableRange = OUString();
sColumnName = OUString();
aTableRange = "";
sColumnName = "";
if ( SQL_ISRULE(pColumnRef,column_ref) )
{
// Column name (and TableRange):

View File

@ -373,7 +373,7 @@ bool OSQLParseNode::parseNodeToExecutableStatement( OUString& _out_rString, cons
aParseParam.pParser = &_rParser;
_out_rString = OUString();
_out_rString = "";
OUStringBuffer sBuffer;
bool bSuccess = false;
try
@ -794,7 +794,7 @@ sal_Bool OSQLParseNode::getTableComponents(const OSQLParseNode* _pTableNode,
const OSQLParseNode* pTableNode = _pTableNode;
// clear the parameter given
_rCatalog = Any();
_rSchema = _rTable = OUString();
_rSchema = _rTable = "";
// see rule catalog_name: in sqlbison.y
if (SQL_ISRULE(pTableNode,catalog_name))
{
@ -1242,8 +1242,8 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
if ( xFormats.is() )
{
::com::sun::star::lang::Locale aLocale;
aLocale.Language = OUString("en");
aLocale.Country = OUString("US");
aLocale.Language = "en";
aLocale.Country = "US";
OUString sFormat("YYYY-MM-DD");
m_nDateFormatKey = xFormats->queryKey(sFormat,aLocale,sal_False);
if ( m_nDateFormatKey == sal_Int32(-1) )
@ -1286,12 +1286,12 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
SQLyylval.pParseNode = NULL;
// SQLyypvt = NULL;
m_pParseTree = NULL;
m_sErrorMessage= OUString();
m_sErrorMessage = "";
// Start the parser
if (SQLyyparse() != 0)
{
m_sFieldName= OUString();
m_sFieldName = "";
m_xField.clear();
m_xFormatter.clear();
m_nFormatKey = 0;
@ -1312,7 +1312,7 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
{
(*s_pGarbageCollector)->clear();
m_sFieldName= OUString();
m_sFieldName = "";
m_xField.clear();
m_xFormatter.clear();
m_nFormatKey = 0;
@ -1754,14 +1754,14 @@ sal_Bool OSQLParseNode::addDateValue(OUStringBuffer& rString, const SQLParseNode
{
if (rParam.aMetaData.shouldEscapeDateTime())
{
suQuote = OUString("#");
suQuote = "#";
}
}
else
{
if (rParam.aMetaData.shouldEscapeDateTime())
{
// suQuote = OUString("'");
// suQuote = "'";
return sal_False;
}
}

View File

@ -44,9 +44,9 @@ OUString SAL_CALL OColumn::getImplementationName( ) throw (::com::sun::star::un
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.ColumnDescription");
aSupported[0] = "com.sun.star.sdbcx.ColumnDescription";
else
aSupported[0] = OUString("com.sun.star.sdbcx.Column");
aSupported[0] = "com.sun.star.sdbcx.Column";
return aSupported;
}

View File

@ -49,9 +49,9 @@ OUString SAL_CALL OIndex::getImplementationName( ) throw (::com::sun::star::uno
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.IndexDescriptor");
aSupported[0] = "com.sun.star.sdbcx.IndexDescriptor";
else
aSupported[0] = OUString("com.sun.star.sdbcx.Index");
aSupported[0] = "com.sun.star.sdbcx.Index";
return aSupported;
}

View File

@ -37,9 +37,9 @@ OUString SAL_CALL OIndexColumn::getImplementationName( ) throw (::com::sun::sta
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.IndexDescription");
aSupported[0] = "com.sun.star.sdbcx.IndexDescription";
else
aSupported[0] = OUString("com.sun.star.sdbcx.Index");
aSupported[0] = "com.sun.star.sdbcx.Index";
return aSupported;
}

View File

@ -47,9 +47,9 @@ OUString SAL_CALL OKey::getImplementationName( ) throw (::com::sun::star::uno::
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.KeyDescription");
aSupported[0] = "com.sun.star.sdbcx.KeyDescription";
else
aSupported[0] = OUString("com.sun.star.sdbcx.Key");
aSupported[0] = "com.sun.star.sdbcx.Key";
return aSupported;
}

View File

@ -38,9 +38,9 @@ OUString SAL_CALL OKeyColumn::getImplementationName( ) throw (::com::sun::star:
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.KeyColumnDescription");
aSupported[0] = "com.sun.star.sdbcx.KeyColumnDescription";
else
aSupported[0] = OUString("com.sun.star.sdbcx.KeyColumn");
aSupported[0] = "com.sun.star.sdbcx.KeyColumn";
return aSupported;
}

View File

@ -52,9 +52,9 @@ OUString SAL_CALL OTable::getImplementationName( ) throw (::com::sun::star::uno
{
::com::sun::star::uno::Sequence< OUString > aSupported(1);
if(isNew())
aSupported[0] = OUString("com.sun.star.sdbcx.TableDescriptor");
aSupported[0] = "com.sun.star.sdbcx.TableDescriptor";
else
aSupported[0] = OUString("com.sun.star.sdbcx.Table");
aSupported[0] = "com.sun.star.sdbcx.Table";
return aSupported;
}

View File

@ -117,7 +117,7 @@ public:
sectionName = OStringToOUString(
line.copy(nIndexStart + 1,nIndexEnd - nIndexStart -1).trim(), RTL_TEXTENCODING_ASCII_US );
if (!sectionName.getLength())
sectionName = OUString("no name section");
sectionName = "no name section";
ini_Section *aSection = &mAllSection[sectionName];
aSection->sName = sectionName;

View File

@ -387,9 +387,9 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
char hostname[40],basedn[40];
scanf("%s %s",hostname,basedn);
aValue.realloc(2);
aValue[0].Name = OUString("HostName");
aValue[0].Name = "HostName";
aValue[0].Value <<= OUString::createFromAscii(hostname);
aValue[1].Name = OUString("BaseDN");
aValue[1].Name = "BaseDN";
aValue[1].Value <<= OUString::createFromAscii(basedn);
break;
case 3:
@ -399,9 +399,9 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
//Default LDAP AB
url=OUString("sdbc:address:ldap://");
aValue.realloc(2);
aValue[0].Name = OUString("HostName");
aValue[0].Name = "HostName";
aValue[0].Value <<= OUString("sun-ds");
aValue[1].Name = OUString("BaseDN");
aValue[1].Name = "BaseDN";
aValue[1].Value <<= OUString("dc=sun,dc=com");
break;
default:

View File

@ -284,9 +284,9 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
case testLDAP:
url=OUString("sdbc:address:ldap://");
aValue.realloc(2);
aValue[0].Name = OUString("HostName");
aValue[0].Name = "HostName";
aValue[0].Value <<= OUString("sun-ds");
aValue[1].Name = OUString("BaseDN");
aValue[1].Name = "BaseDN";
aValue[1].Value <<= OUString("dc=sun,dc=com");
break;
case testMozilla: