{
catalog = fixCase(session, catalogName);
schema = fixCase(session, schemaName);
object = fixCase(session, objectName);
}
ISQLDatabaseMetaData md = session.getMetaData();
boolean useSchema = true;
boolean useCatalog = true;
try
{
useCatalog = md.supportsCatalogsInTableDefinitions();
} catch (SQLException e)
{
log.info("Encountered unexpected exception while attempting to "
+ "determine if catalogs are used in table definitions");
}
try
{
useSchema = md.supportsSchemasInTableDefinitions();
} catch (SQLException e)
{
log.info("Encountered unexpected exception while attempting to "
+ "determine if schemas are used in table definitions");
}