[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - connectivity/source
Lionel Elie Mamane
lionel at mamane.lu
Mon Apr 15 00:37:11 PDT 2013
connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx | 11 ----------
1 file changed, 1 insertion(+), 10 deletions(-)
New commits:
commit c15217f477f0a9810811746796d778a5d20b89d5
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Wed Apr 10 17:15:23 2013 +0200
pgsql-sdbc: ResultSetMetaData::getTableName return tablename (without schema)
Change-Id: I319ba91045fa43922d7b694a4f13322295590c81
Reviewed-on: https://gerrit.libreoffice.org/3343
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 f6089cc..6d9abf9 100644
--- a/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
+++ b/connectivity/source/drivers/postgresql/pq_resultsetmetadata.cxx
@@ -407,16 +407,7 @@ sal_Int32 ResultSetMetaData::getScale( sal_Int32 column )
{
(void) column;
// LEM TODO This is very fishy.. Should probably return the table to which that column belongs!
- rtl::OUString ret;
- if( m_tableName.getLength() )
- {
- OUStringBuffer buf( 128 );
- buf.append( m_schemaName );
- buf.appendAscii( "." );
- buf.append( m_tableName );
- ret = buf.makeStringAndClear();
- }
- return ret;
+ return m_tableName;
}
::rtl::OUString ResultSetMetaData::getCatalogName( sal_Int32 column )
More information about the Libreoffice-commits
mailing list