[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - connectivity/source

Lionel Elie Mamane lionel at mamane.lu
Thu Jul 25 10:39:16 PDT 2013


 connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit c39c9c8ca312e569066e9d717c00bc99613b3189
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date:   Thu Jul 25 15:32:09 2013 +0200

    fdo#67269 adapt checkTable to getTableName change
    
    getTableName used to return schema.table;
    now it returns just table
    But tables are indexed by schema.table in getTables(), so reconstruct that for the lookup.
    
    Change-Id: I53da1e43762b3a470e34b5dfdb0e1bb3dc914780
    Reviewed-on: https://gerrit.libreoffice.org/5101
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
index 6d9abf9..a6b4904 100644
--- a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
+++ b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
@@ -239,9 +239,10 @@ void ResultSetMetaData::checkTable()
             }
             if( tables.is() )
             {
-                OUString name = getTableName( 1 );
-//                 if( tables->hasByName( name ) )
-                tables->getByName( name ) >>= m_table;
+                const OUString name   (getTableName ( 1 ));
+                const OUString schema (getSchemaName( 1 ));
+                const OUString composedName( schema.isEmpty() ? name : (schema + "." + name) );
+                tables->getByName( composedName ) >>= m_table;
             }
         }
     }


More information about the Libreoffice-commits mailing list