this is overly static for little gain
This commit is contained in:
@@ -49,15 +49,11 @@ OResultSetPrivileges::OResultSetPrivileges( const Reference< XDatabaseMetaData>&
|
|||||||
osl_incrementInterlockedCount( &m_refCount );
|
osl_incrementInterlockedCount( &m_refCount );
|
||||||
{
|
{
|
||||||
::rtl::OUString sUserWorkingFor;
|
::rtl::OUString sUserWorkingFor;
|
||||||
static Sequence< ::rtl::OUString > sTableTypes;
|
Sequence< ::rtl::OUString > sTableTypes(3);
|
||||||
if ( sTableTypes.getLength() == 0 )
|
|
||||||
{
|
|
||||||
// we want all catalogues, all schemas, all tables
|
// we want all catalogues, all schemas, all tables
|
||||||
sTableTypes.realloc(3);
|
|
||||||
sTableTypes[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VIEW"));
|
sTableTypes[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("VIEW"));
|
||||||
sTableTypes[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TABLE"));
|
sTableTypes[1] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TABLE"));
|
||||||
sTableTypes[2] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%")); // just to be sure to include anything else ....
|
sTableTypes[2] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("%")); // just to be sure to include anything else ....
|
||||||
}
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_xTables = _rxMeta->getTables(catalog,schemaPattern,tableNamePattern,sTableTypes);
|
m_xTables = _rxMeta->getTables(catalog,schemaPattern,tableNamePattern,sTableTypes);
|
||||||
|
Reference in New Issue
Block a user