summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
index 6d9abf94bd33..a6b49047b898 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;
}
}
}