* @throws SQLException
*/
public static void SYSCS_SET_XPLAIN_SCHEMA(String schemaName)
throws SQLException, StandardException
{
LanguageConnectionContext lcc = ConnectionUtil.getCurrentLCC();
TransactionController tc = lcc.getTransactionExecute();
if (schemaName == null || schemaName.trim().length() == 0)
{
lcc.setXplainSchema(null);
return;
}
boolean statsSave = lcc.getRunTimeStatisticsMode();
lcc.setRunTimeStatisticsMode(false);
createXplainSchema(schemaName);
createXplainTable(lcc, schemaName,
new XPLAINStatementDescriptor());
createXplainTable(lcc, schemaName,
new XPLAINStatementTimingsDescriptor());
createXplainTable(lcc, schemaName,
new XPLAINResultSetDescriptor());
createXplainTable(lcc, schemaName,
new XPLAINResultSetTimingsDescriptor());
createXplainTable(lcc, schemaName,
new XPLAINScanPropsDescriptor());
createXplainTable(lcc, schemaName,
new XPLAINSortPropsDescriptor());
lcc.setRunTimeStatisticsMode(statsSave);
lcc.setXplainSchema(schemaName);
}