firebird: don't run an attached database's own event triggers
for the embedded and file cases suppress the database's ON CONNECT and similar event triggers when attaching, they should not fire just because the document was opened Change-Id: I37edab43f25d8cb72cc6dcafd743045f96b4c2e6 Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6700 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit 36335ff89ea2309e99da02b449c9b35517cd6f9d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208029 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
committed by
Xisco Fauli
parent
427178ee5c
commit
cc5ac2a819
@@ -228,8 +228,13 @@ void Connection::construct(const OUString& url, const Sequence< PropertyValue >&
|
||||
|
||||
// Do any more dpbBuffer additions here
|
||||
|
||||
// attach without running the database's own event triggers
|
||||
if (m_bIsEmbedded || m_bIsFile)
|
||||
{
|
||||
dpbBuffer.push_back(isc_dpb_no_db_triggers);
|
||||
dpbBuffer.push_back(1); // 1 byte long
|
||||
dpbBuffer.push_back(1);
|
||||
|
||||
userName = "sysdba"_ostr;
|
||||
userPassword = "masterkey"_ostr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user