[Libreoffice-commits] core.git: connectivity/source
Xisco Fauli (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jul 10 17:31:22 UTC 2019
connectivity/source/drivers/firebird/ResultSetMetaData.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 3278dfd0a2c09f8a8862277dffd9ef666d4862c6
Author: Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Jul 10 16:00:56 2019 +0200
Commit: Xisco FaulĂ <xiscofauli at libreoffice.org>
CommitDate: Wed Jul 10 19:30:33 2019 +0200
tdf#121528: Firebird stores scale as a negative number
Change-Id: Ic301952aeef93d3035b04442e70705d08f45f95d
Reviewed-on: https://gerrit.libreoffice.org/75357
Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>
Tested-by: Jenkins
diff --git a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
index fa36ac58b206..0b55d6d31bc5 100644
--- a/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
+++ b/connectivity/source/drivers/firebird/ResultSetMetaData.cxx
@@ -103,7 +103,7 @@ sal_Int32 SAL_CALL OResultSetMetaData::getColumnType(sal_Int32 column)
ColumnTypeInfo aInfo( m_pSqlda->sqlvar[column-1].sqltype,
m_pSqlda->sqlvar[column-1].sqlsubtype,
- m_pSqlda->sqlvar[column-1].sqlscale,
+ -(m_pSqlda->sqlvar[column-1].sqlscale),
sCharset );
return aInfo.getSdbcType();
@@ -153,7 +153,7 @@ OUString SAL_CALL OResultSetMetaData::getColumnTypeName(sal_Int32 column)
ColumnTypeInfo aInfo( m_pSqlda->sqlvar[column-1].sqltype,
m_pSqlda->sqlvar[column-1].sqlsubtype,
- m_pSqlda->sqlvar[column-1].sqlscale );
+ -(m_pSqlda->sqlvar[column-1].sqlscale) );
return aInfo.getColumnTypeName();
}
More information about the Libreoffice-commits
mailing list