return t;
}
// Intermediate holders
Schema[] schemas;
Schema schema;
String dcsSchema = SqlInvariants.INFORMATION_SCHEMA;
String dcsName = ValuePool.getString(Tokens.T_UTF16);
String sqlPath = null;
Grantee user = session.getGrantee();
Object[] row;
// column number mappings
final int schema_catalog = 0;
final int schema_name = 1;
final int schema_owner = 2;
final int default_character_set_catalog = 3;
final int default_character_set_schema = 4;
final int default_character_set_name = 5;
final int sql_path = 6;
// Initialization
schemas = database.schemaManager.getAllSchemas();
// Do it.
for (int i = 0; i < schemas.length; i++) {
schema = schemas[i];
if (!user.hasSchemaUpdateOrGrantRights(
schema.getName().getNameString())) {
continue;
}
row = t.getEmptyRowData();
row[schema_catalog] = database.getCatalogName().name;
row[schema_name] = schema.getName().getNameString();
row[schema_owner] = schema.getOwner().getName().getNameString();
row[default_character_set_catalog] =
database.getCatalogName().name;
row[default_character_set_schema] = dcsSchema;
row[default_character_set_name] = dcsName;
row[sql_path] = sqlPath;