Silence -Werror,-Wdeprecated-enum-enum-conversion (clang-cl)

"bitwise operation between different enumeration types ('CommandTypeEnum' and
'ExecuteOptionEnum')", but where <https://docs.microsoft.com/en-us/sql/ado/
reference/ado-api/execute-method-ado-connection?view=sql-server-ver15> documents
parameter Options as "A Long [...] Can be a bitmask of one or more
CommandTypeEnum or ExecuteOptionEnum values."

Change-Id: If000490127e7215863ea750a3f9f30e69916978e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100070
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2020-08-04 11:40:38 +02:00
parent ff23d87cb0
commit 187a6f5d2d

View File

@@ -396,7 +396,7 @@ sal_Int32 SAL_CALL OStatement_Base::executeUpdate( const OUString& sql )
try {
ADORecordset* pSet = nullptr;
CHECK_RETURN(m_Command.put_CommandText(sql))
CHECK_RETURN(m_Command.Execute(m_RecordsAffected,m_Parameters,adCmdText|adExecuteNoRecords,&pSet))
CHECK_RETURN(m_Command.Execute(m_RecordsAffected,m_Parameters,long(adCmdText)|long(adExecuteNoRecords),&pSet))
}
catch (SQLWarning& ex) {