loplugin:ostr in connectivity
Change-Id: Ice633719b05240ab5a052b62ca4eafe89f97e12f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167238 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
b667543a2a
commit
4d97239b7a
181 changed files with 1342 additions and 1326 deletions
|
@ -320,37 +320,37 @@ void FValueTest::test_bool_creation()
|
|||
ORowSetValue vFalse(false);
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("1"));
|
||||
ORowSetValue v(u"1"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vTrue));
|
||||
}
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("0"));
|
||||
ORowSetValue v(u"0"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vFalse));
|
||||
}
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("true"));
|
||||
ORowSetValue v(u"true"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vTrue));
|
||||
}
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("tRuE"));
|
||||
ORowSetValue v(u"tRuE"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vTrue));
|
||||
}
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("false"));
|
||||
ORowSetValue v(u"false"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vFalse));
|
||||
}
|
||||
|
||||
{
|
||||
ORowSetValue v(OUString("0"));
|
||||
ORowSetValue v(u"0"_ustr);
|
||||
v.setTypeKind(DataType::BOOLEAN);
|
||||
CPPUNIT_ASSERT_MESSAGE("ORowSetValue bool creation from string didn't work", bool(v == vFalse));
|
||||
}
|
||||
|
|
|
@ -60,30 +60,30 @@ SharedResourcesTest::SharedResourcesTest()
|
|||
|
||||
void SharedResourcesTest::testGetSourceString()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("UnitTest"), m_aResource.getResourceString(TEST_SOURCE_STRING));
|
||||
CPPUNIT_ASSERT_EQUAL(u"UnitTest"_ustr, m_aResource.getResourceString(TEST_SOURCE_STRING));
|
||||
}
|
||||
|
||||
void SharedResourcesTest::testGetSourceStringWithSubstitutionOne()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("One substitution UnitTest"),
|
||||
CPPUNIT_ASSERT_EQUAL(u"One substitution UnitTest"_ustr,
|
||||
m_aResource.getResourceStringWithSubstitution(TEST_SOURCE_ONE_SUBSTITUTION,
|
||||
"$sub$", "UnitTest"));
|
||||
"$sub$", u"UnitTest"_ustr));
|
||||
}
|
||||
|
||||
void SharedResourcesTest::testGetSourceStringWithSubstitutionTwo()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("Two substitution UnitTest1 UnitTest2"),
|
||||
m_aResource.getResourceStringWithSubstitution(TEST_SOURCE_TWO_SUBSTITUTION,
|
||||
"$sub0$", "UnitTest1",
|
||||
"$sub1$", "UnitTest2"));
|
||||
CPPUNIT_ASSERT_EQUAL(u"Two substitution UnitTest1 UnitTest2"_ustr,
|
||||
m_aResource.getResourceStringWithSubstitution(
|
||||
TEST_SOURCE_TWO_SUBSTITUTION, "$sub0$", u"UnitTest1"_ustr, "$sub1$",
|
||||
u"UnitTest2"_ustr));
|
||||
}
|
||||
|
||||
void SharedResourcesTest::testGetSourceStringWithSubstitutionThree()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("Three substitution UnitTest1 UnitTest2 UnitTest3"),
|
||||
CPPUNIT_ASSERT_EQUAL(u"Three substitution UnitTest1 UnitTest2 UnitTest3"_ustr,
|
||||
m_aResource.getResourceStringWithSubstitution(
|
||||
TEST_SOURCE_THREE_SUBSTITUTION, "$sub0$", "UnitTest1", "$sub1$",
|
||||
"UnitTest2", "$sub2$", "UnitTest3"));
|
||||
TEST_SOURCE_THREE_SUBSTITUTION, "$sub0$", u"UnitTest1"_ustr, "$sub1$",
|
||||
u"UnitTest2"_ustr, "$sub2$", u"UnitTest3"_ustr));
|
||||
}
|
||||
|
||||
void SharedResourcesTest::testGetSourceStringWithSubstitutionVector()
|
||||
|
@ -92,7 +92,7 @@ void SharedResourcesTest::testGetSourceStringWithSubstitutionVector()
|
|||
{ "$sub1$", "vector1" },
|
||||
{ "$sub2$", "vector2" } };
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(OUString("Three substitution vector0 vector1 vector2"),
|
||||
CPPUNIT_ASSERT_EQUAL(u"Three substitution vector0 vector1 vector2"_ustr,
|
||||
m_aResource.getResourceStringWithSubstitution(
|
||||
TEST_SOURCE_THREE_SUBSTITUTION, aStringToSubstitutes));
|
||||
}
|
||||
|
|
|
@ -50,12 +50,12 @@ css::uno::Reference< css::io::XInputStream > SAL_CALL BlobHelper::getBinaryStrea
|
|||
|
||||
::sal_Int64 SAL_CALL BlobHelper::position( const css::uno::Sequence< ::sal_Int8 >& /*pattern*/, ::sal_Int64 /*start*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XBlob::position", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XBlob::position"_ustr, *this );
|
||||
}
|
||||
|
||||
::sal_Int64 SAL_CALL BlobHelper::positionOfBlob( const css::uno::Reference< css::sdbc::XBlob >& /*pattern*/, ::sal_Int64 /*start*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XBlob::positionOfBlob", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XBlob::positionOfBlob"_ustr, *this );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -125,7 +125,7 @@ namespace connectivity
|
|||
Any uaJVM = xVM->getJavaVM( processID );
|
||||
sal_Int64 nTemp;
|
||||
if (!(uaJVM >>= nTemp)) {
|
||||
throw Exception("cannot get result for getJavaVM", nullptr); // -5
|
||||
throw Exception(u"cannot get result for getJavaVM"_ustr, nullptr); // -5
|
||||
}
|
||||
aRet = reinterpret_cast<jvmaccess::VirtualMachine *>(
|
||||
static_cast<sal_IntPtr>(nTemp));
|
||||
|
|
|
@ -105,7 +105,7 @@ OConnectionWrapper::~OConnectionWrapper()
|
|||
|
||||
OUString SAL_CALL OConnectionWrapper::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbc.drivers.OConnectionWrapper";
|
||||
return u"com.sun.star.sdbc.drivers.OConnectionWrapper"_ustr;
|
||||
}
|
||||
|
||||
|
||||
|
@ -117,7 +117,7 @@ css::uno::Sequence< OUString > SAL_CALL OConnectionWrapper::getSupportedServiceN
|
|||
aSupported = m_xServiceInfo->getSupportedServiceNames();
|
||||
|
||||
// append our own service, if necessary
|
||||
OUString sConnectionService( "com.sun.star.sdbc.Connection" );
|
||||
OUString sConnectionService( u"com.sun.star.sdbc.Connection"_ustr );
|
||||
if ( ::comphelper::findValue( aSupported, sConnectionService ) == -1 )
|
||||
{
|
||||
sal_Int32 nLen = aSupported.getLength();
|
||||
|
|
|
@ -203,7 +203,7 @@ Date DBTypeConversion::getNULLDate(const Reference< XNumberFormatsSupplier > &xS
|
|||
{
|
||||
// get the null date
|
||||
Date aDate;
|
||||
xSupplier->getNumberFormatSettings()->getPropertyValue("NullDate") >>= aDate;
|
||||
xSupplier->getNumberFormatSettings()->getPropertyValue(u"NullDate"_ustr) >>= aDate;
|
||||
return aDate;
|
||||
}
|
||||
catch ( const Exception& )
|
||||
|
@ -243,7 +243,7 @@ void DBTypeConversion::setValue(const Reference<XColumnUpdate>& xVariant,
|
|||
if (xFormatProps.is())
|
||||
{
|
||||
css::lang::Locale loc;
|
||||
if (xFormatProps->getPropertyValue("Locale") >>= loc)
|
||||
if (xFormatProps->getPropertyValue(u"Locale"_ustr) >>= loc)
|
||||
nStandardKey = xFormatTypes->getStandardIndex(loc);
|
||||
else
|
||||
{
|
||||
|
@ -469,7 +469,7 @@ OUString DBTypeConversion::getFormattedValue(const Reference<XColumn>& xVariant,
|
|||
{
|
||||
Reference< XNumberFormatsSupplier > xSupplier( xFormatter->getNumberFormatsSupplier(), UNO_SET_THROW );
|
||||
Reference< XPropertySet > xFormatterSettings( xSupplier->getNumberFormatSettings(), UNO_SET_THROW );
|
||||
OSL_VERIFY( xFormatterSettings->getPropertyValue("NullDate") >>= aFormatterNullDate );
|
||||
OSL_VERIFY( xFormatterSettings->getPropertyValue(u"NullDate"_ustr) >>= aFormatterNullDate );
|
||||
}
|
||||
catch( const Exception& )
|
||||
{
|
||||
|
|
|
@ -76,9 +76,9 @@ namespace
|
|||
if ( !sDriverTypeDisplayName.isEmpty() )
|
||||
_rInstalledDriver.sDriverTypeDisplayName = sDriverTypeDisplayName;
|
||||
|
||||
lcl_fillValues(aURLPatternNode,"Properties",_rInstalledDriver.aProperties);
|
||||
lcl_fillValues(aURLPatternNode,"Features",_rInstalledDriver.aFeatures);
|
||||
lcl_fillValues(aURLPatternNode,"MetaData",_rInstalledDriver.aMetaData);
|
||||
lcl_fillValues(aURLPatternNode,u"Properties"_ustr,_rInstalledDriver.aProperties);
|
||||
lcl_fillValues(aURLPatternNode,u"Features"_ustr,_rInstalledDriver.aFeatures);
|
||||
lcl_fillValues(aURLPatternNode,u"MetaData"_ustr,_rInstalledDriver.aMetaData);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,7 @@ const TInstalledDrivers& DriversConfigImpl::getInstalledDrivers(const uno::Refer
|
|||
if ( !m_aInstalled.isValid() )
|
||||
{
|
||||
m_aInstalled = ::utl::OConfigurationTreeRoot::createWithComponentContext(_rxORB,
|
||||
"org.openoffice.Office.DataAccess.Drivers/Installed", -1, ::utl::OConfigurationTreeRoot::CM_READONLY);
|
||||
u"org.openoffice.Office.DataAccess.Drivers/Installed"_ustr, -1, ::utl::OConfigurationTreeRoot::CM_READONLY);
|
||||
}
|
||||
|
||||
if ( m_aInstalled.isValid() )
|
||||
|
|
|
@ -657,55 +657,55 @@ ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getBasicValue()
|
|||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getSelectValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("SELECT"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"SELECT"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getInsertValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("INSERT"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"INSERT"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getDeleteValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("DELETE"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"DELETE"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getUpdateValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("UPDATE"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"UPDATE"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getCreateValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("CREATE"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"CREATE"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getReadValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("READ"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"READ"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getAlterValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("ALTER"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"ALTER"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getDropValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("DROP"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"DROP"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
ORowSetValueDecoratorRef const & ODatabaseMetaDataResultSet::getQuoteValue()
|
||||
{
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(OUString("'"));
|
||||
static ORowSetValueDecoratorRef aValueRef = new ORowSetValueDecorator(u"'"_ustr);
|
||||
return aValueRef;
|
||||
}
|
||||
|
||||
|
@ -805,7 +805,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaDataResultSet::getImplementationName( )
|
||||
{
|
||||
return "org.openoffice.comp.helper.DatabaseMetaDataResultSet";
|
||||
return u"org.openoffice.comp.helper.DatabaseMetaDataResultSet"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ODatabaseMetaDataResultSet::supportsService( const OUString& _rServiceName )
|
||||
|
@ -815,7 +815,7 @@ void SAL_CALL ODatabaseMetaDataResultSet::initialize( const Sequence< Any >& _aA
|
|||
|
||||
Sequence< OUString > SAL_CALL ODatabaseMetaDataResultSet::getSupportedServiceNames( )
|
||||
{
|
||||
return Sequence<OUString>{ "com.sun.star.sdbc.ResultSet" };
|
||||
return Sequence<OUString>{ u"com.sun.star.sdbc.ResultSet"_ustr };
|
||||
}
|
||||
|
||||
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
|
||||
|
|
|
@ -165,191 +165,191 @@ sal_Bool SAL_CALL ODatabaseMetaDataResultSetMetaData::isWritable( sal_Int32 colu
|
|||
void ODatabaseMetaDataResultSetMetaData::setColumnPrivilegesMap()
|
||||
{
|
||||
setColumnMap();
|
||||
m_mColumns[5] = OColumn(OUString(),"GRANTOR", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"GRANTEE", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"PRIVILEGE", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),"IS_GRANTABLE", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"GRANTOR"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"GRANTEE"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"PRIVILEGE"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),u"IS_GRANTABLE"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setTableNameMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TABLE_CAT", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),"TABLE_SCHEM", ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),"TABLE_NAME", ColumnValue::NO_NULLS, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TABLE_CAT"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),u"TABLE_SCHEM"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),u"TABLE_NAME"_ustr, ColumnValue::NO_NULLS, 3,3,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setColumnMap()
|
||||
{
|
||||
setTableNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"COLUMN_NAME", ColumnValue::NO_NULLS, 3,3,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"COLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 3,3,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setColumnsMap()
|
||||
{
|
||||
setColumnMap();
|
||||
|
||||
m_mColumns[5] = OColumn(OUString(),"DATA_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),"TYPE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"COLUMN_SIZE", ColumnValue::NO_NULLS, 3,3,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),"BUFFER_LENGTH", ColumnValue::NULLABLE, 3,3,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),"DECIMAL_DIGITS", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),"NUM_PREC_RADIX", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),"NULLABLE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),"REMARKS", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[13] = OColumn(OUString(),"COLUMN_DEF", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),"SQL_DATA_TYPE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[15] = OColumn(OUString(),"SQL_DATETIME_SUB", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[16] = OColumn(OUString(),"CHAR_OCTET_LENGTH", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[17] = OColumn(OUString(),"ORDINAL_POSITION", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[18] = OColumn(OUString(),"IS_NULLABLE", ColumnValue::NO_NULLS, 1,1,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),u"TYPE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"COLUMN_SIZE"_ustr, ColumnValue::NO_NULLS, 3,3,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),u"BUFFER_LENGTH"_ustr, ColumnValue::NULLABLE, 3,3,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),u"DECIMAL_DIGITS"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),u"NUM_PREC_RADIX"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),u"NULLABLE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),u"REMARKS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[13] = OColumn(OUString(),u"COLUMN_DEF"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),u"SQL_DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[15] = OColumn(OUString(),u"SQL_DATETIME_SUB"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[16] = OColumn(OUString(),u"CHAR_OCTET_LENGTH"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[17] = OColumn(OUString(),u"ORDINAL_POSITION"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[18] = OColumn(OUString(),u"IS_NULLABLE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setTablesMap()
|
||||
{
|
||||
setTableNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"TABLE_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"REMARKS", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"TABLE_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"REMARKS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setProcedureNameMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"PROCEDURE_CAT", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),"PROCEDURE_SCHEM", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),"PROCEDURE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"PROCEDURE_CAT"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),u"PROCEDURE_SCHEM"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),u"PROCEDURE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setProcedureColumnsMap()
|
||||
{
|
||||
setProcedureNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"COLUMN_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"COLUMN_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),"DATA_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[7] = OColumn(OUString(),"TYPE_NAME", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),"PRECISION", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),"LENGTH", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),"SCALE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),"RADIX", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),"NULLABLE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[13] = OColumn(OUString(),"REMARKS", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"COLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"COLUMN_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),u"DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[7] = OColumn(OUString(),u"TYPE_NAME"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),u"PRECISION"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),u"LENGTH"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),u"SCALE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),u"RADIX"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),u"NULLABLE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[13] = OColumn(OUString(),u"REMARKS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setPrimaryKeysMap()
|
||||
{
|
||||
setColumnMap();
|
||||
m_mColumns[5] = OColumn(OUString(),"KEY_SEQ", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),"PK_NAME", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"KEY_SEQ"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),u"PK_NAME"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setIndexInfoMap()
|
||||
{
|
||||
setTableNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"NON_UNIQUE", ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[5] = OColumn(OUString(),"INDEX_QUALIFIER", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"INDEX_NAME", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),"ORDINAL_POSITION", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),"COLUMN_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[10] = OColumn(OUString(),"ASC_OR_DESC", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[11] = OColumn(OUString(),"CARDINALITY", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),"PAGES", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[13] = OColumn(OUString(),"FILTER_CONDITION", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"NON_UNIQUE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[5] = OColumn(OUString(),u"INDEX_QUALIFIER"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"INDEX_NAME"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),u"ORDINAL_POSITION"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),u"COLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[10] = OColumn(OUString(),u"ASC_OR_DESC"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[11] = OColumn(OUString(),u"CARDINALITY"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),u"PAGES"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[13] = OColumn(OUString(),u"FILTER_CONDITION"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setTablePrivilegesMap()
|
||||
{
|
||||
setTableNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"GRANTOR", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"GRANTEE", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"PRIVILEGE", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"IS_GRANTABLE", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"GRANTOR"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"GRANTEE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"PRIVILEGE"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"IS_GRANTABLE"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setCrossReferenceMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"PKTABLE_CAT", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),"PKTABLE_SCHEM", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),"PKTABLE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),"PKCOLUMN_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"FKTABLE_CAT", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"FKTABLE_SCHEM", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"FKTABLE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),"FKCOLUMN_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"PKTABLE_CAT"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),u"PKTABLE_SCHEM"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),u"PKTABLE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"PKCOLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"FKTABLE_CAT"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"FKTABLE_SCHEM"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"FKTABLE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),u"FKCOLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
|
||||
m_mColumns[9] = OColumn(OUString(),"KEY_SEQ", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),"UPDATE_RULE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),"DELETE_RULE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),"FK_NAME", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[13] = OColumn(OUString(),"PK_NAME", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),"DEFERRABILITY", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[9] = OColumn(OUString(),u"KEY_SEQ"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),u"UPDATE_RULE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[11] = OColumn(OUString(),u"DELETE_RULE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[12] = OColumn(OUString(),u"FK_NAME"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[13] = OColumn(OUString(),u"PK_NAME"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),u"DEFERRABILITY"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setTypeInfoMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TYPE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),"DATA_TYPE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[3] = OColumn(OUString(),"PRECISION", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[4] = OColumn(OUString(),"LITERAL_PREFIX", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"LITERAL_SUFFIX", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"CREATE_PARAMS", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"NULLABLE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),"CASE_SENSITIVE", ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[9] = OColumn(OUString(),"SEARCHABLE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),"UNSIGNED_ATTRIBUTE", ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[11] = OColumn(OUString(),"FIXED_PREC_SCALE", ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[12] = OColumn(OUString(),"AUTO_INCREMENT", ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[13] = OColumn(OUString(),"LOCAL_TYPE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),"MINIMUM_SCALE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[15] = OColumn(OUString(),"MAXIMUM_SCALE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[16] = OColumn(OUString(),"SQL_DATA_TYPE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[17] = OColumn(OUString(),"SQL_DATETIME_SUB", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[18] = OColumn(OUString(),"NUM_PREC_RADIX", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TYPE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),u"DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[3] = OColumn(OUString(),u"PRECISION"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[4] = OColumn(OUString(),u"LITERAL_PREFIX"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"LITERAL_SUFFIX"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"CREATE_PARAMS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"NULLABLE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),u"CASE_SENSITIVE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[9] = OColumn(OUString(),u"SEARCHABLE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[10] = OColumn(OUString(),u"UNSIGNED_ATTRIBUTE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[11] = OColumn(OUString(),u"FIXED_PREC_SCALE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[12] = OColumn(OUString(),u"AUTO_INCREMENT"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::BIT);
|
||||
m_mColumns[13] = OColumn(OUString(),u"LOCAL_TYPE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[14] = OColumn(OUString(),u"MINIMUM_SCALE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[15] = OColumn(OUString(),u"MAXIMUM_SCALE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[16] = OColumn(OUString(),u"SQL_DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[17] = OColumn(OUString(),u"SQL_DATETIME_SUB"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[18] = OColumn(OUString(),u"NUM_PREC_RADIX"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setProceduresMap()
|
||||
{
|
||||
setProcedureNameMap();
|
||||
m_mColumns[4] = OColumn(OUString(),"RESERVED1", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"RESERVED2", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"RESERVED3", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),"REMARKS", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),"PROCEDURE_TYPE", ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
m_mColumns[4] = OColumn(OUString(),u"RESERVED1"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"RESERVED2"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"RESERVED3"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[7] = OColumn(OUString(),u"REMARKS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[8] = OColumn(OUString(),u"PROCEDURE_TYPE"_ustr, ColumnValue::NO_NULLS, 1,1,0, DataType::INTEGER);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setTableTypes()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TABLE_TYPE", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TABLE_TYPE"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setCatalogsMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TABLE_CAT", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TABLE_CAT"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setSchemasMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TABLE_SCHEM", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TABLE_SCHEM"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setVersionColumnsMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"SCOPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[2] = OColumn(OUString(),"COLUMN_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),"DATA_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[4] = OColumn(OUString(),"TYPE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"COLUMN_SIZE", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),"BUFFER_LENGTH", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[7] = OColumn(OUString(),"DECIMAL_DIGITS", ColumnValue::NULLABLE, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),"PSEUDO_COLUMN", ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[1] = OColumn(OUString(),u"SCOPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[2] = OColumn(OUString(),u"COLUMN_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),u"DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[4] = OColumn(OUString(),u"TYPE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"COLUMN_SIZE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[6] = OColumn(OUString(),u"BUFFER_LENGTH"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[7] = OColumn(OUString(),u"DECIMAL_DIGITS"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::INTEGER);
|
||||
m_mColumns[8] = OColumn(OUString(),u"PSEUDO_COLUMN"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::INTEGER);
|
||||
}
|
||||
|
||||
void ODatabaseMetaDataResultSetMetaData::setUDTsMap()
|
||||
{
|
||||
m_mColumns[1] = OColumn(OUString(),"TYPE_CAT", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),"TYPE_SCHEM", ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),"TYPE_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),"CLASS_NAME", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),"DATA_TYPE", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),"REMARKS", ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[1] = OColumn(OUString(),u"TYPE_CAT"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[2] = OColumn(OUString(),u"TYPE_SCHEM"_ustr, ColumnValue::NULLABLE, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[3] = OColumn(OUString(),u"TYPE_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[4] = OColumn(OUString(),u"CLASS_NAME"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[5] = OColumn(OUString(),u"DATA_TYPE"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
m_mColumns[6] = OColumn(OUString(),u"REMARKS"_ustr, ColumnValue::NO_NULLS, 0,0,0, DataType::VARCHAR);
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -37,13 +37,13 @@ namespace connectivity
|
|||
::osl::MutexGuard aGuard(m_aMutex);
|
||||
comphelper::SequenceAsHashMap aArgs(_aArguments);
|
||||
uno::Reference< sdbc::XConnection > xConnection;
|
||||
xConnection = aArgs.getUnpackedValueOrDefault("ActiveConnection",xConnection);
|
||||
xConnection = aArgs.getUnpackedValueOrDefault(u"ActiveConnection"_ustr,xConnection);
|
||||
m_xConnection = xConnection;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ParameterSubstitution::getImplementationName( )
|
||||
{
|
||||
return "org.openoffice.comp.helper.ParameterSubstitution";
|
||||
return u"org.openoffice.comp.helper.ParameterSubstitution"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ParameterSubstitution::supportsService( const OUString& _rServiceName )
|
||||
|
@ -53,7 +53,7 @@ namespace connectivity
|
|||
|
||||
Sequence< OUString > SAL_CALL ParameterSubstitution::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdb.ParameterSubstitution" };
|
||||
return { u"com.sun.star.sdb.ParameterSubstitution"_ustr };
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaDataBase::getTypeInfo( )
|
|||
Reference< XRow > xRow(xRet,UNO_QUERY);
|
||||
::comphelper::SequenceAsHashMap aMap(m_aConnectionInfo);
|
||||
Sequence< Any > aTypeInfoSettings;
|
||||
aTypeInfoSettings = aMap.getUnpackedValueOrDefault("TypeInfoSettings",aTypeInfoSettings);
|
||||
aTypeInfoSettings = aMap.getUnpackedValueOrDefault(u"TypeInfoSettings"_ustr,aTypeInfoSettings);
|
||||
|
||||
if ( xRow.is() )
|
||||
{
|
||||
|
|
|
@ -226,7 +226,7 @@ void OIndexesHelper::dropObject(sal_Int32 /*_nPos*/,const OUString& _sElementNam
|
|||
aSchema = _sElementName.copy(0,nLen);
|
||||
aName = _sElementName.copy(nLen+1);
|
||||
|
||||
OUString aSql( "DROP INDEX " );
|
||||
OUString aSql( u"DROP INDEX "_ustr );
|
||||
|
||||
OUString aComposedName = dbtools::composeTableName( m_pTable->getMetaData(), m_pTable, ::dbtools::EComposeRule::InIndexDefinitions, true );
|
||||
OUString sIndexName = dbtools::composeTableName( m_pTable->getMetaData(), OUString(), aSchema, aName, true, ::dbtools::EComposeRule::InIndexDefinitions );
|
||||
|
|
|
@ -253,7 +253,7 @@ sdbcx::ObjectType OKeysHelper::appendObject( const OUString& _rForName, const Re
|
|||
|
||||
OUString OKeysHelper::getDropForeignKey() const
|
||||
{
|
||||
return " DROP CONSTRAINT ";
|
||||
return u" DROP CONSTRAINT "_ustr;
|
||||
}
|
||||
|
||||
// XDrop
|
||||
|
|
|
@ -37,7 +37,7 @@ OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>&
|
|||
{
|
||||
OUString sUserWorkingFor;
|
||||
// we want all catalogues, all schemas, all tables
|
||||
Sequence< OUString > sTableTypes {"VIEW", "TABLE", "%"}; // this last one is just to be sure to include anything else...
|
||||
Sequence< OUString > sTableTypes {u"VIEW"_ustr, u"TABLE"_ustr, u"%"_ustr}; // this last one is just to be sure to include anything else...
|
||||
try
|
||||
{
|
||||
m_xTables = _rxMeta->getTables(catalog,schemaPattern,tableNamePattern,sTableTypes);
|
||||
|
@ -53,7 +53,7 @@ OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>&
|
|||
ODatabaseMetaDataResultSet::ORow aRow(8);
|
||||
aRow[5] = new ORowSetValueDecorator(sUserWorkingFor);
|
||||
aRow[6] = ODatabaseMetaDataResultSet::getSelectValue();
|
||||
aRow[7] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aRow[7] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
aRow[6] = ODatabaseMetaDataResultSet::getInsertValue();
|
||||
aRows.push_back(aRow);
|
||||
|
@ -69,7 +69,7 @@ OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>&
|
|||
aRows.push_back(aRow);
|
||||
aRow[6] = ODatabaseMetaDataResultSet::getDropValue();
|
||||
aRows.push_back(aRow);
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("REFERENCE"));
|
||||
aRow[6] = new ORowSetValueDecorator(u"REFERENCE"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
setRows(std::move(aRows));
|
||||
|
|
|
@ -132,10 +132,10 @@ namespace connectivity
|
|||
Reference<XMultiServiceFactory> xFac(_xConnection,UNO_QUERY);
|
||||
if ( xFac.is() )
|
||||
{
|
||||
m_xRename.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,"TableRenameServiceName")),UNO_QUERY);
|
||||
m_xAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,"TableAlterationServiceName")),UNO_QUERY);
|
||||
m_xKeyAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,"KeyAlterationServiceName")),UNO_QUERY);
|
||||
m_xIndexAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,"IndexAlterationServiceName")),UNO_QUERY);
|
||||
m_xRename.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,u"TableRenameServiceName"_ustr)),UNO_QUERY);
|
||||
m_xAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,u"TableAlterationServiceName"_ustr)),UNO_QUERY);
|
||||
m_xKeyAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,u"KeyAlterationServiceName"_ustr)),UNO_QUERY);
|
||||
m_xIndexAlter.set(xFac->createInstance(lcl_getServiceNameForSetting(m_xConnection,u"IndexAlterationServiceName"_ustr)),UNO_QUERY);
|
||||
}
|
||||
}
|
||||
catch(const Exception&)
|
||||
|
@ -266,7 +266,7 @@ void OTableHelper::refreshColumns()
|
|||
aCatalog,
|
||||
m_SchemaName,
|
||||
m_Name,
|
||||
"%"
|
||||
u"%"_ustr
|
||||
) );
|
||||
|
||||
// collect the column names, together with their ordinal position
|
||||
|
@ -462,7 +462,7 @@ void OTableHelper::refreshIndexes()
|
|||
|
||||
OUString OTableHelper::getRenameStart() const
|
||||
{
|
||||
OUString sSql("RENAME ");
|
||||
OUString sSql(u"RENAME "_ustr);
|
||||
if ( m_Type == "VIEW" )
|
||||
sSql += " VIEW ";
|
||||
else
|
||||
|
|
|
@ -176,7 +176,7 @@ SQLExceptionInfo::operator const css::sdb::SQLContext*() const
|
|||
|
||||
void SQLExceptionInfo::prepend( const OUString& _rErrorMessage )
|
||||
{
|
||||
SQLException aException(_rErrorMessage, {}, "S1000", 0, m_aContent);
|
||||
SQLException aException(_rErrorMessage, {}, u"S1000"_ustr, 0, m_aContent);
|
||||
m_aContent <<= aException;
|
||||
|
||||
m_eType = TYPE::SQLException;
|
||||
|
@ -464,17 +464,17 @@ OUString getStandardSQLState( StandardSQLState _eState )
|
|||
{
|
||||
switch ( _eState )
|
||||
{
|
||||
case StandardSQLState::INVALID_DESCRIPTOR_INDEX: return "07009";
|
||||
case StandardSQLState::INVALID_CURSOR_STATE: return "24000";
|
||||
case StandardSQLState::COLUMN_NOT_FOUND: return "42S22";
|
||||
case StandardSQLState::GENERAL_ERROR: return "HY000";
|
||||
case StandardSQLState::INVALID_SQL_DATA_TYPE: return "HY004";
|
||||
case StandardSQLState::FUNCTION_SEQUENCE_ERROR: return "HY010";
|
||||
case StandardSQLState::INVALID_CURSOR_POSITION: return "HY109";
|
||||
case StandardSQLState::FEATURE_NOT_IMPLEMENTED: return "HYC00";
|
||||
case StandardSQLState::FUNCTION_NOT_SUPPORTED: return "IM001";
|
||||
case StandardSQLState::CONNECTION_DOES_NOT_EXIST: return "08003";
|
||||
default: return "HY001"; // General Error
|
||||
case StandardSQLState::INVALID_DESCRIPTOR_INDEX: return u"07009"_ustr;
|
||||
case StandardSQLState::INVALID_CURSOR_STATE: return u"24000"_ustr;
|
||||
case StandardSQLState::COLUMN_NOT_FOUND: return u"42S22"_ustr;
|
||||
case StandardSQLState::GENERAL_ERROR: return u"HY000"_ustr;
|
||||
case StandardSQLState::INVALID_SQL_DATA_TYPE: return u"HY004"_ustr;
|
||||
case StandardSQLState::FUNCTION_SEQUENCE_ERROR: return u"HY010"_ustr;
|
||||
case StandardSQLState::INVALID_CURSOR_POSITION: return u"HY109"_ustr;
|
||||
case StandardSQLState::FEATURE_NOT_IMPLEMENTED: return u"HYC00"_ustr;
|
||||
case StandardSQLState::FUNCTION_NOT_SUPPORTED: return u"IM001"_ustr;
|
||||
case StandardSQLState::CONNECTION_DOES_NOT_EXIST: return u"08003"_ustr;
|
||||
default: return u"HY001"_ustr; // General Error
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ namespace dbtools
|
|||
{
|
||||
Reference< XPropertySet > xDataSource( xConnectionAsChild->getParent(), UNO_QUERY_THROW );
|
||||
Reference< XPropertySet > xDataSourceSettings(
|
||||
xDataSource->getPropertyValue("Settings"),
|
||||
xDataSource->getPropertyValue(u"Settings"_ustr),
|
||||
UNO_QUERY_THROW );
|
||||
|
||||
_out_setting = xDataSourceSettings->getPropertyValue( _asciiName );
|
||||
|
@ -240,7 +240,7 @@ namespace dbtools
|
|||
try
|
||||
{
|
||||
Any setting;
|
||||
if ( !( lcl_getConnectionSetting( "PrimaryKeySupport", *m_pImpl, setting ) )
|
||||
if ( !( lcl_getConnectionSetting( u"PrimaryKeySupport"_ustr, *m_pImpl, setting ) )
|
||||
|| !( setting >>= bDoesSupportPrimaryKeys )
|
||||
)
|
||||
bDoesSupportPrimaryKeys = m_pImpl->xConnectionMetaData->supportsCoreSQLGrammar()
|
||||
|
@ -272,7 +272,7 @@ namespace dbtools
|
|||
|
||||
bool restrict( false );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "EnableSQL92Check", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"EnableSQL92Check"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= restrict) )
|
||||
SAL_WARN("connectivity.commontools", "restrictIdentifiersToSQL92: unable to assign EnableSQL92Check");
|
||||
return restrict;
|
||||
|
@ -283,7 +283,7 @@ namespace dbtools
|
|||
{
|
||||
bool doGenerate( false );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "GenerateASBeforeCorrelationName", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"GenerateASBeforeCorrelationName"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= doGenerate) )
|
||||
SAL_WARN("connectivity.commontools", "generateASBeforeCorrelationName: unable to assign GenerateASBeforeCorrelationName");
|
||||
return doGenerate;
|
||||
|
@ -293,7 +293,7 @@ namespace dbtools
|
|||
{
|
||||
bool doGenerate( true );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "EscapeDateTime", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"EscapeDateTime"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= doGenerate) )
|
||||
SAL_WARN("connectivity.commontools", "shouldEscapeDateTime: unable to assign EscapeDateTime");
|
||||
return doGenerate;
|
||||
|
@ -303,7 +303,7 @@ namespace dbtools
|
|||
{
|
||||
bool doSubstitute( true );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "ParameterNameSubstitution", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"ParameterNameSubstitution"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= doSubstitute) )
|
||||
SAL_WARN("connectivity.commontools", "shouldSubstituteParameterNames: unable to assign ParameterNameSubstitution");
|
||||
return doSubstitute;
|
||||
|
@ -313,7 +313,7 @@ namespace dbtools
|
|||
{
|
||||
bool is( true );
|
||||
Any setting;
|
||||
if ( lcl_getDriverSetting( "AutoIncrementIsPrimaryKey", *m_pImpl, setting ) )
|
||||
if ( lcl_getDriverSetting( u"AutoIncrementIsPrimaryKey"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= is) )
|
||||
SAL_WARN("connectivity.commontools", "isAutoIncrementPrimaryKey: unable to assign AutoIncrementIsPrimaryKey");
|
||||
return is;
|
||||
|
@ -323,7 +323,7 @@ namespace dbtools
|
|||
{
|
||||
sal_Int32 mode( BooleanComparisonMode::EQUAL_INTEGER );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "BooleanComparisonMode", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"BooleanComparisonMode"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= mode) )
|
||||
SAL_WARN("connectivity.commontools", "getBooleanComparisonMode: unable to assign BooleanComparisonMode");
|
||||
return mode;
|
||||
|
@ -361,7 +361,7 @@ namespace dbtools
|
|||
{
|
||||
bool doGenerate( true );
|
||||
Any setting;
|
||||
if ( lcl_getConnectionSetting( "ColumnAliasInOrderBy", *m_pImpl, setting ) )
|
||||
if ( lcl_getConnectionSetting( u"ColumnAliasInOrderBy"_ustr, *m_pImpl, setting ) )
|
||||
if( ! (setting >>= doGenerate) )
|
||||
SAL_WARN("connectivity.commontools", "supportsColumnAliasInOrderBy: unable to assign ColumnAliasInOrderBy");
|
||||
return doGenerate;
|
||||
|
|
|
@ -125,10 +125,10 @@ sal_Int32 getDefaultNumberFormat(const Reference< XPropertySet >& _xColumn,
|
|||
try
|
||||
{
|
||||
// determine the datatype of the column
|
||||
_xColumn->getPropertyValue("Type") >>= nDataType;
|
||||
_xColumn->getPropertyValue(u"Type"_ustr) >>= nDataType;
|
||||
|
||||
if (DataType::NUMERIC == nDataType || DataType::DECIMAL == nDataType)
|
||||
_xColumn->getPropertyValue("Scale") >>= nScale;
|
||||
_xColumn->getPropertyValue(u"Scale"_ustr) >>= nScale;
|
||||
}
|
||||
catch (Exception&)
|
||||
{
|
||||
|
@ -136,7 +136,7 @@ sal_Int32 getDefaultNumberFormat(const Reference< XPropertySet >& _xColumn,
|
|||
}
|
||||
return getDefaultNumberFormat(nDataType,
|
||||
nScale,
|
||||
::cppu::any2bool(_xColumn->getPropertyValue("IsCurrency")),
|
||||
::cppu::any2bool(_xColumn->getPropertyValue(u"IsCurrency"_ustr)),
|
||||
_xTypes,
|
||||
_rLocale);
|
||||
}
|
||||
|
@ -278,7 +278,7 @@ static Reference< XConnection > getConnection_allowException(
|
|||
Reference<XInitialization> xIni(xDataSource, UNO_QUERY);
|
||||
if (xIni.is())
|
||||
{
|
||||
Sequence< Any > aArgs{ Any(NamedValue( "ParentWindow", Any(_rxParent) )) };
|
||||
Sequence< Any > aArgs{ Any(NamedValue( u"ParentWindow"_ustr, Any(_rxParent) )) };
|
||||
xIni->initialize(aArgs);
|
||||
}
|
||||
|
||||
|
@ -291,8 +291,8 @@ static Reference< XConnection > getConnection_allowException(
|
|||
try
|
||||
{
|
||||
xProp->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_PASSWORD)) >>= sPwd;
|
||||
bPwdReq = ::cppu::any2bool(xProp->getPropertyValue("IsPasswordRequired"));
|
||||
xProp->getPropertyValue("User") >>= sUser;
|
||||
bPwdReq = ::cppu::any2bool(xProp->getPropertyValue(u"IsPasswordRequired"_ustr));
|
||||
xProp->getPropertyValue(u"User"_ustr) >>= sUser;
|
||||
}
|
||||
catch(Exception&)
|
||||
{
|
||||
|
@ -316,7 +316,7 @@ static Reference< XConnection > getConnection_allowException(
|
|||
|
||||
if (xIni.is())
|
||||
{
|
||||
Sequence< Any > aArgs{ Any(NamedValue( "ParentWindow", Any(Reference<XWindow>()) )) };
|
||||
Sequence< Any > aArgs{ Any(NamedValue( u"ParentWindow"_ustr, Any(Reference<XWindow>()) )) };
|
||||
xIni->initialize(aArgs);
|
||||
}
|
||||
|
||||
|
@ -350,7 +350,7 @@ Reference< XConnection> getConnection(const Reference< XRowSet>& _rxRowSet)
|
|||
Reference< XConnection> xReturn;
|
||||
Reference< XPropertySet> xRowSetProps(_rxRowSet, UNO_QUERY);
|
||||
if (xRowSetProps.is())
|
||||
xRowSetProps->getPropertyValue("ActiveConnection") >>= xReturn;
|
||||
xRowSetProps->getPropertyValue(u"ActiveConnection"_ustr) >>= xReturn;
|
||||
return xReturn;
|
||||
}
|
||||
|
||||
|
@ -370,7 +370,7 @@ static SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet,
|
|||
|
||||
// 1. already connected?
|
||||
Reference< XConnection > xExistingConn(
|
||||
xRowSetProps->getPropertyValue("ActiveConnection"),
|
||||
xRowSetProps->getPropertyValue(u"ActiveConnection"_ustr),
|
||||
UNO_QUERY );
|
||||
|
||||
if ( xExistingConn.is()
|
||||
|
@ -380,7 +380,7 @@ static SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet,
|
|||
|| ( xExistingConn = findConnection( _rxRowSet ) ).is()
|
||||
)
|
||||
{
|
||||
xRowSetProps->setPropertyValue("ActiveConnection", Any( xExistingConn ) );
|
||||
xRowSetProps->setPropertyValue(u"ActiveConnection"_ustr, Any( xExistingConn ) );
|
||||
// no auto disposer needed, since we did not create the connection
|
||||
|
||||
xConnection.reset( xExistingConn, SharedConnection::NoTakeOwnership );
|
||||
|
@ -391,9 +391,9 @@ static SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet,
|
|||
|
||||
static constexpr OUString sUserProp( u"User"_ustr );
|
||||
OUString sDataSourceName;
|
||||
xRowSetProps->getPropertyValue("DataSourceName") >>= sDataSourceName;
|
||||
xRowSetProps->getPropertyValue(u"DataSourceName"_ustr) >>= sDataSourceName;
|
||||
OUString sURL;
|
||||
xRowSetProps->getPropertyValue("URL") >>= sURL;
|
||||
xRowSetProps->getPropertyValue(u"URL"_ustr) >>= sURL;
|
||||
|
||||
Reference< XConnection > xPureConnection;
|
||||
if (!sDataSourceName.isEmpty())
|
||||
|
@ -452,7 +452,7 @@ static SharedConnection lcl_connectRowSet(const Reference< XRowSet>& _rxRowSet,
|
|||
}
|
||||
else
|
||||
xRowSetProps->setPropertyValue(
|
||||
"ActiveConnection",
|
||||
u"ActiveConnection"_ustr,
|
||||
Any( xConnection.getTyped() )
|
||||
);
|
||||
}
|
||||
|
@ -653,14 +653,14 @@ Reference< XNameAccess > getFieldsByCommandDescriptor( const Reference< XConnect
|
|||
|
||||
if ( xComposerFac.is() )
|
||||
{
|
||||
Reference< XSingleSelectQueryComposer > xComposer(xComposerFac->createInstance("com.sun.star.sdb.SingleSelectQueryComposer"),UNO_QUERY);
|
||||
Reference< XSingleSelectQueryComposer > xComposer(xComposerFac->createInstance(u"com.sun.star.sdb.SingleSelectQueryComposer"_ustr),UNO_QUERY);
|
||||
if ( xComposer.is() )
|
||||
{
|
||||
xComposer->setQuery( sStatementToExecute );
|
||||
|
||||
// Now set the filter to a dummy restriction which will result in an empty
|
||||
// result set.
|
||||
xComposer->setFilter( "0=1" );
|
||||
xComposer->setFilter( u"0=1"_ustr );
|
||||
sStatementToExecute = xComposer->getQuery( );
|
||||
}
|
||||
}
|
||||
|
@ -683,7 +683,7 @@ Reference< XNameAccess > getFieldsByCommandDescriptor( const Reference< XConnect
|
|||
try
|
||||
{
|
||||
if ( xStatementProps.is() )
|
||||
xStatementProps->setPropertyValue( "MaxRows", Any( sal_Int32( 0 ) ) );
|
||||
xStatementProps->setPropertyValue( u"MaxRows"_ustr, Any( sal_Int32( 0 ) ) );
|
||||
}
|
||||
catch( const Exception& )
|
||||
{
|
||||
|
@ -1181,17 +1181,17 @@ catch(const Exception&)
|
|||
|
||||
bool canInsert(const Reference< XPropertySet>& _rxCursorSet)
|
||||
{
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue("Privileges")) & Privilege::INSERT) != 0);
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue(u"Privileges"_ustr)) & Privilege::INSERT) != 0);
|
||||
}
|
||||
|
||||
bool canUpdate(const Reference< XPropertySet>& _rxCursorSet)
|
||||
{
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue("Privileges")) & Privilege::UPDATE) != 0);
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue(u"Privileges"_ustr)) & Privilege::UPDATE) != 0);
|
||||
}
|
||||
|
||||
bool canDelete(const Reference< XPropertySet>& _rxCursorSet)
|
||||
{
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue("Privileges")) & Privilege::DELETE) != 0);
|
||||
return (_rxCursorSet.is() && (getINT32(_rxCursorSet->getPropertyValue(u"Privileges"_ustr)) & Privilege::DELETE) != 0);
|
||||
}
|
||||
|
||||
Reference< XDataSource> findDataSource(const Reference< XInterface >& _xParent)
|
||||
|
@ -1226,21 +1226,21 @@ static Reference< XSingleSelectQueryComposer > getComposedRowSetStatement( const
|
|||
OUString sCommand;
|
||||
bool bEscapeProcessing = false;
|
||||
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue("CommandType") >>= nCommandType );
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue("Command") >>= sCommand );
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue("EscapeProcessing") >>= bEscapeProcessing );
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue(u"CommandType"_ustr) >>= nCommandType );
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue(u"Command"_ustr) >>= sCommand );
|
||||
OSL_VERIFY( _rxRowSet->getPropertyValue(u"EscapeProcessing"_ustr) >>= bEscapeProcessing );
|
||||
|
||||
StatementComposer aComposer( xConn, sCommand, nCommandType, bEscapeProcessing );
|
||||
// append sort
|
||||
aComposer.setOrder( getString( _rxRowSet->getPropertyValue("Order") ) );
|
||||
aComposer.setOrder( getString( _rxRowSet->getPropertyValue(u"Order"_ustr) ) );
|
||||
|
||||
// append filter
|
||||
bool bApplyFilter = true;
|
||||
_rxRowSet->getPropertyValue("ApplyFilter") >>= bApplyFilter;
|
||||
_rxRowSet->getPropertyValue(u"ApplyFilter"_ustr) >>= bApplyFilter;
|
||||
if ( bApplyFilter )
|
||||
{
|
||||
aComposer.setFilter( getString( _rxRowSet->getPropertyValue("Filter") ) );
|
||||
aComposer.setHavingClause( getString( _rxRowSet->getPropertyValue("HavingClause") ) );
|
||||
aComposer.setFilter( getString( _rxRowSet->getPropertyValue(u"Filter"_ustr) ) );
|
||||
aComposer.setHavingClause( getString( _rxRowSet->getPropertyValue(u"HavingClause"_ustr) ) );
|
||||
}
|
||||
|
||||
aComposer.getQuery();
|
||||
|
@ -1296,8 +1296,8 @@ OUString composeTableName( const Reference< XDatabaseMetaData >& _rxMetaData,
|
|||
OUString composeTableNameForSelect( const Reference< XConnection >& _rxConnection,
|
||||
const OUString& _rCatalog, const OUString& _rSchema, const OUString& _rName )
|
||||
{
|
||||
bool bUseCatalogInSelect = isDataSourcePropertyEnabled( _rxConnection, "UseCatalogInSelect", true );
|
||||
bool bUseSchemaInSelect = isDataSourcePropertyEnabled( _rxConnection, "UseSchemaInSelect", true );
|
||||
bool bUseCatalogInSelect = isDataSourcePropertyEnabled( _rxConnection, u"UseCatalogInSelect"_ustr, true );
|
||||
bool bUseSchemaInSelect = isDataSourcePropertyEnabled( _rxConnection, u"UseSchemaInSelect"_ustr, true );
|
||||
|
||||
return impl_doComposeTableName(
|
||||
_rxConnection->getMetaData(),
|
||||
|
@ -1414,7 +1414,7 @@ void showError(const SQLExceptionInfo& _rInfo,
|
|||
{
|
||||
try
|
||||
{
|
||||
Reference< XExecutableDialog > xErrorDialog = ErrorMessageDialog::create( _rxContext, "", _xParent, _rInfo.get() );
|
||||
Reference< XExecutableDialog > xErrorDialog = ErrorMessageDialog::create( _rxContext, u""_ustr, _xParent, _rInfo.get() );
|
||||
xErrorDialog->execute();
|
||||
}
|
||||
catch(const Exception&)
|
||||
|
|
|
@ -550,7 +550,7 @@ Reference<XPropertySet> createSDBCXColumn(const Reference<XPropertySet>& _xTable
|
|||
xProp = lcl_createSDBCXColumn(xPrimaryKeyColumns,_xConnection,aCatalog, aSchema, aTable, _rName,_rName,_bCase,_bQueryForInfo,_bIsAutoIncrement,_bIsCurrency,_nDataType);
|
||||
if ( !xProp.is() )
|
||||
{
|
||||
xProp = lcl_createSDBCXColumn(xPrimaryKeyColumns,_xConnection,aCatalog, aSchema, aTable, "%",_rName,_bCase,_bQueryForInfo,_bIsAutoIncrement,_bIsCurrency,_nDataType);
|
||||
xProp = lcl_createSDBCXColumn(xPrimaryKeyColumns,_xConnection,aCatalog, aSchema, aTable, u"%"_ustr,_rName,_bCase,_bQueryForInfo,_bIsAutoIncrement,_bIsCurrency,_nDataType);
|
||||
if ( !xProp.is() )
|
||||
xProp = new connectivity::sdbcx::OColumn(_rName,
|
||||
OUString(),OUString(),OUString(),
|
||||
|
@ -587,7 +587,7 @@ bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection,
|
|||
if ( xDataSourceProperties.is() )
|
||||
{
|
||||
Reference< XPropertySet > xSettings(
|
||||
xDataSourceProperties->getPropertyValue("Settings"),
|
||||
xDataSourceProperties->getPropertyValue(u"Settings"_ustr),
|
||||
UNO_QUERY_THROW
|
||||
);
|
||||
OSL_VERIFY( xSettings->getPropertyValue( rSettingName ) >>= bValue );
|
||||
|
@ -611,7 +611,7 @@ bool getDataSourceSetting( const Reference< XInterface >& _xChild, const OUStrin
|
|||
return false;
|
||||
|
||||
const Reference< XPropertySet > xSettings(
|
||||
xDataSourceProperties->getPropertyValue("Settings"),
|
||||
xDataSourceProperties->getPropertyValue(u"Settings"_ustr),
|
||||
UNO_QUERY_THROW
|
||||
);
|
||||
|
||||
|
@ -641,7 +641,7 @@ bool isDataSourcePropertyEnabled(const Reference<XInterface>& _xProp, const OUSt
|
|||
if ( xProp.is() )
|
||||
{
|
||||
Sequence< PropertyValue > aInfo;
|
||||
xProp->getPropertyValue("Info") >>= aInfo;
|
||||
xProp->getPropertyValue(u"Info"_ustr) >>= aInfo;
|
||||
const PropertyValue* pValue =std::find_if(std::cbegin(aInfo),
|
||||
std::cend(aInfo),
|
||||
[&_sProperty](const PropertyValue& lhs)
|
||||
|
@ -745,7 +745,7 @@ sal_Int32 getTablePrivileges(const Reference< XDatabaseMetaData>& _xMetaData,
|
|||
// Some drivers put a table privilege as soon as any column has the privilege,
|
||||
// some drivers only if all columns have the privilege.
|
||||
// To unify the situation, collect column privileges here, too.
|
||||
Reference< XResultSet > xColumnPrivileges = _xMetaData->getColumnPrivileges(aVal, _sSchema, _sTable, "%");
|
||||
Reference< XResultSet > xColumnPrivileges = _xMetaData->getColumnPrivileges(aVal, _sSchema, _sTable, u"%"_ustr);
|
||||
Reference< XRow > xColumnCurrentRow(xColumnPrivileges, UNO_QUERY);
|
||||
if ( xColumnCurrentRow.is() )
|
||||
{
|
||||
|
@ -904,7 +904,7 @@ sal_Int32 DBTypeConversion::convertUnicodeString( const OUString& _rSource, OStr
|
|||
throw SQLException(
|
||||
sMessage,
|
||||
nullptr,
|
||||
"22018",
|
||||
u"22018"_ustr,
|
||||
22018,
|
||||
Any()
|
||||
);
|
||||
|
@ -930,7 +930,7 @@ sal_Int32 DBTypeConversion::convertUnicodeStringToLength( const OUString& _rSour
|
|||
throw SQLException(
|
||||
sMessage,
|
||||
nullptr,
|
||||
"22001",
|
||||
u"22001"_ustr,
|
||||
22001,
|
||||
Any()
|
||||
);
|
||||
|
@ -942,7 +942,7 @@ sal_Int32 DBTypeConversion::convertUnicodeStringToLength( const OUString& _rSour
|
|||
OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >& _rxORB)
|
||||
{
|
||||
::utl::OConfigurationTreeRoot aReportEngines = ::utl::OConfigurationTreeRoot::createWithComponentContext(
|
||||
_rxORB, "org.openoffice.Office.DataAccess/ReportEngines", -1, ::utl::OConfigurationTreeRoot::CM_READONLY);
|
||||
_rxORB, u"org.openoffice.Office.DataAccess/ReportEngines"_ustr, -1, ::utl::OConfigurationTreeRoot::CM_READONLY);
|
||||
|
||||
if ( aReportEngines.isValid() )
|
||||
{
|
||||
|
@ -963,17 +963,17 @@ OUString getDefaultReportEngineServiceName(const Reference< XComponentContext >&
|
|||
}
|
||||
}
|
||||
else
|
||||
return "org.libreoffice.report.pentaho.SOReportJobFactory";
|
||||
return u"org.libreoffice.report.pentaho.SOReportJobFactory"_ustr;
|
||||
}
|
||||
else
|
||||
return "org.libreoffice.report.pentaho.SOReportJobFactory";
|
||||
return u"org.libreoffice.report.pentaho.SOReportJobFactory"_ustr;
|
||||
return OUString();
|
||||
}
|
||||
|
||||
bool isAggregateColumn(const Reference< XSingleSelectQueryComposer > &_xParser, const Reference< XPropertySet > &_xField)
|
||||
{
|
||||
OUString sName;
|
||||
_xField->getPropertyValue("Name") >>= sName;
|
||||
_xField->getPropertyValue(u"Name"_ustr) >>= sName;
|
||||
Reference< XColumnsSupplier > xColumnsSupplier(_xParser, UNO_QUERY);
|
||||
Reference< css::container::XNameAccess > xCols;
|
||||
if (xColumnsSupplier.is())
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace dbtools
|
|||
_rData.m_xColumnUpdate.set( _rxColumn, UNO_QUERY );
|
||||
|
||||
// determine the field type, and whether it's a numeric field
|
||||
OSL_VERIFY( _rxColumn->getPropertyValue("Type") >>= _rData.m_nFieldType );
|
||||
OSL_VERIFY( _rxColumn->getPropertyValue(u"Type"_ustr) >>= _rData.m_nFieldType );
|
||||
|
||||
switch ( _rData.m_nFieldType )
|
||||
{
|
||||
|
@ -165,7 +165,7 @@ namespace dbtools
|
|||
// some more formatter settings
|
||||
_rData.m_nKeyType = ::comphelper::getNumberFormatType( xNumberFormatsSupp->getNumberFormats(), _rData.m_nFormatKey );
|
||||
Reference< XPropertySet > xFormatSettings( xNumberFormatsSupp->getNumberFormatSettings(), UNO_SET_THROW );
|
||||
OSL_VERIFY( xFormatSettings->getPropertyValue("NullDate") >>= _rData.m_aNullDate );
|
||||
OSL_VERIFY( xFormatSettings->getPropertyValue(u"NullDate"_ustr) >>= _rData.m_aNullDate );
|
||||
|
||||
// remember the formatter
|
||||
_rData.m_xFormatter = i_rNumberFormatter;
|
||||
|
|
|
@ -210,15 +210,15 @@ namespace dbtools
|
|||
// <detail_column> = :<new_param_name>
|
||||
{
|
||||
OUString tblName;
|
||||
xDetailField->getPropertyValue("TableName") >>= tblName;
|
||||
xDetailField->getPropertyValue(u"TableName"_ustr) >>= tblName;
|
||||
if (!tblName.isEmpty())
|
||||
sFilter = ::dbtools::quoteTableName( m_xConnectionMetadata, tblName, ::dbtools::EComposeRule::InDataManipulation ) + ".";
|
||||
}
|
||||
{
|
||||
OUString colName;
|
||||
xDetailField->getPropertyValue("RealName") >>= colName;
|
||||
xDetailField->getPropertyValue(u"RealName"_ustr) >>= colName;
|
||||
bool isFunction(false);
|
||||
xDetailField->getPropertyValue("Function") >>= isFunction;
|
||||
xDetailField->getPropertyValue(u"Function"_ustr) >>= isFunction;
|
||||
if (isFunction)
|
||||
sFilter += colName;
|
||||
else
|
||||
|
|
|
@ -160,7 +160,7 @@ namespace dbtools::param
|
|||
sal_Int32 nProperties( aProperties.getLength() );
|
||||
aProperties.realloc( nProperties + 1 );
|
||||
aProperties.getArray()[ nProperties ] = Property(
|
||||
"Value",
|
||||
u"Value"_ustr,
|
||||
PROPERTY_ID_VALUE,
|
||||
::cppu::UnoType< Any >::get(),
|
||||
PropertyAttribute::TRANSIENT | PropertyAttribute::MAYBEVOID
|
||||
|
@ -196,11 +196,11 @@ namespace dbtools::param
|
|||
{
|
||||
// TODO : aParamType & nScale can be obtained within the constructor...
|
||||
sal_Int32 nParamType = DataType::VARCHAR;
|
||||
OSL_VERIFY( m_xDelegator->getPropertyValue("Type") >>= nParamType );
|
||||
OSL_VERIFY( m_xDelegator->getPropertyValue(u"Type"_ustr) >>= nParamType );
|
||||
|
||||
sal_Int32 nScale = 0;
|
||||
if ( m_xDelegatorPSI->hasPropertyByName("Scale") )
|
||||
OSL_VERIFY( m_xDelegator->getPropertyValue("Scale") >>= nScale );
|
||||
if ( m_xDelegatorPSI->hasPropertyByName(u"Scale"_ustr) )
|
||||
OSL_VERIFY( m_xDelegator->getPropertyValue(u"Scale"_ustr) >>= nScale );
|
||||
|
||||
if ( m_xValueDestination.is() )
|
||||
{
|
||||
|
|
|
@ -132,7 +132,7 @@ namespace dbtools
|
|||
if ( !pReturn )
|
||||
{ // is it a text field ?
|
||||
sal_Int32 nType = DataType::OTHER;
|
||||
_rxField->getPropertyValue("Type") >>= nType;
|
||||
_rxField->getPropertyValue(u"Type"_ustr) >>= nType;
|
||||
|
||||
if ( ( DataType::CHAR == nType )
|
||||
|| ( DataType::VARCHAR == nType )
|
||||
|
@ -178,17 +178,17 @@ namespace dbtools
|
|||
try
|
||||
{
|
||||
Reference< XPropertySetInfo > xPSI( _rxField->getPropertySetInfo() );
|
||||
if ( xPSI.is() && xPSI->hasPropertyByName("FormatKey") )
|
||||
if ( xPSI.is() && xPSI->hasPropertyByName(u"FormatKey"_ustr) )
|
||||
{
|
||||
sal_Int32 nFormatKey = 0;
|
||||
_rxField->getPropertyValue("FormatKey") >>= nFormatKey;
|
||||
_rxField->getPropertyValue(u"FormatKey"_ustr) >>= nFormatKey;
|
||||
if ( nFormatKey && m_xFormatter.is() )
|
||||
{
|
||||
Locale aFormatLocale;
|
||||
::comphelper::getNumberFormatProperty(
|
||||
m_xFormatter,
|
||||
nFormatKey,
|
||||
"Locale"
|
||||
u"Locale"_ustr
|
||||
) >>= aFormatLocale;
|
||||
|
||||
// valid locale
|
||||
|
|
|
@ -145,12 +145,12 @@ namespace dbtools
|
|||
|
||||
// a native query ?
|
||||
bool bQueryEscapeProcessing = false;
|
||||
xQuery->getPropertyValue("EscapeProcessing") >>= bQueryEscapeProcessing;
|
||||
xQuery->getPropertyValue(u"EscapeProcessing"_ustr) >>= bQueryEscapeProcessing;
|
||||
if ( !bQueryEscapeProcessing )
|
||||
break;
|
||||
|
||||
// the command used by the query
|
||||
xQuery->getPropertyValue("Command") >>= sStatement;
|
||||
xQuery->getPropertyValue(u"Command"_ustr) >>= sStatement;
|
||||
if ( sStatement.isEmpty() )
|
||||
break;
|
||||
|
||||
|
@ -158,7 +158,7 @@ namespace dbtools
|
|||
Reference< XMultiServiceFactory > xFactory( _rData.xConnection, UNO_QUERY_THROW );
|
||||
::utl::SharedUNOComponent< XSingleSelectQueryComposer > xComposer;
|
||||
xComposer.set(
|
||||
xFactory->createInstance("com.sun.star.sdb.SingleSelectQueryComposer"),
|
||||
xFactory->createInstance(u"com.sun.star.sdb.SingleSelectQueryComposer"_ustr),
|
||||
UNO_QUERY_THROW
|
||||
);
|
||||
|
||||
|
@ -185,9 +185,9 @@ namespace dbtools
|
|||
if ( bApplyFilter )
|
||||
{
|
||||
OUString sFilter;
|
||||
OSL_VERIFY( xQuery->getPropertyValue("Filter") >>= sFilter );
|
||||
OSL_VERIFY( xQuery->getPropertyValue(u"Filter"_ustr) >>= sFilter );
|
||||
xComposer->setFilter( sFilter );
|
||||
OSL_VERIFY( xQuery->getPropertyValue("HavingClause") >>= sFilter );
|
||||
OSL_VERIFY( xQuery->getPropertyValue(u"HavingClause"_ustr) >>= sFilter );
|
||||
xComposer->setHavingClause( sFilter );
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,7 @@ namespace dbtools
|
|||
{
|
||||
// create a composer
|
||||
Reference< XMultiServiceFactory > xFactory( _rData.xConnection, UNO_QUERY_THROW );
|
||||
Reference< XSingleSelectQueryComposer > xComposer( xFactory->createInstance("com.sun.star.sdb.SingleSelectQueryComposer"),
|
||||
Reference< XSingleSelectQueryComposer > xComposer( xFactory->createInstance(u"com.sun.star.sdb.SingleSelectQueryComposer"_ustr),
|
||||
UNO_QUERY_THROW );
|
||||
xComposer->setElementaryQuery( sStatement );
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ OConnectionWeakWrapper::~OConnectionWeakWrapper()
|
|||
}
|
||||
// XServiceInfo
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OConnectionWeakWrapper, "com.sun.star.sdbc.drivers.OConnectionWeakWrapper", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OConnectionWeakWrapper, u"com.sun.star.sdbc.drivers.OConnectionWeakWrapper"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
Reference< XStatement > SAL_CALL OConnectionWeakWrapper::createStatement( )
|
||||
|
|
|
@ -115,7 +115,7 @@ sal_Int32 SAL_CALL OPoolCollection::getLoginTimeout( )
|
|||
|
||||
OUString SAL_CALL OPoolCollection::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbc.OConnectionPool";
|
||||
return u"com.sun.star.sdbc.OConnectionPool"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OPoolCollection::supportsService( const OUString& _rServiceName )
|
||||
|
@ -126,7 +126,7 @@ sal_Bool SAL_CALL OPoolCollection::supportsService( const OUString& _rServiceNam
|
|||
|
||||
Sequence< OUString > SAL_CALL OPoolCollection::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.ConnectionPool" };
|
||||
return { u"com.sun.star.sdbc.ConnectionPool"_ustr };
|
||||
}
|
||||
|
||||
Reference< XDriver > SAL_CALL OPoolCollection::getDriverByURL( const OUString& _rURL )
|
||||
|
@ -272,10 +272,10 @@ Reference< XInterface > OPoolCollection::createWithProvider(const Reference< XMu
|
|||
const OUString& _rPath)
|
||||
{
|
||||
OSL_ASSERT(_rxConfProvider.is());
|
||||
Sequence< Any > args{ Any(NamedValue( "nodepath", Any(_rPath))) };
|
||||
Sequence< Any > args{ Any(NamedValue( u"nodepath"_ustr, Any(_rPath))) };
|
||||
Reference< XInterface > xInterface(
|
||||
_rxConfProvider->createInstanceWithArguments(
|
||||
"com.sun.star.configuration.ConfigurationAccess",
|
||||
u"com.sun.star.configuration.ConfigurationAccess"_ustr,
|
||||
args));
|
||||
OSL_ENSURE(
|
||||
xInterface.is(),
|
||||
|
|
|
@ -40,7 +40,7 @@ void OCalcCatalog::refreshTables()
|
|||
::std::vector<OUString> aVector;
|
||||
Sequence<OUString> aTypes;
|
||||
OCalcConnection::ODocHolder aDocHolder(static_cast<OCalcConnection*>(m_pConnection));
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), "%", "%", aTypes);
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), u"%"_ustr, u"%"_ustr, aTypes);
|
||||
|
||||
if (xResult.is())
|
||||
{
|
||||
|
|
|
@ -120,7 +120,7 @@ Reference< XSpreadsheetDocument> const & OCalcConnection::acquireDoc()
|
|||
try
|
||||
{
|
||||
xComponent = xDesktop->loadComponentFromURL(
|
||||
m_aFileName, "_blank", 0, aArgs );
|
||||
m_aFileName, u"_blank"_ustr, 0, aArgs );
|
||||
}
|
||||
catch( const Exception& )
|
||||
{
|
||||
|
@ -190,7 +190,7 @@ void OCalcConnection::disposing()
|
|||
// XServiceInfo
|
||||
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OCalcConnection, "com.sun.star.sdbc.drivers.calc.Connection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OCalcConnection, u"com.sun.star.sdbc.drivers.calc.Connection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
Reference< XDatabaseMetaData > SAL_CALL OCalcConnection::getMetaData( )
|
||||
|
@ -253,7 +253,7 @@ Reference< XPreparedStatement > SAL_CALL OCalcConnection::prepareCall( const OUS
|
|||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OConnection_BASE::rBHelper.bDisposed);
|
||||
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::prepareCall", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::prepareCall"_ustr, *this );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -67,7 +67,7 @@ static bool lcl_IsEmptyOrHidden( const Reference<XSpreadsheets>& xSheets, const
|
|||
if (xProp.is())
|
||||
{
|
||||
bool bVisible;
|
||||
Any aVisAny = xProp->getPropertyValue("IsVisible");
|
||||
Any aVisAny = xProp->getPropertyValue(u"IsVisible"_ustr);
|
||||
if ( (aVisAny >>= bVisible) && !bVisible)
|
||||
return true; // hidden
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ static bool lcl_IsUnnamed( const Reference<XDatabaseRanges>& xRanges, const OUSt
|
|||
{
|
||||
try
|
||||
{
|
||||
Any aUserAny = xRangeProp->getPropertyValue("IsUserDefined");
|
||||
Any aUserAny = xRangeProp->getPropertyValue(u"IsUserDefined"_ustr);
|
||||
bool bUserDefined;
|
||||
if ( aUserAny >>= bUserDefined )
|
||||
bUnnamed = !bUserDefined;
|
||||
|
@ -183,7 +183,7 @@ Reference< XResultSet > SAL_CALL OCalcDatabaseMetaData::getTables(
|
|||
Reference<XPropertySet> xDocProp( xDoc, UNO_QUERY );
|
||||
if ( xDocProp.is() )
|
||||
{
|
||||
Any aRangesAny = xDocProp->getPropertyValue("DatabaseRanges");
|
||||
Any aRangesAny = xDocProp->getPropertyValue(u"DatabaseRanges"_ustr);
|
||||
Reference<XDatabaseRanges> xRanges;
|
||||
if ( aRangesAny >>= xRanges )
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ using namespace ::com::sun::star::lang;
|
|||
|
||||
OUString SAL_CALL ODriver::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.sdbc.calc.ODriver";
|
||||
return u"com.sun.star.comp.sdbc.calc.ODriver"_ustr;
|
||||
}
|
||||
|
||||
// service names from file::OFileDriver
|
||||
|
|
|
@ -134,7 +134,7 @@ static CellContentType lcl_GetContentOrResultType( const Reference<XCell>& xCell
|
|||
Reference<XPropertySet> xProp( xCell, UNO_QUERY );
|
||||
try
|
||||
{
|
||||
xProp->getPropertyValue( "CellContentType" ) >>= eCellType; // type of cell content
|
||||
xProp->getPropertyValue( u"CellContentType"_ustr ) >>= eCellType; // type of cell content
|
||||
}
|
||||
catch (UnknownPropertyException&)
|
||||
{
|
||||
|
@ -248,7 +248,7 @@ static void lcl_GetColumnInfo( const Reference<XSpreadsheet>& xSheet, const Refe
|
|||
{
|
||||
sal_Int32 nKey = 0;
|
||||
|
||||
if ( xProp->getPropertyValue( "NumberFormat" ) >>= nKey )
|
||||
if ( xProp->getPropertyValue( u"NumberFormat"_ustr ) >>= nKey )
|
||||
{
|
||||
const Reference<XPropertySet> xFormat = xFormats->getByKey( nKey );
|
||||
if ( xFormat.is() )
|
||||
|
@ -532,7 +532,7 @@ void OCalcTable::construct()
|
|||
Reference<XPropertySet> xDocProp( xDoc, UNO_QUERY );
|
||||
if ( xDocProp.is() )
|
||||
{
|
||||
Reference<XDatabaseRanges> xRanges(xDocProp->getPropertyValue("DatabaseRanges"),UNO_QUERY);
|
||||
Reference<XDatabaseRanges> xRanges(xDocProp->getPropertyValue(u"DatabaseRanges"_ustr),UNO_QUERY);
|
||||
|
||||
if ( xRanges.is() && xRanges->hasByName( m_Name ) )
|
||||
{
|
||||
|
@ -546,7 +546,7 @@ void OCalcTable::construct()
|
|||
bool bRangeHeader = true;
|
||||
Reference<XPropertySet> xFiltProp( xDBRange->getFilterDescriptor(), UNO_QUERY );
|
||||
if ( xFiltProp.is() )
|
||||
xFiltProp->getPropertyValue("ContainsHeader") >>= bRangeHeader;
|
||||
xFiltProp->getPropertyValue(u"ContainsHeader"_ustr) >>= bRangeHeader;
|
||||
|
||||
Reference<XSheetCellRange> xSheetRange( xRefer->getReferredCells(), UNO_QUERY );
|
||||
Reference<XCellRangeAddressable> xAddr( xSheetRange, UNO_QUERY );
|
||||
|
@ -580,7 +580,7 @@ void OCalcTable::construct()
|
|||
if (xProp.is())
|
||||
{
|
||||
css::util::Date aDateStruct;
|
||||
if ( xProp->getPropertyValue("NullDate") >>= aDateStruct )
|
||||
if ( xProp->getPropertyValue(u"NullDate"_ustr) >>= aDateStruct )
|
||||
m_aNullDate = ::Date( aDateStruct.Day, aDateStruct.Month, aDateStruct.Year );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@ using namespace ::com::sun::star::container;
|
|||
sdbcx::ObjectType OCalcTables::createObject(const OUString& _rName)
|
||||
{
|
||||
rtl::Reference<OCalcTable> pTable = new OCalcTable(this, static_cast<OCalcConnection*>(static_cast<OFileCatalog&>(m_rParent).getConnection()),
|
||||
_rName,"TABLE");
|
||||
_rName,u"TABLE"_ustr);
|
||||
pTable->construct();
|
||||
return pTable;
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ Reference< XResultSet > OComponentDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
ODatabaseMetaDataResultSet::ORow aRow
|
||||
{
|
||||
ODatabaseMetaDataResultSet::getEmptyValue(),
|
||||
new ORowSetValueDecorator(OUString("VARCHAR")),
|
||||
new ORowSetValueDecorator(u"VARCHAR"_ustr),
|
||||
new ORowSetValueDecorator(DataType::VARCHAR),
|
||||
new ORowSetValueDecorator(sal_Int32(65535)),
|
||||
ODatabaseMetaDataResultSet::getQuoteValue(),
|
||||
|
@ -75,35 +75,35 @@ Reference< XResultSet > OComponentDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DECIMAL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DECIMAL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
aRow[15] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BOOL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BOOL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BIT);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int32(15));
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DATE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DATE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DATE);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
aRow[15] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIME"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIME"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIME);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
aRow[15] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIMESTAMP"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIMESTAMP"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get0Value();
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
|
@ -187,10 +187,10 @@ Reference< XResultSet > SAL_CALL OComponentDatabaseMetaData::getColumns(
|
|||
switch(aRow[11]->getValue().getInt32())
|
||||
{
|
||||
case ColumnValue::NO_NULLS:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("NO"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"NO"_ustr);
|
||||
break;
|
||||
case ColumnValue::NULLABLE:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
break;
|
||||
default:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString());
|
||||
|
|
|
@ -28,6 +28,6 @@ rtl::Reference<OResultSet> OComponentPreparedStatement::createResultSet()
|
|||
return new connectivity::component::OComponentResultSet(this,m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OComponentPreparedStatement,"com.sun.star.sdbc.driver.component.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(OComponentPreparedStatement,u"com.sun.star.sdbc.driver.component.PreparedStatement"_ustr,u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -45,12 +45,12 @@ OComponentResultSet::OComponentResultSet( OStatement_Base* pStmt,connectivity::O
|
|||
|
||||
OUString SAL_CALL OComponentResultSet::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbcx.component.ResultSet";
|
||||
return u"com.sun.star.sdbcx.component.ResultSet"_ustr;
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL OComponentResultSet::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.ResultSet", "com.sun.star.sdbcx.ResultSet" };
|
||||
return { u"com.sun.star.sdbc.ResultSet"_ustr, u"com.sun.star.sdbcx.ResultSet"_ustr };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OComponentResultSet::supportsService( const OUString& _rServiceName )
|
||||
|
@ -130,7 +130,7 @@ Sequence< sal_Int32 > SAL_CALL OComponentResultSet::deleteRows( const Sequence<
|
|||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
|
||||
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XDeleteRows::deleteRows", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XDeleteRows::deleteRows"_ustr, *this );
|
||||
}
|
||||
|
||||
bool OComponentResultSet::fillIndexValues(const Reference< XColumnsSupplier> &/*_xIndex*/)
|
||||
|
|
|
@ -28,7 +28,7 @@ rtl::Reference<OResultSet> OComponentStatement::createResultSet()
|
|||
return new connectivity::component::OComponentResultSet(this, m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OComponentStatement, "com.sun.star.sdbc.driver.component.Statement",
|
||||
"com.sun.star.sdbc.Statement");
|
||||
IMPLEMENT_SERVICE_INFO(OComponentStatement, u"com.sun.star.sdbc.driver.component.Statement"_ustr,
|
||||
u"com.sun.star.sdbc.Statement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -39,7 +39,7 @@ void ODbaseCatalog::refreshTables()
|
|||
{
|
||||
::std::vector<OUString> aVector;
|
||||
Sequence<OUString> aTypes;
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), "%", "%", aTypes);
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), u"%"_ustr, u"%"_ustr, aTypes);
|
||||
|
||||
if (xResult.is())
|
||||
{
|
||||
|
|
|
@ -47,7 +47,7 @@ ODbaseConnection::~ODbaseConnection()
|
|||
|
||||
// XServiceInfo
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseConnection, "com.sun.star.sdbc.drivers.dbase.Connection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseConnection, u"com.sun.star.sdbc.drivers.dbase.Connection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
Reference< XDatabaseMetaData > SAL_CALL ODbaseConnection::getMetaData( )
|
||||
|
@ -102,7 +102,7 @@ Reference< XPreparedStatement > SAL_CALL ODbaseConnection::prepareStatement( con
|
|||
|
||||
Reference< XPreparedStatement > SAL_CALL ODbaseConnection::prepareCall( const OUString& /*sql*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::prepareCall", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::prepareCall"_ustr, *this );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -61,19 +61,19 @@ Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
ODatabaseMetaDataResultSet::ORow aRow
|
||||
{
|
||||
ODatabaseMetaDataResultSet::getEmptyValue(),
|
||||
new ORowSetValueDecorator(OUString("VARCHAR")),
|
||||
new ORowSetValueDecorator(u"VARCHAR"_ustr),
|
||||
new ORowSetValueDecorator(DataType::VARCHAR),
|
||||
new ORowSetValueDecorator(sal_Int32(254)),
|
||||
ODatabaseMetaDataResultSet::getQuoteValue(),
|
||||
ODatabaseMetaDataResultSet::getQuoteValue(),
|
||||
new ORowSetValueDecorator(OUString("length")),
|
||||
new ORowSetValueDecorator(u"length"_ustr),
|
||||
new ORowSetValueDecorator(sal_Int32(ColumnValue::NULLABLE)),
|
||||
ODatabaseMetaDataResultSet::get1Value(),
|
||||
new ORowSetValueDecorator(sal_Int32(ColumnSearch::FULL)),
|
||||
ODatabaseMetaDataResultSet::get1Value(),
|
||||
ODatabaseMetaDataResultSet::get0Value(),
|
||||
ODatabaseMetaDataResultSet::get0Value(),
|
||||
new ORowSetValueDecorator(OUString("C")),
|
||||
new ORowSetValueDecorator(u"C"_ustr),
|
||||
ODatabaseMetaDataResultSet::get0Value(),
|
||||
ODatabaseMetaDataResultSet::get0Value(),
|
||||
ODatabaseMetaDataResultSet::getEmptyValue(),
|
||||
|
@ -83,62 +83,62 @@ Reference< XResultSet > ODbaseDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("LONGVARCHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"LONGVARCHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::LONGVARCHAR);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(2147483647));
|
||||
aRow[6] = new ORowSetValueDecorator();
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("M"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"M"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DATE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DATE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DATE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(10));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("D"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"D"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BOOLEAN"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BOOLEAN"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BIT);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get1Value();
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getEmptyValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getEmptyValue();
|
||||
aRow[6] = new ORowSetValueDecorator(OUString());
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("L"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"L"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DOUBLE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DOUBLE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DOUBLE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(8));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("B"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"B"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[11] = new ORowSetValueDecorator(ORowSetValue(true));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("Y"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"Y"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIMESTAMP"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIMESTAMP"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
|
||||
aRow[11] = new ORowSetValueDecorator(ORowSetValue(false));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("T"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"T"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("INTEGER"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"INTEGER"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::INTEGER);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(10));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("I"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"I"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DECIMAL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DECIMAL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length,scale"));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("F"));
|
||||
aRow[6] = new ORowSetValueDecorator(u"length,scale"_ustr);
|
||||
aRow[13] = new ORowSetValueDecorator(u"F"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("NUMERIC"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"NUMERIC"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(16));
|
||||
aRow[13] = new ORowSetValueDecorator(OUString("N"));
|
||||
aRow[13] = new ORowSetValueDecorator(u"N"_ustr);
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int32(16));
|
||||
aRows.push_back(aRow);
|
||||
|
||||
|
@ -211,10 +211,10 @@ Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getColumns(
|
|||
switch(aRow[11]->getValue().getInt32())
|
||||
{
|
||||
case ColumnValue::NO_NULLS:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("NO"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"NO"_ustr);
|
||||
break;
|
||||
case ColumnValue::NULLABLE:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
break;
|
||||
default:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString());
|
||||
|
@ -256,7 +256,7 @@ Reference< XResultSet > SAL_CALL ODbaseDatabaseMetaData::getIndexInfo(
|
|||
ODatabaseMetaDataResultSet::ORow aRow(14);
|
||||
|
||||
aRow[5] = new ORowSetValueDecorator(OUString());
|
||||
aRow[10] = new ORowSetValueDecorator(OUString("A"));
|
||||
aRow[10] = new ORowSetValueDecorator(u"A"_ustr);
|
||||
|
||||
Reference< XIndexesSupplier> xTable(
|
||||
xNames->getByName(table), css::uno::UNO_QUERY);
|
||||
|
@ -349,7 +349,7 @@ sal_Bool SAL_CALL ODbaseDatabaseMetaData::isReadOnly( )
|
|||
|
||||
bool bReadOnly = false;
|
||||
::ucbhelper::Content aFile(m_pConnection->getContent(),Reference< XCommandEnvironment >(), comphelper::getProcessComponentContext());
|
||||
aFile.getPropertyValue("IsReadOnly") >>= bReadOnly;
|
||||
aFile.getPropertyValue(u"IsReadOnly"_ustr) >>= bReadOnly;
|
||||
|
||||
return bReadOnly;
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ using namespace ::com::sun::star::lang;
|
|||
|
||||
OUString SAL_CALL ODriver::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.sdbc.dbase.ODriver";
|
||||
return u"com.sun.star.comp.sdbc.dbase.ODriver"_ustr;
|
||||
}
|
||||
|
||||
|
||||
|
@ -80,29 +80,29 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
|
|||
{
|
||||
if ( acceptsURL(url) )
|
||||
{
|
||||
Sequence< OUString > aBoolean { "0", "1" };
|
||||
Sequence< OUString > aBoolean { u"0"_ustr, u"1"_ustr };
|
||||
|
||||
return
|
||||
{
|
||||
{
|
||||
"CharSet"
|
||||
,"CharSet of the database."
|
||||
u"CharSet"_ustr
|
||||
,u"CharSet of the database."_ustr
|
||||
,false
|
||||
,OUString()
|
||||
,Sequence< OUString >()
|
||||
},
|
||||
{
|
||||
"ShowDeleted"
|
||||
,"Display inactive records."
|
||||
u"ShowDeleted"_ustr
|
||||
,u"Display inactive records."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"EnableSQL92Check"
|
||||
,"Use SQL92 naming constraints."
|
||||
u"EnableSQL92Check"_ustr
|
||||
,u"Use SQL92 naming constraints."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
}
|
||||
};
|
||||
|
|
|
@ -46,7 +46,7 @@ using namespace com::sun::star::sdbc;
|
|||
using namespace com::sun::star::uno;
|
||||
using namespace com::sun::star::beans;
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseIndex,"com.sun.star.sdbcx.driver.dbase.Index","com.sun.star.sdbcx.Index");
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseIndex,u"com.sun.star.sdbcx.driver.dbase.Index"_ustr,u"com.sun.star.sdbcx.Index"_ustr);
|
||||
|
||||
ODbaseIndex::ODbaseIndex(ODbaseTable* _pTable)
|
||||
: OIndex(true/*_pTable->getConnection()->getMetaData()->supportsMixedCaseQuotedIdentifiers()*/)
|
||||
|
|
|
@ -28,7 +28,8 @@ rtl::Reference<OResultSet> ODbasePreparedStatement::createResultSet()
|
|||
return new ODbaseResultSet(this, m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(ODbasePreparedStatement, "com.sun.star.sdbc.driver.dbase.PreparedStatement",
|
||||
"com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(ODbasePreparedStatement,
|
||||
u"com.sun.star.sdbc.driver.dbase.PreparedStatement"_ustr,
|
||||
u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -49,12 +49,12 @@ ODbaseResultSet::ODbaseResultSet( OStatement_Base* pStmt,connectivity::OSQLParse
|
|||
|
||||
OUString SAL_CALL ODbaseResultSet::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbcx.dbase.ResultSet";
|
||||
return u"com.sun.star.sdbcx.dbase.ResultSet"_ustr;
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL ODbaseResultSet::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.ResultSet", "com.sun.star.sdbcx.ResultSet" };
|
||||
return { u"com.sun.star.sdbc.ResultSet"_ustr, u"com.sun.star.sdbcx.ResultSet"_ustr };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ODbaseResultSet::supportsService( const OUString& _rServiceName )
|
||||
|
@ -149,7 +149,7 @@ Sequence< sal_Int32 > SAL_CALL ODbaseResultSet::deleteRows( const Sequence< An
|
|||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
|
||||
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XDeleteRows::deleteRows", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XDeleteRows::deleteRows"_ustr, *this );
|
||||
}
|
||||
|
||||
bool ODbaseResultSet::fillIndexValues(const Reference< XColumnsSupplier> &_xIndex)
|
||||
|
|
|
@ -29,6 +29,6 @@ rtl::Reference<OResultSet> ODbaseStatement::createResultSet()
|
|||
return new ODbaseResultSet(this,m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseStatement,"com.sun.star.sdbc.driver.dbase.Statement","com.sun.star.sdbc.Statement");
|
||||
IMPLEMENT_SERVICE_INFO(ODbaseStatement,u"com.sun.star.sdbc.driver.dbase.Statement"_ustr,u"com.sun.star.sdbc.Statement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -1052,7 +1052,7 @@ bool ODbaseTable::CreateImpl()
|
|||
try
|
||||
{
|
||||
Content aContent(aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
|
||||
aContent.executeCommand( "delete", css::uno::Any( true ) );
|
||||
aContent.executeCommand( u"delete"_ustr, css::uno::Any( true ) );
|
||||
}
|
||||
catch(const Exception&) // an exception is thrown when no file exists
|
||||
{
|
||||
|
@ -1080,7 +1080,7 @@ bool ODbaseTable::CreateImpl()
|
|||
try
|
||||
{
|
||||
Content aMemoContent(aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
|
||||
aMemoContent.executeCommand( "delete", css::uno::Any( true ) );
|
||||
aMemoContent.executeCommand( u"delete"_ustr, css::uno::Any( true ) );
|
||||
}
|
||||
catch(const Exception&)
|
||||
{
|
||||
|
@ -1098,7 +1098,7 @@ bool ODbaseTable::CreateImpl()
|
|||
try
|
||||
{
|
||||
Content aMemoContent(aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
|
||||
aMemoContent.executeCommand( "delete", css::uno::Any( true ) );
|
||||
aMemoContent.executeCommand( u"delete"_ustr, css::uno::Any( true ) );
|
||||
}
|
||||
catch(const ContentCreationException&)
|
||||
{
|
||||
|
@ -1439,7 +1439,7 @@ bool ODbaseTable::Drop_Static(std::u16string_view _sUrl, bool _bHasMemoFields, O
|
|||
try
|
||||
{
|
||||
::ucbhelper::Content aDeleteContent( aURL.GetMainURL( INetURLObject::DecodeMechanism::NONE ), Reference< XCommandEnvironment >(), comphelper::getProcessComponentContext() );
|
||||
aDeleteContent.executeCommand( "delete", Any( true ) );
|
||||
aDeleteContent.executeCommand( u"delete"_ustr, Any( true ) );
|
||||
}
|
||||
catch(const Exception&)
|
||||
{
|
||||
|
@ -2308,14 +2308,14 @@ namespace
|
|||
{
|
||||
Content aContent(aURL.GetMainURL(INetURLObject::DecodeMechanism::NONE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
|
||||
|
||||
Sequence< PropertyValue > aProps{ { "Title",
|
||||
Sequence< PropertyValue > aProps{ { u"Title"_ustr,
|
||||
-1, // n/a
|
||||
Any(sNewName),
|
||||
css::beans::PropertyState_DIRECT_VALUE } };
|
||||
Sequence< Any > aValues;
|
||||
aContent.executeCommand( "setPropertyValues",Any(aProps) ) >>= aValues;
|
||||
aContent.executeCommand( u"setPropertyValues"_ustr,Any(aProps) ) >>= aValues;
|
||||
if(aValues.hasElements() && aValues[0].hasValue())
|
||||
throw Exception("setPropertyValues returned non-zero", nullptr);
|
||||
throw Exception(u"setPropertyValues returned non-zero"_ustr, nullptr);
|
||||
}
|
||||
catch(const Exception&)
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ using namespace ::com::sun::star::container;
|
|||
sdbcx::ObjectType ODbaseTables::createObject(const OUString& _rName)
|
||||
{
|
||||
rtl::Reference<ODbaseTable> pRet = new ODbaseTable(this, static_cast<ODbaseConnection*>(static_cast<OFileCatalog&>(m_rParent).getConnection()),
|
||||
_rName,"TABLE");
|
||||
_rName,u"TABLE"_ustr);
|
||||
|
||||
pRet->construct();
|
||||
return pRet;
|
||||
|
@ -79,7 +79,7 @@ sdbcx::ObjectType ODbaseTables::appendObject( const OUString& _rForName, const R
|
|||
catch(Exception& ex)
|
||||
{
|
||||
css::uno::Any anyEx = cppu::getCaughtException();
|
||||
throw SQLException( ex.Message, nullptr, "", 0, anyEx );
|
||||
throw SQLException( ex.Message, nullptr, u""_ustr, 0, anyEx );
|
||||
}
|
||||
}
|
||||
return createObject( _rForName );
|
||||
|
|
|
@ -37,9 +37,9 @@ OEvoabCatalog::OEvoabCatalog(OEvoabConnection* _pCon) :
|
|||
void OEvoabCatalog::refreshTables()
|
||||
{
|
||||
::std::vector< OUString> aVector;
|
||||
Sequence< OUString > aTypes { "TABLE" };
|
||||
Sequence< OUString > aTypes { u"TABLE"_ustr };
|
||||
Reference< XResultSet > xResult = m_xMetaData->getTables(
|
||||
Any(), "%", "%", aTypes);
|
||||
Any(), u"%"_ustr, u"%"_ustr, aTypes);
|
||||
|
||||
if(xResult.is())
|
||||
{
|
||||
|
|
|
@ -56,7 +56,7 @@ OEvoabConnection::~OEvoabConnection()
|
|||
|
||||
// XServiceInfo
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OEvoabConnection, "com.sun.star.sdbc.drivers.evoab.Connection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OEvoabConnection, u"com.sun.star.sdbc.drivers.evoab.Connection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
void OEvoabConnection::construct(const OUString& url, const Sequence< PropertyValue >& info)
|
||||
|
@ -147,7 +147,7 @@ Reference< XPreparedStatement > SAL_CALL OEvoabConnection::prepareStatement( con
|
|||
|
||||
Reference< XPreparedStatement > SAL_CALL OEvoabConnection::prepareCall( const OUString& /*sql*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::prepareCall", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::prepareCall"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
sal_Bool SAL_CALL OEvoabConnection::isClosed( )
|
||||
|
@ -189,7 +189,7 @@ void OEvoabConnection::disposing()
|
|||
// -------------------------------- stubbed methods ------------------------------------------------
|
||||
void SAL_CALL OEvoabConnection::setAutoCommit( sal_Bool /*autoCommit*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setAutoCommit", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setAutoCommit"_ustr, *this );
|
||||
}
|
||||
sal_Bool SAL_CALL OEvoabConnection::getAutoCommit( )
|
||||
{
|
||||
|
@ -203,7 +203,7 @@ void SAL_CALL OEvoabConnection::rollback( )
|
|||
}
|
||||
void SAL_CALL OEvoabConnection::setReadOnly( sal_Bool /*readOnly*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setReadOnly", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setReadOnly"_ustr, *this );
|
||||
}
|
||||
sal_Bool SAL_CALL OEvoabConnection::isReadOnly( )
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ sal_Bool SAL_CALL OEvoabConnection::isReadOnly( )
|
|||
}
|
||||
void SAL_CALL OEvoabConnection::setCatalog( const OUString& /*catalog*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setCatalog", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setCatalog"_ustr, *this );
|
||||
}
|
||||
|
||||
OUString SAL_CALL OEvoabConnection::getCatalog( )
|
||||
|
@ -220,7 +220,7 @@ OUString SAL_CALL OEvoabConnection::getCatalog( )
|
|||
}
|
||||
void SAL_CALL OEvoabConnection::setTransactionIsolation( sal_Int32 /*level*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setTransactionIsolation", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setTransactionIsolation"_ustr, *this );
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL OEvoabConnection::getTransactionIsolation( )
|
||||
|
@ -230,12 +230,12 @@ sal_Int32 SAL_CALL OEvoabConnection::getTransactionIsolation( )
|
|||
|
||||
Reference< css::container::XNameAccess > SAL_CALL OEvoabConnection::getTypeMap( )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::getTypeMap", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::getTypeMap"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
void SAL_CALL OEvoabConnection::setTypeMap( const Reference< css::container::XNameAccess >& /*typeMap*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setTypeMap", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setTypeMap"_ustr, *this );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -190,9 +190,9 @@ namespace connectivity::evoab
|
|||
switch( getFieldType( nCol ) )
|
||||
{
|
||||
case DataType::BIT:
|
||||
return "BIT";
|
||||
return u"BIT"_ustr;
|
||||
case DataType::VARCHAR:
|
||||
return "VARCHAR";
|
||||
return u"VARCHAR"_ustr;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -290,10 +290,10 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getColumns(
|
|||
// CHAR_OCTET_LENGTH, refer to [5]
|
||||
aRow[16] = new ORowSetValueDecorator(s_nCHAR_OCTET_LENGTH);
|
||||
// IS_NULLABLE
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
|
||||
|
||||
aRow[3] = new ORowSetValueDecorator(OUString("TABLE"));
|
||||
aRow[3] = new ORowSetValueDecorator(u"TABLE"_ustr);
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
|
||||
initFields();
|
||||
|
@ -447,7 +447,7 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getCatalogTerm( )
|
|||
OUString OEvoabDatabaseMetaData::impl_getIdentifierQuoteString_throw( )
|
||||
{
|
||||
// normally this is "
|
||||
return "\"";
|
||||
return u"\""_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL OEvoabDatabaseMetaData::getExtraNameCharacters( )
|
||||
|
@ -803,12 +803,12 @@ OUString SAL_CALL OEvoabDatabaseMetaData::getDriverName( )
|
|||
|
||||
OUString SAL_CALL OEvoabDatabaseMetaData::getDriverVersion()
|
||||
{
|
||||
return "1";
|
||||
return u"1"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductVersion( )
|
||||
{
|
||||
return "0";
|
||||
return u"0"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL OEvoabDatabaseMetaData::getDatabaseProductName( )
|
||||
|
@ -1019,7 +1019,7 @@ Reference< XResultSet > OEvoabDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
ODatabaseMetaDataResultSet::ORow aRow
|
||||
{
|
||||
ODatabaseMetaDataResultSet::getEmptyValue() ,
|
||||
new ORowSetValueDecorator(OUString("VARCHAR")) ,
|
||||
new ORowSetValueDecorator(u"VARCHAR"_ustr) ,
|
||||
new ORowSetValueDecorator(DataType::VARCHAR) ,
|
||||
new ORowSetValueDecorator(sal_Int32(s_nCHAR_OCTET_LENGTH)) ,
|
||||
ODatabaseMetaDataResultSet::getQuoteValue() ,
|
||||
|
@ -1041,7 +1041,7 @@ Reference< XResultSet > OEvoabDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("VARCHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"VARCHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(65535));
|
||||
tmp.push_back(aRow);
|
||||
|
@ -1146,7 +1146,7 @@ Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getTables(
|
|||
|
||||
Reference< XResultSet > SAL_CALL OEvoabDatabaseMetaData::getUDTs( const Any& /*catalog*/, const OUString& /*schemaPattern*/, const OUString& /*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XDatabaseMetaDaza::getUDTs", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XDatabaseMetaDaza::getUDTs"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ Sequence< OUString > SAL_CALL OEvoabDriver::getSupportedServiceNames( )
|
|||
{
|
||||
// which service is supported
|
||||
// for more information @see com.sun.star.sdbc.Driver
|
||||
return { "com.sun.star.sdbc.Driver" };
|
||||
return { u"com.sun.star.sdbc.Driver"_ustr };
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ using namespace com::sun::star::container;
|
|||
using namespace com::sun::star::io;
|
||||
using namespace com::sun::star::util;
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OEvoabPreparedStatement,"com.sun.star.sdbcx.evoab.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(OEvoabPreparedStatement,u"com.sun.star.sdbcx.evoab.PreparedStatement"_ustr,u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
|
||||
OEvoabPreparedStatement::OEvoabPreparedStatement( OEvoabConnection* _pConnection )
|
||||
|
@ -133,14 +133,14 @@ sal_Int32 SAL_CALL OEvoabPreparedStatement::executeUpdate( )
|
|||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XStatement::executeUpdate", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XStatement::executeUpdate"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setString( sal_Int32 /*parameterIndex*/, const OUString& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setString", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setString"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
@ -164,97 +164,97 @@ Reference< XResultSet > SAL_CALL OEvoabPreparedStatement::executeQuery( )
|
|||
|
||||
void SAL_CALL OEvoabPreparedStatement::setBoolean( sal_Int32 /*parameterIndex*/, sal_Bool /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBoolean", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setBoolean"_ustr, *this );
|
||||
|
||||
}
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setByte( sal_Int32 /*parameterIndex*/, sal_Int8 /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setByte", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setByte"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setDate( sal_Int32 /*parameterIndex*/, const Date& /*aData*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setDate", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setDate"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setTime( sal_Int32 /*parameterIndex*/, const css::util::Time& /*aVal*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setTime", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setTime"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setTimestamp( sal_Int32 /*parameterIndex*/, const DateTime& /*aVal*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setTimestamp", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setTimestamp"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setDouble( sal_Int32 /*parameterIndex*/, double /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setDouble", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setDouble"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setFloat( sal_Int32 /*parameterIndex*/, float /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setFloat", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setFloat"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setInt( sal_Int32 /*parameterIndex*/, sal_Int32 /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setInt", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setInt"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setLong", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setLong"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setNull", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setNull"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setClob", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setClob"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBlob", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setBlob"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setArray", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setArray"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setRef", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setRef"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setObjectWithInfo( sal_Int32 /*parameterIndex*/, const Any& /*x*/, sal_Int32 /*sqlType*/, sal_Int32 /*scale*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setObjectWithInfo", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setObjectWithInfo"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setObjectNull( sal_Int32 /*parameterIndex*/, sal_Int32 /*sqlType*/, const OUString& /*typeName*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setObjectNull", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setObjectNull"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
@ -273,25 +273,25 @@ void SAL_CALL OEvoabPreparedStatement::setObject( sal_Int32 parameterIndex, cons
|
|||
|
||||
void SAL_CALL OEvoabPreparedStatement::setShort( sal_Int32 /*parameterIndex*/, sal_Int16 /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setShort", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setShort"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setBytes( sal_Int32 /*parameterIndex*/, const Sequence< sal_Int8 >& /*x*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBytes", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setBytes"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setCharacterStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setCharacterStream", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setCharacterStream"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OEvoabPreparedStatement::setBinaryStream( sal_Int32 /*parameterIndex*/, const Reference< XInputStream >& /*x*/, sal_Int32 /*length*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XParameters::setBinaryStream", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XParameters::setBinaryStream"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -58,12 +58,12 @@ namespace ErrorCondition = ::com::sun::star::sdb::ErrorCondition;
|
|||
|
||||
OUString SAL_CALL OEvoabResultSet::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbcx.evoab.ResultSet";
|
||||
return u"com.sun.star.sdbcx.evoab.ResultSet"_ustr;
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL OEvoabResultSet::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.ResultSet" };
|
||||
return { u"com.sun.star.sdbc.ResultSet"_ustr };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OEvoabResultSet::supportsService( const OUString& _rServiceName )
|
||||
|
@ -657,103 +657,103 @@ sal_Bool SAL_CALL OEvoabResultSet::getBoolean( sal_Int32 nColumnNum )
|
|||
|
||||
sal_Int64 SAL_CALL OEvoabResultSet::getLong( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getLong", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getLong"_ustr, *this );
|
||||
return sal_Int64();
|
||||
}
|
||||
|
||||
Reference< XArray > SAL_CALL OEvoabResultSet::getArray( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getArray", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getArray"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference< XClob > SAL_CALL OEvoabResultSet::getClob( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getClob", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getClob"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference< XBlob > SAL_CALL OEvoabResultSet::getBlob( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBlob", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getBlob"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference< XRef > SAL_CALL OEvoabResultSet::getRef( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getRef", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getRef"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Any SAL_CALL OEvoabResultSet::getObject( sal_Int32 /*nColumnNum*/, const Reference< css::container::XNameAccess >& /*typeMap*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getObject", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getObject"_ustr, *this );
|
||||
return Any();
|
||||
}
|
||||
|
||||
sal_Int16 SAL_CALL OEvoabResultSet::getShort( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getShort", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getShort"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
css::util::Time SAL_CALL OEvoabResultSet::getTime( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getTime", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getTime"_ustr, *this );
|
||||
return css::util::Time();
|
||||
}
|
||||
|
||||
util::DateTime SAL_CALL OEvoabResultSet::getTimestamp( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getTimestamp", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getTimestamp"_ustr, *this );
|
||||
return css::util::DateTime();
|
||||
}
|
||||
|
||||
Reference< XInputStream > SAL_CALL OEvoabResultSet::getBinaryStream( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBinaryStream", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getBinaryStream"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference< XInputStream > SAL_CALL OEvoabResultSet::getCharacterStream( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getCharacterStream", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getCharacterStream"_ustr, *this );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
sal_Int8 SAL_CALL OEvoabResultSet::getByte( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getByte", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getByte"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
Sequence< sal_Int8 > SAL_CALL OEvoabResultSet::getBytes( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getBytes", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getBytes"_ustr, *this );
|
||||
return Sequence< sal_Int8 >();
|
||||
}
|
||||
|
||||
css::util::Date SAL_CALL OEvoabResultSet::getDate( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getDate", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getDate"_ustr, *this );
|
||||
return css::util::Date();
|
||||
}
|
||||
|
||||
double SAL_CALL OEvoabResultSet::getDouble( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getDouble", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getDouble"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
float SAL_CALL OEvoabResultSet::getFloat( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getFloat", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getFloat"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL OEvoabResultSet::getInt( sal_Int32 /*nColumnNum*/ )
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException( "XRow::getInt", *this );
|
||||
::dbtools::throwFunctionNotSupportedSQLException( u"XRow::getInt"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
// XRow Interface Ends
|
||||
|
|
|
@ -640,7 +640,7 @@ Reference< XPropertySetInfo > SAL_CALL OCommonStatement::getPropertySetInfo( )
|
|||
// = OStatement
|
||||
|
||||
|
||||
IMPLEMENT_SERVICE_INFO( OStatement, "com.sun.star.comp.sdbcx.evoab.OStatement", "com.sun.star.sdbc.Statement" );
|
||||
IMPLEMENT_SERVICE_INFO( OStatement, u"com.sun.star.comp.sdbcx.evoab.OStatement"_ustr, u"com.sun.star.sdbc.Statement"_ustr );
|
||||
|
||||
|
||||
IMPLEMENT_FORWARD_XINTERFACE2( OStatement, OCommonStatement, OStatement_IBase )
|
||||
|
@ -672,7 +672,7 @@ sal_Int32 SAL_CALL OStatement::executeUpdate( const OUString& /*sql*/ )
|
|||
{
|
||||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OCommonStatement_IBase::rBHelper.bDisposed);
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XStatement::executeUpdate", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XStatement::executeUpdate"_ustr, *this );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ void OEvoabTable::refreshColumns()
|
|||
if (!isNew())
|
||||
{
|
||||
Reference< XResultSet > xResult = m_pConnection->getMetaData()->getColumns(
|
||||
Any(), m_SchemaName, m_Name, "%");
|
||||
Any(), m_SchemaName, m_Name, u"%"_ustr);
|
||||
|
||||
if (xResult.is())
|
||||
{
|
||||
|
|
|
@ -33,9 +33,9 @@ using namespace ::com::sun::star::sdbc;
|
|||
|
||||
ObjectType OEvoabTables::createObject(const OUString& aName)
|
||||
{
|
||||
Sequence< OUString > aTypes { "TABLE" };
|
||||
Sequence< OUString > aTypes { u"TABLE"_ustr };
|
||||
|
||||
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),"%",aName,aTypes);
|
||||
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),u"%"_ustr,aName,aTypes);
|
||||
|
||||
ObjectType xRet;
|
||||
if(xResult.is())
|
||||
|
@ -49,8 +49,8 @@ ObjectType OEvoabTables::createObject(const OUString& aName)
|
|||
aName,
|
||||
xRow->getString(4),
|
||||
xRow->getString(5),
|
||||
"",
|
||||
"");
|
||||
u""_ustr,
|
||||
u""_ustr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ void OFileCatalog::refreshTables()
|
|||
::std::vector< OUString> aVector;
|
||||
Sequence< OUString > aTypes;
|
||||
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
|
||||
"%", "%", aTypes);
|
||||
u"%"_ustr, u"%"_ustr, aTypes);
|
||||
fillNames(xResult,aVector);
|
||||
|
||||
if(m_pTables)
|
||||
|
|
|
@ -166,7 +166,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
|
|||
}
|
||||
|
||||
// set fields to fetch
|
||||
Sequence< OUString > aProps { "Title" };
|
||||
Sequence< OUString > aProps { u"Title"_ustr };
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ void OConnection::construct(const OUString& url,const Sequence< PropertyValue >&
|
|||
}
|
||||
// XServiceInfo
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OConnection, "com.sun.star.sdbc.drivers.file.Connection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OConnection, u"com.sun.star.sdbc.drivers.file.Connection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
Reference< XStatement > SAL_CALL OConnection::createStatement( )
|
||||
|
@ -238,7 +238,7 @@ Reference< XPreparedStatement > SAL_CALL OConnection::prepareStatement( const OU
|
|||
|
||||
Reference< XPreparedStatement > SAL_CALL OConnection::prepareCall( const OUString& /*sql*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XConnection::prepareCall", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XConnection::prepareCall"_ustr, *this );
|
||||
}
|
||||
|
||||
OUString SAL_CALL OConnection::nativeSQL( const OUString& sql )
|
||||
|
@ -313,7 +313,7 @@ sal_Bool SAL_CALL OConnection::isReadOnly( )
|
|||
|
||||
void SAL_CALL OConnection::setCatalog( const OUString& /*catalog*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XConnection::setCatalog", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XConnection::setCatalog"_ustr, *this );
|
||||
}
|
||||
|
||||
OUString SAL_CALL OConnection::getCatalog( )
|
||||
|
@ -323,7 +323,7 @@ OUString SAL_CALL OConnection::getCatalog( )
|
|||
|
||||
void SAL_CALL OConnection::setTransactionIsolation( sal_Int32 /*level*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XConnection::setTransactionIsolation", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XConnection::setTransactionIsolation"_ustr, *this );
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL OConnection::getTransactionIsolation( )
|
||||
|
@ -386,7 +386,7 @@ Reference< XTablesSupplier > OConnection::createCatalog()
|
|||
Reference< XDynamicResultSet > OConnection::getDir() const
|
||||
{
|
||||
Reference<XDynamicResultSet> xContent;
|
||||
Sequence< OUString > aProps { "Title" };
|
||||
Sequence< OUString > aProps { u"Title"_ustr };
|
||||
try
|
||||
{
|
||||
Reference<XContentIdentifier> xIdent = getContent()->getIdentifier();
|
||||
|
@ -418,7 +418,7 @@ void OConnection::throwUrlNotValid(const OUString & _rsUrl,const OUString & _rsM
|
|||
next <<= SQLException(_rsMessage, context, OUString(), 0, Any());
|
||||
SQLException aError(
|
||||
getResources().getResourceStringWithSubstitution(STR_NO_VALID_FILE_URL, "$URL$", _rsUrl),
|
||||
context, "S1000", 0, next);
|
||||
context, u"S1000"_ustr, 0, next);
|
||||
|
||||
throw aError;
|
||||
}
|
||||
|
|
|
@ -393,7 +393,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
|
|||
|
||||
aRow[2] = new ORowSetValueDecorator(*pBegin);
|
||||
aRow[6] = ODatabaseMetaDataResultSet::getSelectValue();
|
||||
aRow[7] = new ORowSetValueDecorator(OUString("NO"));
|
||||
aRow[7] = new ORowSetValueDecorator(u"NO"_ustr);
|
||||
aRows.push_back(aRow);
|
||||
|
||||
Reference< XPropertySet> xTable(
|
||||
|
@ -492,7 +492,7 @@ OUString SAL_CALL ODatabaseMetaData::getCatalogTerm( )
|
|||
|
||||
OUString ODatabaseMetaData::impl_getIdentifierQuoteString_throw( )
|
||||
{
|
||||
return "\"";
|
||||
return u"\""_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getExtraNameCharacters( )
|
||||
|
@ -619,7 +619,7 @@ Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( )
|
|||
{
|
||||
rtl::Reference<ODatabaseMetaDataResultSet> pResult = new ODatabaseMetaDataResultSet( ODatabaseMetaDataResultSet::eTableTypes );
|
||||
ODatabaseMetaDataResultSet::ORows aRows;
|
||||
aRows.push_back( { ODatabaseMetaDataResultSet::getEmptyValue(), new ORowSetValueDecorator(OUString("TABLE")) } );
|
||||
aRows.push_back( { ODatabaseMetaDataResultSet::getEmptyValue(), new ORowSetValueDecorator(u"TABLE"_ustr) } );
|
||||
pResult->setRows(std::move(aRows));
|
||||
return pResult;
|
||||
}
|
||||
|
@ -836,7 +836,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsANSI92IntermediateSQL( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getURL( )
|
||||
{
|
||||
return "sdbc:file:";
|
||||
return u"sdbc:file:"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getUserName( )
|
||||
|
@ -901,12 +901,12 @@ OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( )
|
||||
{
|
||||
return "UCASE,LCASE,ASCII,LENGTH,OCTET_LENGTH,CHAR_LENGTH,CHARACTER_LENGTH,CHAR,CONCAT,LOCATE,SUBSTRING,LTRIM,RTRIM,SPACE,REPLACE,REPEAT,INSERT,LEFT,RIGHT";
|
||||
return u"UCASE,LCASE,ASCII,LENGTH,OCTET_LENGTH,CHAR_LENGTH,CHARACTER_LENGTH,CHAR,CONCAT,LOCATE,SUBSTRING,LTRIM,RTRIM,SPACE,REPLACE,REPEAT,INSERT,LEFT,RIGHT"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( )
|
||||
{
|
||||
return "DAYOFWEEK,DAYOFMONTH,DAYOFYEAR,MONTH,DAYNAME,MONTHNAME,QUARTER,WEEK,YEAR,HOUR,MINUTE,SECOND,CURDATE,CURTIME,NOW";
|
||||
return u"DAYOFWEEK,DAYOFMONTH,DAYOFYEAR,MONTH,DAYNAME,MONTHNAME,QUARTER,WEEK,YEAR,HOUR,MINUTE,SECOND,CURDATE,CURTIME,NOW"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( )
|
||||
|
@ -916,7 +916,7 @@ OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( )
|
||||
{
|
||||
return "ABS,SIGN,MOD,FLOOR,CEILING,ROUND,EXP,LN,LOG,LOG10,POWER,SQRT,PI,COS,SIN,TAN,ACOS,ASIN,ATAN,ATAN2,DEGREES,RADIANS";
|
||||
return u"ABS,SIGN,MOD,FLOOR,CEILING,ROUND,EXP,LN,LOG,LOG10,POWER,SQRT,PI,COS,SIN,TAN,ACOS,ASIN,ATAN,ATAN2,DEGREES,RADIANS"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( )
|
||||
|
|
|
@ -63,7 +63,7 @@ void OFileDriver::disposing()
|
|||
|
||||
OUString SAL_CALL OFileDriver::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbc.driver.file.Driver";
|
||||
return u"com.sun.star.sdbc.driver.file.Driver"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFileDriver::supportsService( const OUString& _rServiceName )
|
||||
|
@ -74,7 +74,7 @@ sal_Bool SAL_CALL OFileDriver::supportsService( const OUString& _rServiceName )
|
|||
|
||||
Sequence< OUString > SAL_CALL OFileDriver::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.Driver", "com.sun.star.sdbcx.Driver" };
|
||||
return { u"com.sun.star.sdbc.Driver"_ustr, u"com.sun.star.sdbcx.Driver"_ustr };
|
||||
}
|
||||
|
||||
|
||||
|
@ -100,48 +100,48 @@ Sequence< DriverPropertyInfo > SAL_CALL OFileDriver::getPropertyInfo( const OUSt
|
|||
if ( acceptsURL(url) )
|
||||
{
|
||||
|
||||
Sequence< OUString > aBoolean { "0", "1" };
|
||||
Sequence< OUString > aBoolean { u"0"_ustr, u"1"_ustr };
|
||||
|
||||
return
|
||||
{
|
||||
{
|
||||
"CharSet"
|
||||
,"CharSet of the database."
|
||||
u"CharSet"_ustr
|
||||
,u"CharSet of the database."_ustr
|
||||
,false
|
||||
,{}
|
||||
,{}
|
||||
},
|
||||
{
|
||||
"Extension"
|
||||
,"Extension of the file format."
|
||||
u"Extension"_ustr
|
||||
,u"Extension of the file format."_ustr
|
||||
,false
|
||||
,".*"
|
||||
,u".*"_ustr
|
||||
,{}
|
||||
},
|
||||
{
|
||||
"ShowDeleted"
|
||||
,"Display inactive records."
|
||||
u"ShowDeleted"_ustr
|
||||
,u"Display inactive records."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"EnableSQL92Check"
|
||||
,"Use SQL92 naming constraints."
|
||||
u"EnableSQL92Check"_ustr
|
||||
,u"Use SQL92 naming constraints."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"UseRelativePath"
|
||||
,"Handle the connection url as relative path."
|
||||
u"UseRelativePath"_ustr
|
||||
,u"Handle the connection url as relative path."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"URL"
|
||||
,"The URL of the database document which is used to create an absolute path."
|
||||
u"URL"_ustr
|
||||
,u"The URL of the database document which is used to create an absolute path."_ustr
|
||||
,false
|
||||
,{}
|
||||
,{}
|
||||
|
|
|
@ -46,7 +46,7 @@ using namespace com::sun::star::sdbcx;
|
|||
using namespace com::sun::star::container;
|
||||
using namespace com::sun::star;
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbc.driver.file.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(OPreparedStatement,u"com.sun.star.sdbc.driver.file.PreparedStatement"_ustr,u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
OPreparedStatement::OPreparedStatement( OConnection* _pConnection)
|
||||
: OStatement_BASE2( _pConnection )
|
||||
|
@ -251,7 +251,7 @@ void SAL_CALL OPreparedStatement::setInt( sal_Int32 parameterIndex, sal_Int32 x
|
|||
|
||||
void SAL_CALL OPreparedStatement::setLong( sal_Int32 /*parameterIndex*/, sal_Int64 /*aVal*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XParameters::setLong", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XParameters::setLong"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
@ -269,25 +269,25 @@ void SAL_CALL OPreparedStatement::setNull( sal_Int32 parameterIndex, sal_Int32 /
|
|||
|
||||
void SAL_CALL OPreparedStatement::setClob( sal_Int32 /*parameterIndex*/, const Reference< XClob >& /*x*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XParameters::setClob", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XParameters::setClob"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OPreparedStatement::setBlob( sal_Int32 /*parameterIndex*/, const Reference< XBlob >& /*x*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XParameters::setBlob", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XParameters::setBlob"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OPreparedStatement::setArray( sal_Int32 /*parameterIndex*/, const Reference< XArray >& /*x*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XParameters::setArray", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XParameters::setArray"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
void SAL_CALL OPreparedStatement::setRef( sal_Int32 /*parameterIndex*/, const Reference< XRef >& /*x*/ )
|
||||
{
|
||||
throwFeatureNotImplementedSQLException( "XParameters::setRef", *this );
|
||||
throwFeatureNotImplementedSQLException( u"XParameters::setRef"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ namespace
|
|||
}
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OResultSet,"com.sun.star.sdbcx.drivers.file.ResultSet","com.sun.star.sdbc.ResultSet");
|
||||
IMPLEMENT_SERVICE_INFO(OResultSet,u"com.sun.star.sdbcx.drivers.file.ResultSet"_ustr,u"com.sun.star.sdbc.ResultSet"_ustr);
|
||||
|
||||
OResultSet::OResultSet(OStatement_Base* pStmt,OSQLParseTreeIterator& _aSQLIterator) : OResultSet_BASE(m_aMutex)
|
||||
,::comphelper::OPropertyContainer(OResultSet_BASE::rBHelper)
|
||||
|
@ -651,7 +651,7 @@ void SAL_CALL OResultSet::updateInt( sal_Int32 columnIndex, sal_Int32 x )
|
|||
|
||||
void SAL_CALL OResultSet::updateLong( sal_Int32 /*columnIndex*/, sal_Int64 /*x*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XRowUpdate::updateLong", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XRowUpdate::updateLong"_ustr, *this );
|
||||
}
|
||||
|
||||
void SAL_CALL OResultSet::updateFloat( sal_Int32 columnIndex, float x )
|
||||
|
|
|
@ -223,7 +223,7 @@ rtl::Reference<OResultSet> OStatement::createResultSet()
|
|||
return new OResultSet(this,m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbc.driver.file.Statement","com.sun.star.sdbc.Statement");
|
||||
IMPLEMENT_SERVICE_INFO(OStatement,u"com.sun.star.sdbc.driver.file.Statement"_ustr,u"com.sun.star.sdbc.Statement"_ustr);
|
||||
|
||||
void SAL_CALL OStatement::acquire() noexcept
|
||||
{
|
||||
|
|
|
@ -74,7 +74,7 @@ void OFileTable::refreshColumns()
|
|||
{
|
||||
::std::vector< OUString> aVector;
|
||||
Reference< XResultSet > xResult = m_pConnection->getMetaData()->getColumns(Any(),
|
||||
m_SchemaName,m_Name, "%");
|
||||
m_SchemaName,m_Name, u"%"_ustr);
|
||||
|
||||
if(xResult.is())
|
||||
{
|
||||
|
|
|
@ -205,7 +205,7 @@ uno::Sequence< sal_Int8 > SAL_CALL Blob::getBytes(sal_Int64 nPosition,
|
|||
ensureBlobIsOpened();
|
||||
|
||||
if (nPosition > m_nBlobLength || nPosition < 1)
|
||||
throw lang::IllegalArgumentException("nPosition out of range", *this, 0);
|
||||
throw lang::IllegalArgumentException(u"nPosition out of range"_ustr, *this, 0);
|
||||
// We only have to read as many bytes as are available, i.e. nPosition+nBytes
|
||||
// can legally be greater than the total length, hence we don't bother to check.
|
||||
|
||||
|
@ -234,13 +234,13 @@ uno::Reference< XInputStream > SAL_CALL Blob::getBinaryStream()
|
|||
sal_Int64 SAL_CALL Blob::position(const uno::Sequence< sal_Int8 >& /*rPattern*/,
|
||||
sal_Int64 /*nStart*/)
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException("Blob::position", *this);
|
||||
::dbtools::throwFeatureNotImplementedSQLException(u"Blob::position"_ustr, *this);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL Blob::positionOfBlob(const uno::Reference< XBlob >& /*rPattern*/,
|
||||
sal_Int64 /*aStart*/)
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException("Blob::positionOfBlob", *this);
|
||||
::dbtools::throwFeatureNotImplementedSQLException(u"Blob::positionOfBlob"_ustr, *this);
|
||||
}
|
||||
|
||||
// ---- XInputStream ----------------------------------------------------------
|
||||
|
|
|
@ -28,11 +28,11 @@ Catalog::Catalog(const uno::Reference< XConnection >& rConnection):
|
|||
//----- OCatalog -------------------------------------------------------------
|
||||
void Catalog::refreshTables()
|
||||
{
|
||||
Sequence< OUString > aTypes {"TABLE", "VIEW"};
|
||||
Sequence< OUString > aTypes {u"TABLE"_ustr, u"VIEW"_ustr};
|
||||
|
||||
uno::Reference< XResultSet > xTables = m_xMetaData->getTables(Any(),
|
||||
"%",
|
||||
"%",
|
||||
u"%"_ustr,
|
||||
u"%"_ustr,
|
||||
aTypes);
|
||||
|
||||
if (!xTables.is())
|
||||
|
@ -55,7 +55,7 @@ void Catalog::refreshTables()
|
|||
void Catalog::refreshViews()
|
||||
{
|
||||
css::uno::Reference<css::sdbc::XResultSet> xViews
|
||||
= m_xMetaData->getTables(css::uno::Any(), "%", "%", { "VIEW" });
|
||||
= m_xMetaData->getTables(css::uno::Any(), u"%"_ustr, u"%"_ustr, { u"VIEW"_ustr });
|
||||
|
||||
if (!xViews.is())
|
||||
return;
|
||||
|
@ -80,7 +80,7 @@ void Catalog::refreshGroups()
|
|||
void Catalog::refreshUsers()
|
||||
{
|
||||
Reference<XStatement> xStmt= m_xMetaData->getConnection()->createStatement();
|
||||
uno::Reference< XResultSet > xUsers = xStmt->executeQuery("SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES");
|
||||
uno::Reference< XResultSet > xUsers = xStmt->executeQuery(u"SELECT DISTINCT RDB$USER FROM RDB$USER_PRIVILEGES"_ustr);
|
||||
|
||||
if (!xUsers.is())
|
||||
return;
|
||||
|
|
|
@ -70,11 +70,11 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition,
|
|||
sal_Int32 nLength)
|
||||
{
|
||||
if (nPosition < 1) // XClob is indexed from 1
|
||||
throw lang::IllegalArgumentException("nPosition < 1", *this, 0);
|
||||
throw lang::IllegalArgumentException(u"nPosition < 1"_ustr, *this, 0);
|
||||
--nPosition; // make 0-based
|
||||
|
||||
if (nLength < 0)
|
||||
throw lang::IllegalArgumentException("nLength < 0", *this, 0);
|
||||
throw lang::IllegalArgumentException(u"nLength < 0"_ustr, *this, 0);
|
||||
|
||||
MutexGuard aGuard(m_aMutex);
|
||||
checkDisposed(Clob_BASE::rBHelper.bDisposed);
|
||||
|
@ -94,7 +94,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition,
|
|||
if (sSegment.getLength() < nPosition)
|
||||
{
|
||||
if (bLastRead)
|
||||
throw lang::IllegalArgumentException("nPosition out of range", *this, 0);
|
||||
throw lang::IllegalArgumentException(u"nPosition out of range"_ustr, *this, 0);
|
||||
nPosition -= sSegment.getLength();
|
||||
continue;
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition,
|
|||
assert(sSegmentBuffer.getLength() < nLength);
|
||||
|
||||
if (bLastRead)
|
||||
throw lang::IllegalArgumentException("out of range", *this, 0);
|
||||
throw lang::IllegalArgumentException(u"out of range"_ustr, *this, 0);
|
||||
|
||||
nPosition = 0; // No offset after first append
|
||||
}
|
||||
|
@ -127,13 +127,13 @@ uno::Reference< XInputStream > SAL_CALL Clob::getCharacterStream()
|
|||
sal_Int64 SAL_CALL Clob::position(const OUString& /*rPattern*/,
|
||||
sal_Int32 /*nStart*/)
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException("Clob::position", *this);
|
||||
::dbtools::throwFeatureNotImplementedSQLException(u"Clob::position"_ustr, *this);
|
||||
}
|
||||
|
||||
sal_Int64 SAL_CALL Clob::positionOfClob(const Reference <XClob >& /*rPattern*/,
|
||||
sal_Int64 /*aStart*/)
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException("Clob::positionOfClob", *this);
|
||||
::dbtools::throwFeatureNotImplementedSQLException(u"Clob::positionOfClob"_ustr, *this);
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
||||
|
|
|
@ -45,7 +45,7 @@ void Column::construct()
|
|||
|
||||
css::uno::Sequence< OUString > SAL_CALL Column::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.Firebird" };
|
||||
return { u"com.sun.star.sdbc.Firebird"_ustr };
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|
||||
|
|
|
@ -340,8 +340,8 @@ void Connection::construct(const OUString& url, const Sequence< PropertyValue >&
|
|||
}
|
||||
|
||||
//----- XServiceInfo ---------------------------------------------------------
|
||||
IMPLEMENT_SERVICE_INFO(Connection, "com.sun.star.sdbc.drivers.firebird.Connection",
|
||||
"com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(Connection, u"com.sun.star.sdbc.drivers.firebird.Connection"_ustr,
|
||||
u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
Reference< XBlob> Connection::createBlob(ISC_QUAD const * pBlobId)
|
||||
{
|
||||
|
@ -574,7 +574,7 @@ isc_svc_handle Connection::attachServiceManager()
|
|||
*pSPB++ = isc_spb_version;
|
||||
*pSPB++ = isc_spb_current_version;
|
||||
*pSPB++ = isc_spb_user_name;
|
||||
OUString sUserName("SYSDBA");
|
||||
OUString sUserName(u"SYSDBA"_ustr);
|
||||
char aLength = static_cast<char>(sUserName.getLength());
|
||||
*pSPB++ = aLength;
|
||||
strncpy(pSPB,
|
||||
|
@ -740,12 +740,12 @@ sal_Bool SAL_CALL Connection::isReadOnly()
|
|||
|
||||
void SAL_CALL Connection::setCatalog(const OUString& /*catalog*/)
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("setCatalog", *this);
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"setCatalog"_ustr, *this);
|
||||
}
|
||||
|
||||
OUString SAL_CALL Connection::getCatalog()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("getCatalog", *this);
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"getCatalog"_ustr, *this);
|
||||
}
|
||||
|
||||
void SAL_CALL Connection::setTransactionIsolation( sal_Int32 level )
|
||||
|
@ -767,12 +767,12 @@ sal_Int32 SAL_CALL Connection::getTransactionIsolation( )
|
|||
|
||||
Reference< XNameAccess > SAL_CALL Connection::getTypeMap()
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::getTypeMap", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::getTypeMap"_ustr, *this );
|
||||
}
|
||||
|
||||
void SAL_CALL Connection::setTypeMap(const Reference< XNameAccess >&)
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::setTypeMap", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::setTypeMap"_ustr, *this );
|
||||
}
|
||||
|
||||
//----- XCloseable -----------------------------------------------------------
|
||||
|
|
|
@ -221,7 +221,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs( )
|
|||
// Only quoted identifiers are case sensitive, unquoted are case insensitive
|
||||
OUString SAL_CALL ODatabaseMetaData::getIdentifierQuoteString()
|
||||
{
|
||||
return "\"";
|
||||
return u"\""_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers( )
|
||||
|
@ -600,7 +600,7 @@ OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( )
|
|||
{
|
||||
uno::Reference< XStatement > xSelect = m_pConnection->createStatement();
|
||||
|
||||
uno::Reference< XResultSet > xRs = xSelect->executeQuery("SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database");
|
||||
uno::Reference< XResultSet > xRs = xSelect->executeQuery(u"SELECT rdb$get_context('SYSTEM', 'ENGINE_VERSION') as version from rdb$database"_ustr);
|
||||
(void)xRs->next(); // first and only row
|
||||
uno::Reference< XRow > xRow( xRs, UNO_QUERY_THROW );
|
||||
return xRow->getString(1);
|
||||
|
@ -608,7 +608,7 @@ OUString SAL_CALL ODatabaseMetaData::getDatabaseProductVersion( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getDatabaseProductName( )
|
||||
{
|
||||
return "Firebird (engine12)";
|
||||
return u"Firebird (engine12)"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getProcedureTerm( )
|
||||
|
@ -638,15 +638,15 @@ OUString SAL_CALL ODatabaseMetaData::getSearchStringEscape( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getStringFunctions( )
|
||||
{
|
||||
return "ASCII_CHAR,ASCII_VAL,BIT_LENGTH,CHAR_LENGTH,CHAR_TO_UUID,CHARACTER_LENGTH,"
|
||||
return u"ASCII_CHAR,ASCII_VAL,BIT_LENGTH,CHAR_LENGTH,CHAR_TO_UUID,CHARACTER_LENGTH,"
|
||||
"GEN_UUID,HASH,LEFT,LOWER,LPAD,OCTET_LENGTH,OVERLAY,POSITION,REPLACE,REVERSE,"
|
||||
"RIGHT,RPAD,SUBSTRING,TRIM,UPPER,UUID_TO_CHAR";
|
||||
"RIGHT,RPAD,SUBSTRING,TRIM,UPPER,UUID_TO_CHAR"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getTimeDateFunctions( )
|
||||
{
|
||||
return "CURRENT_DATE,CURRENT_TIME,CURRENT_TIMESTAMP,DATEADD, DATEDIFF,"
|
||||
"EXTRACT,'NOW','TODAY','TOMORROW','YESTERDAY'";
|
||||
return u"CURRENT_DATE,CURRENT_TIME,CURRENT_TIMESTAMP,DATEADD, DATEDIFF,"
|
||||
"EXTRACT,'NOW','TODAY','TOMORROW','YESTERDAY'"_ustr;
|
||||
}
|
||||
|
||||
OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( )
|
||||
|
@ -656,9 +656,9 @@ OUString SAL_CALL ODatabaseMetaData::getSystemFunctions( )
|
|||
|
||||
OUString SAL_CALL ODatabaseMetaData::getNumericFunctions( )
|
||||
{
|
||||
return "ABS,ACOS,ASIN,ATAN,ATAN2,BIN_AND,BIN_NOT,BIN_OR,BIN_SHL,"
|
||||
return u"ABS,ACOS,ASIN,ATAN,ATAN2,BIN_AND,BIN_NOT,BIN_OR,BIN_SHL,"
|
||||
"BIN_SHR,BIN_XOR,CEIL,CEILING,COS,COSH,COT,EXP,FLOOR,LN,"
|
||||
"LOG,LOG10,MOD,PI,POWER,RAND,ROUND,SIGN,SIN,SINH,SQRT,TAN,TANH,TRUNC";
|
||||
"LOG,LOG10,MOD,PI,POWER,RAND,ROUND,SIGN,SIN,SINH,SQRT,TAN,TANH,TRUNC"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL ODatabaseMetaData::supportsExtendedSQLGrammar( )
|
||||
|
@ -792,13 +792,13 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTableTypes( )
|
|||
// TODO Put these statics to one place
|
||||
// like postgreSQL's Statics class.
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TABLE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TABLE"_ustr);
|
||||
aResults.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("VIEW"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"VIEW"_ustr);
|
||||
aResults.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("SYSTEM TABLE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"SYSTEM TABLE"_ustr);
|
||||
aResults.push_back(aRow);
|
||||
|
||||
pResultSet->setRows(std::move(aResults));
|
||||
|
@ -836,10 +836,10 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
aRow[18] = new ORowSetValueDecorator(sal_Int16(10));// Radix
|
||||
|
||||
// Char
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("CHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"CHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::CHAR);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[6] = new ORowSetValueDecorator(u"length"_ustr); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::FULL)); // Searchable
|
||||
aRow[12] = new ORowSetValueDecorator(ORowSetValue(false)); // Autoincrement
|
||||
|
@ -848,10 +848,10 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// Varchar
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("VARCHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"VARCHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[6] = new ORowSetValueDecorator(u"length"_ustr); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::FULL)); // Searchable
|
||||
aRow[12] = new ORowSetValueDecorator(ORowSetValue(false)); // Autoincrement
|
||||
|
@ -863,10 +863,10 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
// to fool LO into seeing it as different types.
|
||||
// It is distinguished from Text type by its character set OCTETS;
|
||||
// that will be added by Tables::createStandardColumnPart
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("CHARACTER"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"CHARACTER"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BINARY);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[6] = new ORowSetValueDecorator(u"length"_ustr); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::NONE)); // Searchable
|
||||
aRow[14] = ODatabaseMetaDataResultSet::get0Value(); // Minimum scale
|
||||
|
@ -874,15 +874,15 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// Varbinary (VARCHAR); see comment above about BINARY
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("CHARACTER VARYING"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"CHARACTER VARYING"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::VARBINARY);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(32765)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("length")); // Create Params
|
||||
aRow[6] = new ORowSetValueDecorator(u"length"_ustr); // Create Params
|
||||
aRow[9] = new ORowSetValueDecorator(
|
||||
sal_Int16(ColumnSearch::NONE)); // Searchable
|
||||
|
||||
// Clob (SQL_BLOB)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BLOB SUB_TYPE TEXT")); // BLOB, with subtype 1
|
||||
aRow[1] = new ORowSetValueDecorator(u"BLOB SUB_TYPE TEXT"_ustr); // BLOB, with subtype 1
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::CLOB);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(2147483647)); // Precision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -909,17 +909,17 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
aRow[15] = ODatabaseMetaDataResultSet::get0Value(); // Max scale
|
||||
}
|
||||
// Smallint (SQL_SHORT)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("SMALLINT"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"SMALLINT"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::SMALLINT);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(5)); // Prevision
|
||||
tmp.push_back(aRow);
|
||||
// Integer (SQL_LONG)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("INTEGER"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"INTEGER"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::INTEGER);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(10)); // Precision
|
||||
tmp.push_back(aRow);
|
||||
// Bigint (SQL_INT64)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BIGINT"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BIGINT"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BIGINT);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(20)); // Precision
|
||||
tmp.push_back(aRow);
|
||||
|
@ -931,16 +931,16 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
aRow[12] = new ORowSetValueDecorator(ORowSetValue(true)); // Autoincrement
|
||||
}
|
||||
|
||||
aRow[6] = new ORowSetValueDecorator(OUString("PRECISION,SCALE")); // Create params
|
||||
aRow[6] = new ORowSetValueDecorator(u"PRECISION,SCALE"_ustr); // Create params
|
||||
// Numeric
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("NUMERIC"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"NUMERIC"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::NUMERIC);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(18)); // Precision
|
||||
aRow[14] = new ORowSetValueDecorator(sal_Int16(0)); // Minimum scale
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int16(18)); // Max scale
|
||||
tmp.push_back(aRow);
|
||||
// Decimal
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DECIMAL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DECIMAL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(18)); // Precision
|
||||
aRow[14] = new ORowSetValueDecorator(sal_Int16(0)); // Minimum scale
|
||||
|
@ -949,14 +949,14 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
// Float (SQL_FLOAT)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("FLOAT"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"FLOAT"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::FLOAT);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(7)); // Precision
|
||||
aRow[14] = new ORowSetValueDecorator(sal_Int16(1)); // Minimum scale
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int16(7)); // Max scale
|
||||
tmp.push_back(aRow);
|
||||
// Double (SQL_DOUBLE)
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DOUBLE PRECISION"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DOUBLE PRECISION"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DOUBLE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int16(15)); // Precision
|
||||
aRow[14] = new ORowSetValueDecorator(sal_Int16(1)); // Minimum scale
|
||||
|
@ -966,7 +966,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
// TODO: no idea whether D_FLOAT corresponds to an sql type
|
||||
|
||||
// SQL_TIMESTAMP
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIMESTAMP"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIMESTAMP"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(8)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -978,7 +978,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// SQL_TYPE_TIME
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIME"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIME"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIME);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(8)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -990,7 +990,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// SQL_TYPE_DATE
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DATE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DATE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DATE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(8)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -1002,7 +1002,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// SQL_BLOB
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BLOB SUB_TYPE BINARY"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BLOB SUB_TYPE BINARY"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BLOB);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(0)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -1014,7 +1014,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTypeInfo()
|
|||
tmp.push_back(aRow);
|
||||
|
||||
// SQL_BOOLEAN
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BOOLEAN"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BOOLEAN"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BOOLEAN);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(1)); // Prevision = max length
|
||||
aRow[6] = new ORowSetValueDecorator(); // Create Params
|
||||
|
@ -1057,7 +1057,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
|
|||
"FROM RDB$USER_PRIVILEGES priv ");
|
||||
|
||||
{
|
||||
OUString sAppend = "WHERE priv.RDB$RELATION_NAME = '%' ";
|
||||
OUString sAppend = u"WHERE priv.RDB$RELATION_NAME = '%' "_ustr;
|
||||
queryBuf.append(sAppend.replaceAll("%", sTable));
|
||||
}
|
||||
if (!sColumnNamePattern.isEmpty())
|
||||
|
@ -1095,7 +1095,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
|
|||
aCurrentRow[6] = new ORowSetValueDecorator(sanitizeIdentifier(xRow->getString(3))); // 6. GRANTEE
|
||||
aCurrentRow[7] = new ORowSetValueDecorator(xRow->getString(4)); // 7. Privilege
|
||||
aCurrentRow[8] = new ORowSetValueDecorator( ( xRow->getShort(5) == 1 ) ?
|
||||
OUString("YES") : OUString("NO")); // 8. Grantable
|
||||
u"YES"_ustr : u"NO"_ustr); // 8. Grantable
|
||||
|
||||
aResults.push_back(aCurrentRow);
|
||||
}
|
||||
|
@ -1297,11 +1297,11 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
|
|||
// 18. Is nullable
|
||||
if (xRow->getShort(9))
|
||||
{
|
||||
aCurrentRow[18] = new ORowSetValueDecorator(OUString("NO"));
|
||||
aCurrentRow[18] = new ORowSetValueDecorator(u"NO"_ustr);
|
||||
}
|
||||
else
|
||||
{
|
||||
aCurrentRow[18] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aCurrentRow[18] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
}
|
||||
|
||||
aResults.push_back(aCurrentRow);
|
||||
|
@ -1481,7 +1481,7 @@ uno::Reference< XResultSet > ODatabaseMetaData::lcl_getKeys(const bool bIsImport
|
|||
|
||||
uno::Reference< XStatement > statement = m_pConnection->createStatement();
|
||||
|
||||
OUString sSQL = "SELECT "
|
||||
OUString sSQL = u"SELECT "
|
||||
"RDB$REF_CONSTRAINTS.RDB$UPDATE_RULE, " // 1 update rule
|
||||
"RDB$REF_CONSTRAINTS.RDB$DELETE_RULE, " // 2 delete rule
|
||||
"RDB$REF_CONSTRAINTS.RDB$CONST_NAME_UQ, " // 3 primary or unique key name
|
||||
|
@ -1502,7 +1502,7 @@ uno::Reference< XResultSet > ODatabaseMetaData::lcl_getKeys(const bool bIsImport
|
|||
"ON PRIM.RDB$INDEX_NAME = PRIMARY_INDEX.RDB$INDEX_NAME "
|
||||
"INNER JOIN RDB$INDEX_SEGMENTS AS FOREIGN_INDEX "
|
||||
"ON FOREI.RDB$INDEX_NAME = FOREIGN_INDEX.RDB$INDEX_NAME "
|
||||
"WHERE FOREI.RDB$CONSTRAINT_TYPE = 'FOREIGN KEY' ";
|
||||
"WHERE FOREI.RDB$CONSTRAINT_TYPE = 'FOREIGN KEY' "_ustr;
|
||||
if (bIsImport)
|
||||
sSQL += OUString::Concat("AND FOREI.RDB$RELATION_NAME = '")+ table +"'";
|
||||
else
|
||||
|
@ -1522,11 +1522,11 @@ uno::Reference< XResultSet > ODatabaseMetaData::lcl_getKeys(const bool bIsImport
|
|||
aCurrentRow[6] = new ORowSetValueDecorator(); // FKTABLE_SCHEM unsupported
|
||||
|
||||
std::map< OUString,sal_Int32> aRuleMap;
|
||||
aRuleMap[ OUString("CASCADE")] = KeyRule::CASCADE;
|
||||
aRuleMap[ OUString("RESTRICT")] = KeyRule::RESTRICT;
|
||||
aRuleMap[ OUString("SET NULL")] = KeyRule::SET_NULL;
|
||||
aRuleMap[ OUString("SET DEFAULT")] = KeyRule::SET_DEFAULT;
|
||||
aRuleMap[ OUString("NO ACTION")] = KeyRule::NO_ACTION;
|
||||
aRuleMap[ u"CASCADE"_ustr] = KeyRule::CASCADE;
|
||||
aRuleMap[ u"RESTRICT"_ustr] = KeyRule::RESTRICT;
|
||||
aRuleMap[ u"SET NULL"_ustr] = KeyRule::SET_NULL;
|
||||
aRuleMap[ u"SET DEFAULT"_ustr] = KeyRule::SET_DEFAULT;
|
||||
aRuleMap[ u"NO ACTION"_ustr] = KeyRule::NO_ACTION;
|
||||
|
||||
while(rs->next())
|
||||
{
|
||||
|
@ -1568,7 +1568,7 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
|
|||
SAL_INFO("connectivity.firebird", "getPrimaryKeys() with "
|
||||
"Table: " << sTable);
|
||||
|
||||
OUString sAppend = "WHERE constr.RDB$RELATION_NAME = '%' ";
|
||||
OUString sAppend = u"WHERE constr.RDB$RELATION_NAME = '%' "_ustr;
|
||||
OUString sQuery = "SELECT "
|
||||
"constr.RDB$RELATION_NAME, " // 1. Table Name
|
||||
"inds.RDB$FIELD_NAME, " // 2. Column Name
|
||||
|
@ -1690,9 +1690,9 @@ uno::Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
|
|||
aCurrentRow[9] = new ORowSetValueDecorator(sanitizeIdentifier(xRow->getString(2)));
|
||||
// 10. ASC(ending)/DESC(ending)
|
||||
if (xRow->getShort(6) == 1)
|
||||
aCurrentRow[10] = new ORowSetValueDecorator(OUString("D"));
|
||||
aCurrentRow[10] = new ORowSetValueDecorator(u"D"_ustr);
|
||||
else
|
||||
aCurrentRow[10] = new ORowSetValueDecorator(OUString("A"));
|
||||
aCurrentRow[10] = new ORowSetValueDecorator(u"A"_ustr);
|
||||
// TODO: double check this^^^, doesn't seem to be officially documented anywhere.
|
||||
// 11. CARDINALITY
|
||||
aCurrentRow[11] = new ORowSetValueDecorator(sal_Int32(0)); // TODO: determine how to do this
|
||||
|
|
|
@ -74,7 +74,7 @@ FirebirdDriver::FirebirdDriver(const css::uno::Reference< css::uno::XComponentCo
|
|||
#ifndef SYSTEM_FIREBIRD
|
||||
// Overrides firebird's hardcoded default of /usr/local/firebird on *nix,
|
||||
// however on Windows it seems to use the current directory as a default.
|
||||
OUString sMsgURL("$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/firebird");
|
||||
OUString sMsgURL(u"$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/firebird"_ustr);
|
||||
::rtl::Bootstrap::expandMacros(sMsgURL);
|
||||
OUString sMsgPath;
|
||||
::osl::FileBase::getSystemPathFromFileURL(sMsgURL, sMsgPath);
|
||||
|
@ -122,7 +122,7 @@ void FirebirdDriver::disposing()
|
|||
|
||||
OUString SAL_CALL FirebirdDriver::getImplementationName()
|
||||
{
|
||||
return "com.sun.star.comp.sdbc.firebird.Driver";
|
||||
return u"com.sun.star.comp.sdbc.firebird.Driver"_ustr;
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL FirebirdDriver::supportsService(const OUString& _rServiceName)
|
||||
|
@ -132,7 +132,7 @@ sal_Bool SAL_CALL FirebirdDriver::supportsService(const OUString& _rServiceName)
|
|||
|
||||
Sequence< OUString > SAL_CALL FirebirdDriver::getSupportedServiceNames()
|
||||
{
|
||||
return { "com.sun.star.sdbc.Driver", "com.sun.star.sdbcx.Driver" };
|
||||
return { u"com.sun.star.sdbc.Driver"_ustr, u"com.sun.star.sdbcx.Driver"_ustr };
|
||||
}
|
||||
|
||||
// ---- XDriver -------------------------------------------------------------
|
||||
|
|
|
@ -48,7 +48,7 @@ using namespace com::sun::star::container;
|
|||
using namespace com::sun::star::io;
|
||||
using namespace com::sun::star::util;
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OPreparedStatement,"com.sun.star.sdbcx.firebird.PreparedStatement","com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(OPreparedStatement,u"com.sun.star.sdbcx.firebird.PreparedStatement"_ustr,u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
constexpr size_t MAX_SIZE_SEGMENT = 65535; // max value of a segment of CLOB, if we want more than 65535 bytes, we need more segments
|
||||
|
||||
|
@ -234,7 +234,7 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 nParameterIndex,
|
|||
(int32Value > std::numeric_limits<sal_Int16>::max()) )
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Value out of range for SQL_SHORT type",
|
||||
u"Value out of range for SQL_SHORT type"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE,
|
||||
*this);
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ void SAL_CALL OPreparedStatement::setString(sal_Int32 nParameterIndex,
|
|||
}
|
||||
default:
|
||||
::dbtools::throwSQLException(
|
||||
"Incorrect type for setString",
|
||||
u"Incorrect type for setString"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE,
|
||||
*this);
|
||||
}
|
||||
|
@ -418,7 +418,7 @@ void OPreparedStatement::setValue(sal_Int32 nIndex, const T& nValue, ISC_SHORT n
|
|||
if ((pVar->sqltype & ~1) != nType)
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Incorrect type for setValue",
|
||||
u"Incorrect type for setValue"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE,
|
||||
*this);
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ void SAL_CALL OPreparedStatement::setDouble(sal_Int32 nIndex, double nValue)
|
|||
if(dSubType < 0 || dSubType > 2)
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Incorrect number sub type",
|
||||
u"Incorrect number sub type"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE,
|
||||
*this);
|
||||
}
|
||||
|
@ -958,7 +958,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
|
|||
else if( dType == SQL_TEXT )
|
||||
{
|
||||
if (pVar->sqllen < xBytes.getLength())
|
||||
dbtools::throwSQLException("Data too big for this field",
|
||||
dbtools::throwSQLException(u"Data too big for this field"_ustr,
|
||||
dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE, *this);
|
||||
setParameterNull(nParameterIndex, false);
|
||||
memcpy(pVar->sqldata, xBytes.getConstArray(), xBytes.getLength() );
|
||||
|
@ -968,7 +968,7 @@ void SAL_CALL OPreparedStatement::setBytes(sal_Int32 nParameterIndex,
|
|||
else
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Incorrect type for setBytes",
|
||||
u"Incorrect type for setBytes"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_SQL_DATA_TYPE,
|
||||
*this);
|
||||
}
|
||||
|
|
|
@ -151,13 +151,13 @@ sal_Bool SAL_CALL OResultSet::next()
|
|||
|
||||
sal_Bool SAL_CALL OResultSet::previous()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("previous not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"previous not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OResultSet::isLast()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("isLast not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"isLast not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ void SAL_CALL OResultSet::beforeFirst()
|
|||
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
|
||||
|
||||
if (m_currentRow != 0)
|
||||
::dbtools::throwFunctionNotSupportedSQLException("beforeFirst not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"beforeFirst not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
|
@ -201,7 +201,7 @@ void SAL_CALL OResultSet::afterLast()
|
|||
checkDisposed(OResultSet_BASE::rBHelper.bDisposed);
|
||||
|
||||
if (!m_bIsAfterLastRow)
|
||||
::dbtools::throwFunctionNotSupportedSQLException("afterLast not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"afterLast not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ sal_Bool SAL_CALL OResultSet::first()
|
|||
}
|
||||
else
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("first not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"first not supported in firebird"_ustr,
|
||||
*this);
|
||||
return false;
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ sal_Bool SAL_CALL OResultSet::last()
|
|||
{
|
||||
// We need to iterate past the last row to know when we've passed the last
|
||||
// row, hence we can't actually move to last.
|
||||
::dbtools::throwFunctionNotSupportedSQLException("last not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"last not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
|
@ -246,7 +246,7 @@ sal_Bool SAL_CALL OResultSet::absolute(sal_Int32 aRow)
|
|||
}
|
||||
else
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("absolute not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"absolute not supported in firebird"_ustr,
|
||||
*this);
|
||||
return false;
|
||||
}
|
||||
|
@ -268,7 +268,7 @@ sal_Bool SAL_CALL OResultSet::relative(sal_Int32 row)
|
|||
}
|
||||
else
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("relative not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"relative not supported in firebird"_ustr,
|
||||
*this);
|
||||
return false;
|
||||
}
|
||||
|
@ -296,7 +296,7 @@ void OResultSet::checkRowIndex()
|
|||
if((m_currentRow < 1) || m_bIsAfterLastRow)
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Invalid Row",
|
||||
u"Invalid Row"_ustr,
|
||||
::dbtools::StandardSQLState::INVALID_CURSOR_POSITION,
|
||||
*this);
|
||||
}
|
||||
|
@ -842,25 +842,25 @@ uno::Reference< XInterface > SAL_CALL OResultSet::getStatement()
|
|||
//----- XResultSet: unsupported change detection methods ---------------------
|
||||
sal_Bool SAL_CALL OResultSet::rowDeleted()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("rowDeleted not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"rowDeleted not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OResultSet::rowInserted()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("rowInserted not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"rowInserted not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OResultSet::rowUpdated()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("rowUpdated not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"rowUpdated not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
void SAL_CALL OResultSet::refreshRow()
|
||||
{
|
||||
::dbtools::throwFunctionNotSupportedSQLException("refreshRow not supported in firebird",
|
||||
::dbtools::throwFunctionNotSupportedSQLException(u"refreshRow not supported in firebird"_ustr,
|
||||
*this);
|
||||
}
|
||||
|
||||
|
@ -902,12 +902,12 @@ uno::Reference< css::beans::XPropertySetInfo > SAL_CALL OResultSet::getPropertyS
|
|||
// ---- XServiceInfo -----------------------------------------------------------
|
||||
OUString SAL_CALL OResultSet::getImplementationName()
|
||||
{
|
||||
return "com.sun.star.sdbcx.firebird.ResultSet";
|
||||
return u"com.sun.star.sdbcx.firebird.ResultSet"_ustr;
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL OResultSet::getSupportedServiceNames()
|
||||
{
|
||||
return {"com.sun.star.sdbc.ResultSet","com.sun.star.sdbcx.ResultSet"};
|
||||
return {u"com.sun.star.sdbc.ResultSet"_ustr,u"com.sun.star.sdbcx.ResultSet"_ustr};
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OResultSet::supportsService(const OUString& _rServiceName)
|
||||
|
|
|
@ -75,7 +75,7 @@ OUString OResultSetMetaData::getCharacterSet( sal_Int32 nIndex )
|
|||
void OResultSetMetaData::verifyValidColumn(sal_Int32 column)
|
||||
{
|
||||
if (column>getColumnCount() || column < 1)
|
||||
throw SQLException("Invalid column specified", *this, OUString(), 0, Any());
|
||||
throw SQLException(u"Invalid column specified"_ustr, *this, OUString(), 0, Any());
|
||||
}
|
||||
|
||||
sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount()
|
||||
|
|
|
@ -55,7 +55,7 @@ Sequence< sal_Int32 > SAL_CALL OStatement::executeBatch()
|
|||
return Sequence< sal_Int32 >();
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OStatement,"com.sun.star.sdbcx.OStatement","com.sun.star.sdbc.Statement");
|
||||
IMPLEMENT_SERVICE_INFO(OStatement,u"com.sun.star.sdbcx.OStatement"_ustr,u"com.sun.star.sdbc.Statement"_ustr);
|
||||
|
||||
void SAL_CALL OStatement::acquire() noexcept
|
||||
{
|
||||
|
|
|
@ -59,8 +59,8 @@ Table::Table(Tables* pTables,
|
|||
rName,
|
||||
rType,
|
||||
rDescription,
|
||||
"",
|
||||
""),
|
||||
u""_ustr,
|
||||
u""_ustr),
|
||||
m_rMutex(rMutex),
|
||||
m_nPrivileges(0)
|
||||
{
|
||||
|
@ -121,19 +121,19 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
uno::Reference< XPropertySet > xColumn(m_xColumns->getByName(rColName), UNO_QUERY);
|
||||
|
||||
// sdbcx::Descriptor
|
||||
const bool bNameChanged = xColumn->getPropertyValue("Name") != rDescriptor->getPropertyValue("Name");
|
||||
const bool bNameChanged = xColumn->getPropertyValue(u"Name"_ustr) != rDescriptor->getPropertyValue(u"Name"_ustr);
|
||||
// sdbcx::ColumnDescriptor
|
||||
const bool bTypeChanged = xColumn->getPropertyValue("Type") != rDescriptor->getPropertyValue("Type");
|
||||
const bool bTypeNameChanged = xColumn->getPropertyValue("TypeName") != rDescriptor->getPropertyValue("TypeName");
|
||||
const bool bPrecisionChanged = xColumn->getPropertyValue("Precision") != rDescriptor->getPropertyValue("Precision");
|
||||
const bool bScaleChanged = xColumn->getPropertyValue("Scale") != rDescriptor->getPropertyValue("Scale");
|
||||
const bool bIsNullableChanged = xColumn->getPropertyValue("IsNullable") != rDescriptor->getPropertyValue("IsNullable");
|
||||
const bool bIsAutoIncrementChanged = xColumn->getPropertyValue("IsAutoIncrement") != rDescriptor->getPropertyValue("IsAutoIncrement");
|
||||
const bool bTypeChanged = xColumn->getPropertyValue(u"Type"_ustr) != rDescriptor->getPropertyValue(u"Type"_ustr);
|
||||
const bool bTypeNameChanged = xColumn->getPropertyValue(u"TypeName"_ustr) != rDescriptor->getPropertyValue(u"TypeName"_ustr);
|
||||
const bool bPrecisionChanged = xColumn->getPropertyValue(u"Precision"_ustr) != rDescriptor->getPropertyValue(u"Precision"_ustr);
|
||||
const bool bScaleChanged = xColumn->getPropertyValue(u"Scale"_ustr) != rDescriptor->getPropertyValue(u"Scale"_ustr);
|
||||
const bool bIsNullableChanged = xColumn->getPropertyValue(u"IsNullable"_ustr) != rDescriptor->getPropertyValue(u"IsNullable"_ustr);
|
||||
const bool bIsAutoIncrementChanged = xColumn->getPropertyValue(u"IsAutoIncrement"_ustr) != rDescriptor->getPropertyValue(u"IsAutoIncrement"_ustr);
|
||||
|
||||
// TODO: remainder -- these are all "optional" so have to detect presence and change.
|
||||
|
||||
bool bDefaultChanged = xColumn->getPropertyValue("DefaultValue")
|
||||
!= rDescriptor->getPropertyValue("DefaultValue");
|
||||
bool bDefaultChanged = xColumn->getPropertyValue(u"DefaultValue"_ustr)
|
||||
!= rDescriptor->getPropertyValue(u"DefaultValue"_ustr);
|
||||
|
||||
if (bTypeChanged || bTypeNameChanged || bPrecisionChanged || bScaleChanged)
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
if (bIsNullableChanged)
|
||||
{
|
||||
sal_Int32 nNullable = 0;
|
||||
rDescriptor->getPropertyValue("IsNullable") >>= nNullable;
|
||||
rDescriptor->getPropertyValue(u"IsNullable"_ustr) >>= nNullable;
|
||||
|
||||
if (nNullable != ColumnValue::NULLABLE_UNKNOWN)
|
||||
{
|
||||
|
@ -175,7 +175,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
if (bIsAutoIncrementChanged)
|
||||
{
|
||||
::dbtools::throwSQLException(
|
||||
"Changing autoincrement property of existing column is not supported",
|
||||
u"Changing autoincrement property of existing column is not supported"_ustr,
|
||||
::dbtools::StandardSQLState::FUNCTION_NOT_SUPPORTED,
|
||||
*this);
|
||||
|
||||
|
@ -184,7 +184,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
if (bDefaultChanged)
|
||||
{
|
||||
OUString sNewDefault;
|
||||
rDescriptor->getPropertyValue("DefaultValue") >>= sNewDefault;
|
||||
rDescriptor->getPropertyValue(u"DefaultValue"_ustr) >>= sNewDefault;
|
||||
|
||||
OUString sSql;
|
||||
if (sNewDefault.isEmpty())
|
||||
|
@ -198,7 +198,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
if (bNameChanged)
|
||||
{
|
||||
OUString sNewColName;
|
||||
rDescriptor->getPropertyValue("Name") >>= sNewColName;
|
||||
rDescriptor->getPropertyValue(u"Name"_ustr) >>= sNewColName;
|
||||
OUString sSql(getAlterTableColumn(rColName)
|
||||
+ " TO \"" + sNewColName + "\"");
|
||||
|
||||
|
@ -212,7 +212,7 @@ void SAL_CALL Table::alterColumnByName(const OUString& rColName,
|
|||
// ----- XRename --------------------------------------------------------------
|
||||
void SAL_CALL Table::rename(const OUString&)
|
||||
{
|
||||
throw RuntimeException("Table renaming not supported by Firebird.");
|
||||
throw RuntimeException(u"Table renaming not supported by Firebird."_ustr);
|
||||
}
|
||||
|
||||
// ----- XInterface -----------------------------------------------------------
|
||||
|
|
|
@ -50,7 +50,7 @@ ObjectType Tables::createObject(const OUString& rName)
|
|||
uno::Sequence< OUString >());
|
||||
|
||||
if (!xTables.is())
|
||||
throw RuntimeException("Could not acquire table.");
|
||||
throw RuntimeException(u"Could not acquire table."_ustr);
|
||||
|
||||
uno::Reference< XRow > xRow(xTables,UNO_QUERY_THROW);
|
||||
|
||||
|
@ -65,7 +65,7 @@ ObjectType Tables::createObject(const OUString& rName)
|
|||
xRow->getString(5))); // Description / Remarks / Comments
|
||||
|
||||
if (xTables->next())
|
||||
throw RuntimeException("Found more tables than expected.");
|
||||
throw RuntimeException(u"Found more tables than expected."_ustr);
|
||||
|
||||
return xRet;
|
||||
}
|
||||
|
@ -193,7 +193,7 @@ void Tables::dropObject(sal_Int32 nPosition, const OUString& sName)
|
|||
return;
|
||||
|
||||
OUString sType;
|
||||
xTable->getPropertyValue("Type") >>= sType;
|
||||
xTable->getPropertyValue(u"Type"_ustr) >>= sType;
|
||||
|
||||
const OUString sQuoteString = m_xMetaData->getIdentifierQuoteString();
|
||||
|
||||
|
|
|
@ -186,57 +186,57 @@ OUString firebird::ColumnTypeInfo::getColumnTypeName() const
|
|||
switch (nDataType)
|
||||
{
|
||||
case DataType::BIT:
|
||||
return "BIT";
|
||||
return u"BIT"_ustr;
|
||||
case DataType::TINYINT:
|
||||
return "TINYINT";
|
||||
return u"TINYINT"_ustr;
|
||||
case DataType::SMALLINT:
|
||||
return "SMALLINT";
|
||||
return u"SMALLINT"_ustr;
|
||||
case DataType::INTEGER:
|
||||
return "INTEGER";
|
||||
return u"INTEGER"_ustr;
|
||||
case DataType::BIGINT:
|
||||
return "BIGINT";
|
||||
return u"BIGINT"_ustr;
|
||||
case DataType::FLOAT:
|
||||
return "FLOAT";
|
||||
return u"FLOAT"_ustr;
|
||||
case DataType::REAL:
|
||||
return "REAL";
|
||||
return u"REAL"_ustr;
|
||||
case DataType::DOUBLE:
|
||||
return "DOUBLE";
|
||||
return u"DOUBLE"_ustr;
|
||||
case DataType::NUMERIC:
|
||||
return "NUMERIC";
|
||||
return u"NUMERIC"_ustr;
|
||||
case DataType::DECIMAL:
|
||||
return "DECIMAL";
|
||||
return u"DECIMAL"_ustr;
|
||||
case DataType::CHAR:
|
||||
return "CHAR";
|
||||
return u"CHAR"_ustr;
|
||||
case DataType::VARCHAR:
|
||||
return "VARCHAR";
|
||||
return u"VARCHAR"_ustr;
|
||||
case DataType::LONGVARCHAR:
|
||||
return "LONGVARCHAR";
|
||||
return u"LONGVARCHAR"_ustr;
|
||||
case DataType::DATE:
|
||||
return "DATE";
|
||||
return u"DATE"_ustr;
|
||||
case DataType::TIME:
|
||||
return "TIME";
|
||||
return u"TIME"_ustr;
|
||||
case DataType::TIMESTAMP:
|
||||
return "TIMESTAMP";
|
||||
return u"TIMESTAMP"_ustr;
|
||||
case DataType::BINARY:
|
||||
// in Firebird, that is the same datatype "CHAR" as DataType::CHAR,
|
||||
// only with CHARACTER SET OCTETS; we use the synonym CHARACTER
|
||||
// to fool LO into seeing it as different types.
|
||||
return "CHARACTER";
|
||||
return u"CHARACTER"_ustr;
|
||||
case DataType::VARBINARY:
|
||||
// see above comment about DataType::BINARY.
|
||||
return "CHARACTER VARYING";
|
||||
return u"CHARACTER VARYING"_ustr;
|
||||
case DataType::LONGVARBINARY:
|
||||
return "BLOB SUB_TYPE " + OUString::number(static_cast<short>(BlobSubtype::Image));
|
||||
case DataType::ARRAY:
|
||||
return "ARRAY";
|
||||
return u"ARRAY"_ustr;
|
||||
case DataType::BLOB:
|
||||
return "BLOB SUB_TYPE BINARY";
|
||||
return u"BLOB SUB_TYPE BINARY"_ustr;
|
||||
case DataType::CLOB:
|
||||
return "BLOB SUB_TYPE TEXT";
|
||||
return u"BLOB SUB_TYPE TEXT"_ustr;
|
||||
case DataType::BOOLEAN:
|
||||
return "BOOLEAN";
|
||||
return u"BOOLEAN"_ustr;
|
||||
case DataType::SQLNULL:
|
||||
return "NULL";
|
||||
return u"NULL"_ustr;
|
||||
default:
|
||||
assert(false); // Should never happen
|
||||
return OUString();
|
||||
|
|
|
@ -60,7 +60,7 @@ void connectivity::firebird::Views::dropObject(sal_Int32 _nPos, const OUString&
|
|||
bool bIsNew = connectivity::sdbcx::ODescriptor::isNew(xObject);
|
||||
if (!bIsNew)
|
||||
{
|
||||
OUString aSql("DROP VIEW");
|
||||
OUString aSql(u"DROP VIEW"_ustr);
|
||||
|
||||
css::uno::Reference<css::beans::XPropertySet> xProp(xObject, css::uno::UNO_QUERY);
|
||||
aSql += ::dbtools::composeTableName(m_xMetaData, xProp,
|
||||
|
|
|
@ -40,7 +40,7 @@ void OFlatCatalog::refreshTables()
|
|||
{
|
||||
::std::vector<OUString> aVector;
|
||||
Sequence<OUString> aTypes;
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), "%", "%", aTypes);
|
||||
Reference<XResultSet> xResult = m_xMetaData->getTables(Any(), u"%"_ustr, u"%"_ustr, aTypes);
|
||||
|
||||
if (xResult.is())
|
||||
{
|
||||
|
|
|
@ -54,7 +54,7 @@ OFlatConnection::~OFlatConnection()
|
|||
|
||||
// XServiceInfo
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OFlatConnection, "com.sun.star.sdbc.drivers.flat.Connection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OFlatConnection, u"com.sun.star.sdbc.drivers.flat.Connection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
|
||||
|
||||
void OFlatConnection::construct(const OUString& url,const Sequence< PropertyValue >& info)
|
||||
|
@ -167,7 +167,7 @@ Reference< XPreparedStatement > SAL_CALL OFlatConnection::prepareCall( const OUS
|
|||
::osl::MutexGuard aGuard( m_aMutex );
|
||||
checkDisposed(OConnection_B::rBHelper.bDisposed);
|
||||
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XConnection::prepareCall", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XConnection::prepareCall"_ustr, *this );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ Reference< XResultSet > OFlatDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
ODatabaseMetaDataResultSet::ORow aRow
|
||||
{
|
||||
ODatabaseMetaDataResultSet::getEmptyValue() ,
|
||||
new ORowSetValueDecorator(OUString("CHAR")) ,
|
||||
new ORowSetValueDecorator(u"CHAR"_ustr) ,
|
||||
new ORowSetValueDecorator(DataType::CHAR) ,
|
||||
new ORowSetValueDecorator(sal_Int32(254)) ,
|
||||
ODatabaseMetaDataResultSet::getQuoteValue() ,
|
||||
|
@ -77,60 +77,60 @@ Reference< XResultSet > OFlatDatabaseMetaData::impl_getTypeInfo_throw( )
|
|||
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("VARCHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"VARCHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::VARCHAR);
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("LONGVARCHAR"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"LONGVARCHAR"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::LONGVARCHAR);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(65535));
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DATE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DATE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DATE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(10));
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIME"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIME"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIME);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(8));
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("TIMESTAMP"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"TIMESTAMP"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::TIMESTAMP);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(19));
|
||||
aRow[4] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
aRow[5] = ODatabaseMetaDataResultSet::getQuoteValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("BOOL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"BOOL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::BIT);
|
||||
aRow[3] = ODatabaseMetaDataResultSet::get1Value();
|
||||
aRow[9] = ODatabaseMetaDataResultSet::getBasicValue();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DECIMAL"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DECIMAL"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DECIMAL);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int32(15));
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("DOUBLE"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"DOUBLE"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::DOUBLE);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
aRow[15] = ODatabaseMetaDataResultSet::get0Value();
|
||||
tmp.push_back(aRow);
|
||||
|
||||
aRow[1] = new ORowSetValueDecorator(OUString("NUMERIC"));
|
||||
aRow[1] = new ORowSetValueDecorator(u"NUMERIC"_ustr);
|
||||
aRow[2] = new ORowSetValueDecorator(DataType::NUMERIC);
|
||||
aRow[3] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
aRow[15] = new ORowSetValueDecorator(sal_Int32(20));
|
||||
|
@ -212,10 +212,10 @@ Reference< XResultSet > SAL_CALL OFlatDatabaseMetaData::getColumns(
|
|||
switch(aRow[11]->getValue().getInt32())
|
||||
{
|
||||
case ColumnValue::NO_NULLS:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("NO"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"NO"_ustr);
|
||||
break;
|
||||
case ColumnValue::NULLABLE:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString("YES"));
|
||||
aRow[18] = new ORowSetValueDecorator(u"YES"_ustr);
|
||||
break;
|
||||
default:
|
||||
aRow[18] = new ORowSetValueDecorator(OUString());
|
||||
|
|
|
@ -39,7 +39,7 @@ using namespace css::lang;
|
|||
|
||||
OUString SAL_CALL ODriver::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.comp.sdbc.flat.ODriver";
|
||||
return u"com.sun.star.comp.sdbc.flat.ODriver"_ustr;
|
||||
}
|
||||
|
||||
|
||||
|
@ -82,43 +82,43 @@ Sequence< DriverPropertyInfo > SAL_CALL ODriver::getPropertyInfo( const OUString
|
|||
{
|
||||
if ( acceptsURL(url) )
|
||||
{
|
||||
Sequence< OUString > aBoolean { "0", "1" };
|
||||
Sequence< OUString > aBoolean { u"0"_ustr, u"1"_ustr };
|
||||
|
||||
std::vector< DriverPropertyInfo > aDriverInfo
|
||||
{
|
||||
{
|
||||
"FieldDelimiter"
|
||||
,"Field separator."
|
||||
u"FieldDelimiter"_ustr
|
||||
,u"Field separator."_ustr
|
||||
,false
|
||||
,{}
|
||||
,{}
|
||||
},
|
||||
{
|
||||
"HeaderLine"
|
||||
,"Text contains headers."
|
||||
u"HeaderLine"_ustr
|
||||
,u"Text contains headers."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"StringDelimiter"
|
||||
,"Text separator."
|
||||
u"StringDelimiter"_ustr
|
||||
,u"Text separator."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"DecimalDelimiter"
|
||||
,"Decimal separator."
|
||||
u"DecimalDelimiter"_ustr
|
||||
,u"Decimal separator."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
},
|
||||
{
|
||||
"ThousandDelimiter"
|
||||
,"Thousands separator."
|
||||
u"ThousandDelimiter"_ustr
|
||||
,u"Thousands separator."_ustr
|
||||
,false
|
||||
,"0"
|
||||
,u"0"_ustr
|
||||
,aBoolean
|
||||
}
|
||||
};
|
||||
|
|
|
@ -28,7 +28,8 @@ rtl::Reference<OResultSet> OFlatPreparedStatement::createResultSet()
|
|||
return new OFlatResultSet(this, m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OFlatPreparedStatement, "com.sun.star.sdbc.driver.flat.PreparedStatement",
|
||||
"com.sun.star.sdbc.PreparedStatement");
|
||||
IMPLEMENT_SERVICE_INFO(OFlatPreparedStatement,
|
||||
u"com.sun.star.sdbc.driver.flat.PreparedStatement"_ustr,
|
||||
u"com.sun.star.sdbc.PreparedStatement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -46,12 +46,12 @@ OFlatResultSet::OFlatResultSet( OStatement_Base* pStmt,connectivity::OSQLParseTr
|
|||
|
||||
OUString SAL_CALL OFlatResultSet::getImplementationName( )
|
||||
{
|
||||
return "com.sun.star.sdbcx.flat.ResultSet";
|
||||
return u"com.sun.star.sdbcx.flat.ResultSet"_ustr;
|
||||
}
|
||||
|
||||
Sequence< OUString > SAL_CALL OFlatResultSet::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.ResultSet", "com.sun.star.sdbcx.ResultSet" };
|
||||
return { u"com.sun.star.sdbc.ResultSet"_ustr, u"com.sun.star.sdbcx.ResultSet"_ustr };
|
||||
}
|
||||
|
||||
sal_Bool SAL_CALL OFlatResultSet::supportsService( const OUString& _rServiceName )
|
||||
|
|
|
@ -28,6 +28,6 @@ rtl::Reference<OResultSet> OFlatStatement::createResultSet()
|
|||
return new OFlatResultSet(this,m_aSQLIterator);
|
||||
}
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(OFlatStatement,"com.sun.star.sdbc.driver.flat.Statement","com.sun.star.sdbc.Statement");
|
||||
IMPLEMENT_SERVICE_INFO(OFlatStatement,u"com.sun.star.sdbc.driver.flat.Statement"_ustr,u"com.sun.star.sdbc.Statement"_ustr);
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
|
@ -415,7 +415,7 @@ void OFlatTable::construct()
|
|||
m_xNumberFormatter.set( NumberFormatter::create( m_pConnection->getDriver()->getComponentContext()), UNO_QUERY_THROW);
|
||||
m_xNumberFormatter->attachNumberFormatsSupplier(xSupplier);
|
||||
Reference<XPropertySet> xProp = xSupplier->getNumberFormatSettings();
|
||||
xProp->getPropertyValue("NullDate") >>= m_aNullDate;
|
||||
xProp->getPropertyValue(u"NullDate"_ustr) >>= m_aNullDate;
|
||||
|
||||
INetURLObject aURL;
|
||||
aURL.SetURL(getEntry());
|
||||
|
|
|
@ -28,7 +28,7 @@ using namespace connectivity::file;
|
|||
sdbcx::ObjectType OFlatTables::createObject(const OUString& _rName)
|
||||
{
|
||||
rtl::Reference<OFlatTable> pRet = new OFlatTable(this, static_cast<OFlatConnection*>(static_cast<OFileCatalog&>(m_rParent).getConnection()),
|
||||
_rName,"TABLE");
|
||||
_rName,u"TABLE"_ustr);
|
||||
pRet->construct();
|
||||
return pRet;
|
||||
}
|
||||
|
|
|
@ -41,8 +41,8 @@ OHCatalog::OHCatalog(const Reference< XConnection >& _xConnection) : sdbcx::OCat
|
|||
void OHCatalog::refreshObjects(const Sequence< OUString >& _sKindOfObject,::std::vector< OUString>& _rNames)
|
||||
{
|
||||
Reference< XResultSet > xResult = m_xMetaData->getTables(Any(),
|
||||
"%",
|
||||
"%",
|
||||
u"%"_ustr,
|
||||
u"%"_ustr,
|
||||
_sKindOfObject);
|
||||
fillNames(xResult,_rNames);
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ void OHCatalog::refreshTables()
|
|||
{
|
||||
::std::vector< OUString> aVector;
|
||||
|
||||
Sequence< OUString > sTableTypes {"VIEW", "TABLE"};
|
||||
Sequence< OUString > sTableTypes {u"VIEW"_ustr, u"TABLE"_ustr};
|
||||
|
||||
refreshObjects(sTableTypes,aVector);
|
||||
|
||||
|
@ -63,7 +63,7 @@ void OHCatalog::refreshTables()
|
|||
|
||||
void OHCatalog::refreshViews()
|
||||
{
|
||||
Sequence< OUString > aTypes { "VIEW" };
|
||||
Sequence< OUString > aTypes { u"VIEW"_ustr };
|
||||
|
||||
bool bSupportsViews = false;
|
||||
try
|
||||
|
@ -100,7 +100,7 @@ void OHCatalog::refreshUsers()
|
|||
{
|
||||
::std::vector< OUString> aVector;
|
||||
Reference< XStatement > xStmt = m_xConnection->createStatement( );
|
||||
Reference< XResultSet > xResult = xStmt->executeQuery("select User from hsqldb.user group by User");
|
||||
Reference< XResultSet > xResult = xStmt->executeQuery(u"select User from hsqldb.user group by User"_ustr);
|
||||
if ( xResult.is() )
|
||||
{
|
||||
Reference< XRow > xRow(xResult,UNO_QUERY);
|
||||
|
|
|
@ -65,7 +65,7 @@ void OHSQLColumn::construct()
|
|||
|
||||
Sequence< OUString > SAL_CALL OHSQLColumn::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbcx.Column" };
|
||||
return { u"com.sun.star.sdbcx.Column"_ustr };
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ namespace connectivity::hsqldb
|
|||
}
|
||||
|
||||
IMPLEMENT_FORWARD_XINTERFACE2(OHsqlConnection,OHsqlConnection_BASE,OConnectionWrapper)
|
||||
IMPLEMENT_SERVICE_INFO(OHsqlConnection, "com.sun.star.sdbc.drivers.hsqldb.OHsqlConnection", "com.sun.star.sdbc.Connection")
|
||||
IMPLEMENT_SERVICE_INFO(OHsqlConnection, u"com.sun.star.sdbc.drivers.hsqldb.OHsqlConnection"_ustr, u"com.sun.star.sdbc.Connection"_ustr)
|
||||
IMPLEMENT_FORWARD_XTYPEPROVIDER2(OHsqlConnection,OHsqlConnection_BASE,OConnectionWrapper)
|
||||
|
||||
|
||||
|
@ -144,7 +144,7 @@ namespace connectivity::hsqldb
|
|||
if ( !m_bReadOnly )
|
||||
{
|
||||
Reference< XStatement > xStmt( m_xConnection->createStatement(), css::uno::UNO_SET_THROW );
|
||||
xStmt->execute( "CHECKPOINT DEFRAG" );
|
||||
xStmt->execute( u"CHECKPOINT DEFRAG"_ustr );
|
||||
}
|
||||
}
|
||||
catch(const Exception& )
|
||||
|
@ -316,11 +316,9 @@ namespace connectivity::hsqldb
|
|||
|
||||
// ask the provider to obtain a graphic
|
||||
Sequence< PropertyValue > aMediaProperties{ comphelper::makePropertyValue(
|
||||
"URL", OUString(
|
||||
// load the graphic from the global graphic repository
|
||||
"private:graphicrepository/"
|
||||
u"URL"_ustr, u"private:graphicrepository/"
|
||||
// the relative path within the images.zip
|
||||
LINKED_TEXT_TABLE_IMAGE_RESOURCE)) };
|
||||
LINKED_TEXT_TABLE_IMAGE_RESOURCE ""_ustr) };
|
||||
xGraphic = xProvider->queryGraphic( aMediaProperties );
|
||||
OSL_ENSURE( xGraphic.is(), "OHsqlConnection::impl_getTextTableIcon_nothrow: the provider did not give us a graphic object!" );
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace connectivity
|
|||
if ( !m_xDriver.is() )
|
||||
{
|
||||
Reference<XDriverManager2> xDriverAccess = DriverManager::create( m_xContext );
|
||||
m_xDriver = xDriverAccess->getDriverByURL("jdbc:hsqldb:db");
|
||||
m_xDriver = xDriverAccess->getDriverByURL(u"jdbc:hsqldb:db"_ustr);
|
||||
}
|
||||
|
||||
return m_xDriver;
|
||||
|
@ -203,16 +203,15 @@ namespace connectivity
|
|||
|
||||
// properties for accessing the embedded storage
|
||||
OUString sKey = StorageContainer::registerStorage( xStorage, sSystemPath );
|
||||
aProperties.put( "storage_key", sKey );
|
||||
aProperties.put( "storage_class_name",
|
||||
OUString( "com.sun.star.sdbcx.comp.hsqldb.StorageAccess" ) );
|
||||
aProperties.put( "fileaccess_class_name",
|
||||
OUString( "com.sun.star.sdbcx.comp.hsqldb.StorageFileAccess" ) );
|
||||
aProperties.put( u"storage_key"_ustr, sKey );
|
||||
aProperties.put( u"storage_class_name"_ustr,
|
||||
u"com.sun.star.sdbcx.comp.hsqldb.StorageAccess"_ustr );
|
||||
aProperties.put( u"fileaccess_class_name"_ustr,
|
||||
u"com.sun.star.sdbcx.comp.hsqldb.StorageFileAccess"_ustr );
|
||||
|
||||
// JDBC driver and driver's classpath
|
||||
aProperties.put( "JavaDriverClass",
|
||||
OUString( "org.hsqldb.jdbcDriver" ) );
|
||||
aProperties.put( "JavaDriverClassPath",
|
||||
aProperties.put( u"JavaDriverClass"_ustr, u"org.hsqldb.jdbcDriver"_ustr );
|
||||
aProperties.put( u"JavaDriverClassPath"_ustr,
|
||||
#ifdef SYSTEM_HSQLDB
|
||||
u"" HSQLDB_JAR
|
||||
#else
|
||||
|
@ -221,21 +220,21 @@ namespace connectivity
|
|||
" vnd.sun.star.expand:$LO_JAVA_DIR/sdbc_hsqldb.jar"_ustr );
|
||||
|
||||
// auto increment handling
|
||||
aProperties.put( "IsAutoRetrievingEnabled", true );
|
||||
aProperties.put( "AutoRetrievingStatement",
|
||||
OUString( "CALL IDENTITY()" ) );
|
||||
aProperties.put( "IgnoreDriverPrivileges", true );
|
||||
aProperties.put( u"IsAutoRetrievingEnabled"_ustr, true );
|
||||
aProperties.put( u"AutoRetrievingStatement"_ustr,
|
||||
u"CALL IDENTITY()"_ustr );
|
||||
aProperties.put( u"IgnoreDriverPrivileges"_ustr, true );
|
||||
|
||||
// don't want to expose HSQLDB's schema capabilities which exist since 1.8.0RC10
|
||||
aProperties.put( "default_schema",
|
||||
OUString( "true" ) );
|
||||
aProperties.put( u"default_schema"_ustr,
|
||||
u"true"_ustr );
|
||||
|
||||
// security: permitted Java classes
|
||||
NamedValue aPermittedClasses(
|
||||
"hsqldb.method_class_names",
|
||||
u"hsqldb.method_class_names"_ustr,
|
||||
Any( lcl_getPermittedJavaMethods_nothrow( m_xContext ) )
|
||||
);
|
||||
aProperties.put( "SystemProperties", Sequence< NamedValue >( &aPermittedClasses, 1 ) );
|
||||
aProperties.put( u"SystemProperties"_ustr, Sequence< NamedValue >( &aPermittedClasses, 1 ) );
|
||||
|
||||
OUString sMessage;
|
||||
try
|
||||
|
@ -333,10 +332,10 @@ namespace connectivity
|
|||
if ( xProp.is() )
|
||||
{
|
||||
sal_Int32 nMode = 0;
|
||||
xProp->getPropertyValue("OpenMode") >>= nMode;
|
||||
xProp->getPropertyValue(u"OpenMode"_ustr) >>= nMode;
|
||||
if ( (nMode & ElementModes::WRITE) != ElementModes::WRITE )
|
||||
{
|
||||
aProperties.put( "readonly", OUString( "true" ) );
|
||||
aProperties.put( u"readonly"_ustr, u"true"_ustr );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -424,24 +423,24 @@ namespace connectivity
|
|||
return
|
||||
{
|
||||
{
|
||||
"Storage",
|
||||
"Defines the storage where the database will be stored.",
|
||||
u"Storage"_ustr,
|
||||
u"Defines the storage where the database will be stored."_ustr,
|
||||
true,
|
||||
{},
|
||||
{}
|
||||
},
|
||||
{
|
||||
"URL",
|
||||
"Defines the url of the data source.",
|
||||
u"URL"_ustr,
|
||||
u"Defines the url of the data source."_ustr,
|
||||
true,
|
||||
{},
|
||||
{}
|
||||
},
|
||||
{
|
||||
"AutoRetrievingStatement",
|
||||
"Defines the statement which will be executed to retrieve auto increment values.",
|
||||
u"AutoRetrievingStatement"_ustr,
|
||||
u"Defines the statement which will be executed to retrieve auto increment values."_ustr,
|
||||
false,
|
||||
"CALL IDENTITY()",
|
||||
u"CALL IDENTITY()"_ustr,
|
||||
{}
|
||||
}
|
||||
};
|
||||
|
@ -510,12 +509,12 @@ namespace connectivity
|
|||
|
||||
Sequence< OUString > SAL_CALL ODriverDelegator::getSupportedServiceNames( )
|
||||
{
|
||||
return { "com.sun.star.sdbc.Driver", "com.sun.star.sdbcx.Driver" };
|
||||
return { u"com.sun.star.sdbc.Driver"_ustr, u"com.sun.star.sdbcx.Driver"_ustr };
|
||||
}
|
||||
|
||||
void SAL_CALL ODriverDelegator::createCatalog( const Sequence< PropertyValue >& /*info*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XCreateCatalog::createCatalog", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XCreateCatalog::createCatalog"_ustr, *this );
|
||||
}
|
||||
|
||||
void ODriverDelegator::shutdownConnection(const TWeakPairVector::iterator& _aIter )
|
||||
|
@ -531,12 +530,12 @@ namespace connectivity
|
|||
Reference<XStatement> xStmt = _xConnection->createStatement();
|
||||
if ( xStmt.is() )
|
||||
{
|
||||
Reference<XResultSet> xRes = xStmt->executeQuery("SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS WHERE USER_NAME ='SA'");
|
||||
Reference<XResultSet> xRes = xStmt->executeQuery(u"SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS WHERE USER_NAME ='SA'"_ustr);
|
||||
Reference<XRow> xRow(xRes,UNO_QUERY);
|
||||
if ( xRow.is() && xRes->next() )
|
||||
bLastOne = xRow->getInt(1) == 1;
|
||||
if ( bLastOne )
|
||||
xStmt->execute("SHUTDOWN");
|
||||
xStmt->execute(u"SHUTDOWN"_ustr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -643,7 +642,7 @@ namespace connectivity
|
|||
Reference< XStatement> xStmt = xConnection->createStatement();
|
||||
OSL_ENSURE( xStmt.is(), "ODriverDelegator::preCommit: no statement!" );
|
||||
if ( xStmt.is() )
|
||||
xStmt->execute( "SET WRITE_DELAY 0" );
|
||||
xStmt->execute( u"SET WRITE_DELAY 0"_ustr );
|
||||
|
||||
bool bPreviousAutoCommit = xConnection->getAutoCommit();
|
||||
xConnection->setAutoCommit( false );
|
||||
|
@ -651,7 +650,7 @@ namespace connectivity
|
|||
xConnection->setAutoCommit( bPreviousAutoCommit );
|
||||
|
||||
if ( xStmt.is() )
|
||||
xStmt->execute( "SET WRITE_DELAY 60" );
|
||||
xStmt->execute( u"SET WRITE_DELAY 60"_ustr );
|
||||
}
|
||||
}
|
||||
catch(Exception&)
|
||||
|
@ -812,7 +811,7 @@ namespace connectivity
|
|||
|
||||
OUString lcl_getSystemLocale( const Reference< XComponentContext >& _rxContext )
|
||||
{
|
||||
OUString sLocaleString = "en-US";
|
||||
OUString sLocaleString = u"en-US"_ustr;
|
||||
try
|
||||
{
|
||||
|
||||
|
@ -823,13 +822,13 @@ namespace connectivity
|
|||
// arguments for creating the config access
|
||||
Sequence<Any> aArguments(comphelper::InitAnyPropertySequence(
|
||||
{
|
||||
{"nodepath", Any(OUString("/org.openoffice.Setup/L10N" ))}, // the path to the node to open
|
||||
{"nodepath", Any(u"/org.openoffice.Setup/L10N"_ustr)}, // the path to the node to open
|
||||
{"depth", Any(sal_Int32(-1))}, // the depth: -1 means unlimited
|
||||
}));
|
||||
// create the access
|
||||
Reference< XPropertySet > xNode(
|
||||
xConfigProvider->createInstanceWithArguments(
|
||||
"com.sun.star.configuration.ConfigurationAccess",
|
||||
u"com.sun.star.configuration.ConfigurationAccess"_ustr,
|
||||
aArguments ),
|
||||
UNO_QUERY );
|
||||
OSL_ENSURE( xNode.is(), "lcl_getSystemLocale: invalid access returned (should throw an exception instead)!" );
|
||||
|
@ -837,7 +836,7 @@ namespace connectivity
|
|||
|
||||
// ask for the system locale setting
|
||||
if ( xNode.is() )
|
||||
xNode->getPropertyValue("ooSetupSystemLocale") >>= sLocaleString;
|
||||
xNode->getPropertyValue(u"ooSetupSystemLocale"_ustr) >>= sLocaleString;
|
||||
}
|
||||
catch( const Exception& )
|
||||
{
|
||||
|
|
|
@ -103,14 +103,14 @@ namespace connectivity::hsqldb
|
|||
{
|
||||
css::uno::Environment env(css::uno::Environment::getCurrent());
|
||||
if (!(env.is() && storageEnvironment.is())) {
|
||||
throw css::uno::RuntimeException("cannot get environments");
|
||||
throw css::uno::RuntimeException(u"cannot get environments"_ustr);
|
||||
}
|
||||
if (env.get() == storageEnvironment.get()) {
|
||||
return storage;
|
||||
} else {
|
||||
css::uno::Mapping map(storageEnvironment, env);
|
||||
if (!map.is()) {
|
||||
throw css::uno::RuntimeException("cannot get mapping");
|
||||
throw css::uno::RuntimeException(u"cannot get mapping"_ustr);
|
||||
}
|
||||
css::uno::Reference<css::embed::XStorage> mapped;
|
||||
map.mapInterface(
|
||||
|
|
|
@ -276,7 +276,7 @@ void OHSQLTable::dropDefaultValue(const OUString& _rColName)
|
|||
|
||||
OUString OHSQLTable::getAlterTableColumnPart() const
|
||||
{
|
||||
OUString sSql( "ALTER TABLE " );
|
||||
OUString sSql( u"ALTER TABLE "_ustr );
|
||||
|
||||
OUString sComposedName( ::dbtools::composeTableName( getMetaData(), m_CatalogName, m_SchemaName, m_Name, true, ::dbtools::EComposeRule::InTableDefinitions ) );
|
||||
sSql += sComposedName;
|
||||
|
@ -338,7 +338,7 @@ void SAL_CALL OHSQLTable::rename( const OUString& newName )
|
|||
|
||||
if(!isNew())
|
||||
{
|
||||
OUString sSql = "ALTER ";
|
||||
OUString sSql = u"ALTER "_ustr;
|
||||
if ( m_Type == "VIEW" )
|
||||
sSql += " VIEW ";
|
||||
else
|
||||
|
|
|
@ -44,7 +44,7 @@ sdbcx::ObjectType OTables::createObject(const OUString& _rName)
|
|||
OUString sCatalog,sSchema,sTable;
|
||||
::dbtools::qualifiedNameComponents(m_xMetaData,_rName,sCatalog,sSchema,sTable,::dbtools::EComposeRule::InDataManipulation);
|
||||
|
||||
Sequence< OUString > sTableTypes {"VIEW", "TABLE", "%"}; // this last one just to be sure to include anything else...
|
||||
Sequence< OUString > sTableTypes {u"VIEW"_ustr, u"TABLE"_ustr, u"%"_ustr}; // this last one just to be sure to include anything else...
|
||||
|
||||
Any aCatalog;
|
||||
if ( !sCatalog.isEmpty() )
|
||||
|
@ -114,7 +114,7 @@ void OTables::dropObject(sal_Int32 _nPos,const OUString& _sElementName)
|
|||
OUString sCatalog,sSchema,sTable;
|
||||
::dbtools::qualifiedNameComponents(m_xMetaData,_sElementName,sCatalog,sSchema,sTable,::dbtools::EComposeRule::InDataManipulation);
|
||||
|
||||
OUString aSql( "DROP " );
|
||||
OUString aSql( u"DROP "_ustr );
|
||||
|
||||
Reference<XPropertySet> xProp(xObject,UNO_QUERY);
|
||||
bool bIsView;
|
||||
|
|
|
@ -114,7 +114,7 @@ void OHSQLUser::findPrivilegesAndGrantPrivileges(const OUString& objName, sal_In
|
|||
Any aCatalog;
|
||||
if ( !sCatalog.isEmpty() )
|
||||
aCatalog <<= sCatalog;
|
||||
xRes = xMeta->getColumnPrivileges(aCatalog,sSchema,sTable,"%");
|
||||
xRes = xMeta->getColumnPrivileges(aCatalog,sSchema,sTable,u"%"_ustr);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ void SAL_CALL OHSQLUser::changePassword( const OUString& /*oldPassword*/, const
|
|||
|
||||
if( m_Name != xMeta->getUserName() )
|
||||
{
|
||||
::dbtools::throwGenericSQLException("HSQLDB can only change password of the current user.", *this);
|
||||
::dbtools::throwGenericSQLException(u"HSQLDB can only change password of the current user."_ustr, *this);
|
||||
}
|
||||
|
||||
OUString sAlterPwd = "SET PASSWORD " +
|
||||
|
|
|
@ -83,7 +83,7 @@ sdbcx::ObjectType OUsers::appendObject( const OUString& _rForName, const Referen
|
|||
// XDrop
|
||||
void OUsers::dropObject(sal_Int32 /*nPos*/,const OUString& _sElementName)
|
||||
{
|
||||
OUString aSql( "REVOKE ALL ON * FROM " );
|
||||
OUString aSql( u"REVOKE ALL ON * FROM "_ustr );
|
||||
OUString aQuote = m_xConnection->getMetaData()->getIdentifierQuoteString( );
|
||||
aSql += ::dbtools::quoteName(aQuote,_sElementName);
|
||||
|
||||
|
|
|
@ -95,7 +95,7 @@ void HViews::dropObject(sal_Int32 _nPos,const OUString& /*_sElementName*/)
|
|||
bool bIsNew = connectivity::sdbcx::ODescriptor::isNew( xObject );
|
||||
if (!bIsNew)
|
||||
{
|
||||
OUString aSql( "DROP VIEW" );
|
||||
OUString aSql( u"DROP VIEW"_ustr );
|
||||
|
||||
Reference<XPropertySet> xProp(xObject,UNO_QUERY);
|
||||
aSql += ::dbtools::composeTableName( m_xMetaData, xProp, ::dbtools::EComposeRule::InTableDefinitions, true );
|
||||
|
|
|
@ -132,7 +132,7 @@ sal_Int64 SAL_CALL java_sql_Blob::position( const css::uno::Sequence< sal_Int8 >
|
|||
|
||||
sal_Int64 SAL_CALL java_sql_Blob::positionOfBlob( const css::uno::Reference< css::sdbc::XBlob >& /*pattern*/, sal_Int64 /*start*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XBlob::positionOfBlob", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XBlob::positionOfBlob"_ustr, *this );
|
||||
// this was put here in CWS warnings01. The previous implementation was defective, as it did ignore
|
||||
// the pattern parameter. Since the effort for proper implementation is rather high - we would need
|
||||
// to translated pattern into a byte[] -, we defer this functionality for the moment (hey, it was
|
||||
|
|
|
@ -38,7 +38,7 @@ using namespace ::com::sun::star::container;
|
|||
using namespace ::com::sun::star::lang;
|
||||
|
||||
|
||||
IMPLEMENT_SERVICE_INFO(java_sql_CallableStatement,"com.sun.star.sdbcx.ACallableStatement","com.sun.star.sdbc.CallableStatement");
|
||||
IMPLEMENT_SERVICE_INFO(java_sql_CallableStatement,u"com.sun.star.sdbcx.ACallableStatement"_ustr,u"com.sun.star.sdbc.CallableStatement"_ustr);
|
||||
|
||||
|
||||
//************ Class: java.sql.CallableStatement
|
||||
|
|
|
@ -119,7 +119,7 @@ sal_Int64 SAL_CALL java_sql_Clob::position( const OUString& searchstr, sal_Int32
|
|||
|
||||
sal_Int64 SAL_CALL java_sql_Clob::positionOfClob( const css::uno::Reference< css::sdbc::XClob >& /*pattern*/, sal_Int64 /*start*/ )
|
||||
{
|
||||
::dbtools::throwFeatureNotImplementedSQLException( "XClob::positionOfClob", *this );
|
||||
::dbtools::throwFeatureNotImplementedSQLException( u"XClob::positionOfClob"_ustr, *this );
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue