diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_tools.cxx | 3 | ||||
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xuser.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx index b6e021116326..02e2e58a59e3 100644 --- a/connectivity/source/drivers/postgresql/pq_tools.cxx +++ b/connectivity/source/drivers/postgresql/pq_tools.cxx @@ -1153,8 +1153,7 @@ bool implSetObject( const Reference< XParameters >& _rxParameters, { case css::uno::TypeClass_HYPER: { - sal_Int64 nValue = 0; - _rxParameters->setLong( _nColumnIndex, nValue ); + _rxParameters->setLong( _nColumnIndex, sal_Int64(0) ); } break; diff --git a/connectivity/source/drivers/postgresql/pq_xuser.cxx b/connectivity/source/drivers/postgresql/pq_xuser.cxx index f3fd5385df82..b41af2736076 100644 --- a/connectivity/source/drivers/postgresql/pq_xuser.cxx +++ b/connectivity/source/drivers/postgresql/pq_xuser.cxx @@ -135,7 +135,6 @@ void User::changePassword( sal_Int32 User::getPrivileges( const OUString& objName, sal_Int32 objType ) { - sal_Int32 ret = 0xffffffff; if (isLog(m_pSettings, LogLevel::Info)) { Statics & st = getStatics(); @@ -147,7 +146,7 @@ sal_Int32 User::getPrivileges( const OUString& objName, sal_Int32 objType ) log(m_pSettings, LogLevel::Info, buf.makeStringAndClear()); } // all privileges - return ret; + return 0xffffffff; } sal_Int32 User::getGrantablePrivileges( const OUString& objName, sal_Int32 objType ) |