diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-07-10 16:00:56 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-07-10 19:30:33 +0200 |
commit | 3278dfd0a2c09f8a8862277dffd9ef666d4862c6 (patch) | |
tree | d66ee4ab7eb44d945b57afdf1bf1e0ac6de75033 /connectivity/source | |
parent | f8f43e55ec4ae7e436a5043fe6f4bae7b39cc6ad (diff) |
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@mamane.lu>
Tested-by: Jenkins
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/firebird/ResultSetMetaData.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); } |