Ignore authentication for embedded db (firebird-sdbc).

This turns off firebird's internal SQL authentication -- previously
tables were created and/or access validated using the current user's
name leading to issues when a .odb file is shared amongst different
users.

Change-Id: I86615c17c3045aac19d635ee41d76673d1b64530
This commit is contained in:
Andrzej J.R. Hunt 2013-07-30 20:35:01 +02:00
parent 470daf5ce0
commit 5226b42560

View file

@ -207,7 +207,13 @@ void OConnection::construct(const ::rtl::OUString& url, const Sequence< Property
*dpb++ = FIREBIRD_SQL_DIALECT;
// Do any more dpbBuffer additions here
if (!m_bIsEmbedded) // TODO: || m_bIsLocalFile
if (m_bIsEmbedded) // TODO: || m_bIsLocalFile
{
*dpb++ = isc_dpb_trusted_auth;
*dpb++ = 1; // Length of data
*dpb++ = 1; // TRUE
}
else
{
// TODO: parse password from connection string as needed?
}