User: hr      
Date: 06/06/19 18:42:16

Modified:
 /dba/connectivity/source/drivers/mozab/
  MDatabaseMetaData.cxx

Log:
 INTEGRATION: CWS warnings01 (1.10.30); FILE MERGED
 2006/04/07 20:22:31 sb 1.10.30.3: RESYNC: (1.10-1.11); FILE MERGED
 2005/11/16 12:59:12 fs 1.10.30.2: #i57457# warning free code
 2005/11/07 14:43:44 fs 1.10.30.1: #i57457# warning-free code

File Changes:

Directory: /dba/connectivity/source/drivers/mozab/
==================================================

File [changed]: MDatabaseMetaData.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/mozab/MDatabaseMetaData.cxx?r1=1.11&r2=1.12
Delta lines:  +41 -44
---------------------
--- MDatabaseMetaData.cxx       29 Mar 2006 12:17:40 -0000      1.11
+++ MDatabaseMetaData.cxx       20 Jun 2006 01:42:14 -0000      1.12
@@ -157,7 +157,7 @@
     aRow[18] = new ORowSetValueDecorator(::rtl::OUString( 
RTL_CONSTASCII_USTRINGPARAM("YES")));
 
     // Iterate over all tables
-    for(sal_Int32 j = 0; j < tables.size(); j++ ) {
+    for(size_t j = 0; j < tables.size(); j++ ) {
         if(match(tableNamePattern, tables[j],'\0')) {
             // TABLE_NAME
             aRow[3] = new ORowSetValueDecorator( tables[j] );
@@ -165,7 +165,7 @@
             OSL_TRACE( "\t\tTableName = %s;\n",OUtoCStr( tables[j] ));
 
             // Iterate over all collumns in the table.
-            for ( sal_Int32 i = 0; i < colNames.size(); i++ ) {
+            for ( size_t i = 0; i < colNames.size(); i++ ) {
                 if(match(columnNamePattern, colNames[i],'\0')) {
                     OSL_TRACE( "\t\t\tColumnName = %s;\n",OUtoCStr( 
colNames[i] ));
                     // COLUMN_NAME
@@ -396,7 +396,7 @@
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( 
sal_Int32 level ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsTransactionIsolationLevel( 
sal_Int32 /*level*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
@@ -534,7 +534,7 @@
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 fromType, 
sal_Int32 toType ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert( sal_Int32 /*fromType*/, 
sal_Int32 /*toType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
@@ -815,57 +815,57 @@
        return nValue;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 setType 
) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetType( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 
setType, sal_Int32 concurrency ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::supportsResultSetConcurrency( sal_Int32 
/*setType*/, sal_Int32 /*concurrency*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::ownUpdatesAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 
setType ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::othersUpdatesAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 
setType ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::othersDeletesAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 
setType ) throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::othersInsertsAreVisible( sal_Int32 
/*setType*/ ) throw(SQLException, RuntimeException)
 {
        return sal_False;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::updatesAreDetected( sal_Int32 /*setType*/ 
) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::deletesAreDetected( sal_Int32 /*setType*/ 
) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
 // -------------------------------------------------------------------------
-sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 setType ) 
throw(SQLException, RuntimeException)
+sal_Bool SAL_CALL ODatabaseMetaData::insertsAreDetected( sal_Int32 /*setType*/ 
) throw(SQLException, RuntimeException)
 {
        return sal_True;
 }
@@ -914,7 +914,6 @@
                aRow.push_back(ODatabaseMetaDataResultSet::getEmptyValue());
         aRow.push_back(new ORowSetValueDecorator(sTableTypes[i]));
                // bound row
-               ODatabaseMetaDataResultSet::ORow::iterator aIter = aRow.begin();
                aRows.push_back(aRow);
        }
        // here we set the rows at the resultset
@@ -984,8 +983,8 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumnPrivileges(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table,
-       const ::rtl::OUString& columnNamePattern ) throw(SQLException, 
RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/,
+       const ::rtl::OUString& /*columnNamePattern*/ ) throw(SQLException, 
RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -996,7 +995,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getColumns(
-       const Any& catalog, const ::rtl::OUString& schemaPattern, const 
::rtl::OUString& tableNamePattern,
+       const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const 
::rtl::OUString& tableNamePattern,
        const ::rtl::OUString& columnNamePattern ) throw(SQLException, 
RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
@@ -1009,7 +1008,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTables(
-       const Any& catalog, const ::rtl::OUString& schemaPattern,
+       const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/,
        const ::rtl::OUString& tableNamePattern, const Sequence< 
::rtl::OUString >& types ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
@@ -1031,8 +1030,8 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedureColumns(
-       const Any& catalog, const ::rtl::OUString& schemaPattern,
-       const ::rtl::OUString& procedureNamePattern, const ::rtl::OUString& 
columnNamePattern ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/,
+       const ::rtl::OUString& /*procedureNamePattern*/, const ::rtl::OUString& 
/*columnNamePattern*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1043,8 +1042,8 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getProcedures(
-       const Any& catalog, const ::rtl::OUString& schemaPattern,
-       const ::rtl::OUString& procedureNamePattern ) throw(SQLException, 
RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/,
+       const ::rtl::OUString& /*procedureNamePattern*/ ) throw(SQLException, 
RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1055,7 +1054,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getVersionColumns(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1066,7 +1065,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getExportedKeys(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1077,7 +1076,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getImportedKeys(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1088,7 +1087,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getPrimaryKeys(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1099,8 +1098,8 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getIndexInfo(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table,
-       sal_Bool unique, sal_Bool approximate ) throw(SQLException, 
RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/,
+       sal_Bool /*unique*/, sal_Bool /*approximate*/ ) throw(SQLException, 
RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1111,8 +1110,8 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
-       const Any& catalog, const ::rtl::OUString& schema, const 
::rtl::OUString& table, sal_Int32 scope,
-       sal_Bool nullable ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schema*/, const 
::rtl::OUString& /*table*/, sal_Int32 /*scope*/,
+       sal_Bool /*nullable*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1123,7 +1122,7 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getTablePrivileges(
-       const Any& catalog, const ::rtl::OUString& schemaPattern, const 
::rtl::OUString& tableNamePattern ) throw(SQLException, RuntimeException)
+       const Any& /*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const 
::rtl::OUString& tableNamePattern ) throw(SQLException, RuntimeException)
 {
                ::connectivity::ODatabaseMetaDataResultSet* pResult = new 
::connectivity::ODatabaseMetaDataResultSet();
                Reference< XResultSet > xRef = NULL;
@@ -1148,7 +1147,7 @@
 
 
     // Iterate over all tables
-    for(sal_Int32 j = 0; j < tables.size(); j++ ) {
+    for(size_t j = 0; j < tables.size(); j++ ) {
        if(match(tableNamePattern, tables[j],'\0')) 
                   {
             // TABLE_NAME
@@ -1180,9 +1179,9 @@
 }
 // -------------------------------------------------------------------------
 Reference< XResultSet > SAL_CALL ODatabaseMetaData::getCrossReference(
-       const Any& primaryCatalog, const ::rtl::OUString& primarySchema,
-       const ::rtl::OUString& primaryTable, const Any& foreignCatalog,
-       const ::rtl::OUString& foreignSchema, const ::rtl::OUString& 
foreignTable ) throw(SQLException, RuntimeException)
+       const Any& /*primaryCatalog*/, const ::rtl::OUString& /*primarySchema*/,
+       const ::rtl::OUString& /*primaryTable*/, const Any& /*foreignCatalog*/,
+       const ::rtl::OUString& /*foreignSchema*/, const ::rtl::OUString& 
/*foreignTable*/ ) throw(SQLException, RuntimeException)
 {
        // this returns an empty resultset where the column-names are already 
set
        // in special the metadata of the resultset already returns the right 
columns
@@ -1192,10 +1191,8 @@
        return xResultSet;
 }
 // -------------------------------------------------------------------------
-Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& 
catalog, const ::rtl::OUString& schemaPattern, const ::rtl::OUString& 
typeNamePattern, const Sequence< sal_Int32 >& types ) throw(SQLException, 
RuntimeException)
+Reference< XResultSet > SAL_CALL ODatabaseMetaData::getUDTs( const Any& 
/*catalog*/, const ::rtl::OUString& /*schemaPattern*/, const ::rtl::OUString& 
/*typeNamePattern*/, const Sequence< sal_Int32 >& /*types*/ ) 
throw(SQLException, RuntimeException)
 {
-       OSL_ENSURE(0,"Not implemented yet!");
-       throw SQLException();
        return NULL;
 }
 // 
-----------------------------------------------------------------------------




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

Reply via email to