h2/src/main/org/h2/bnf/context/DbSchema.java
/**
     * Read all tables for this schema from the database meta data.
     *
     * @param meta the database meta data
     * @param tableTypes the table types to read
     */
Read all tables for this schema from the database meta data.
@param meta the database meta data
@param tableTypes the table types to read
Read all tables for this schema from the database meta data . @param meta the database meta data @param tableTypes the table types to read
public void readTables(DatabaseMetaData meta, String[] tableTypes) throws SQLException {
        ResultSet rs = meta.getTables(null, name, null, tableTypes);
        ArrayList<DbTableOrView> list = New.arrayList();
        while (rs.next()) {
            DbTableOrView table = new DbTableOrView(this, rs);
            if (contents.isOracle() && table.getName().indexOf('$') > 0) {
                continue;
            }
            list.add(table);
        }
        rs.close();
        tables = new DbTableOrView[list.size()];
        list.toArray(tables);
        if (tables.length < MAX_TABLES_LIST_COLUMNS) {
            for (DbTableOrView tab : tables) {
                try {
                    tab.readColumns(meta);
                } catch (SQLException e) {
                }
            }
        }
    }
public void readTables ( DatabaseMetaData meta , String [ ] tableTypes ) throws SQLException { ResultSet rs = meta . getTables ( null , name , null , tableTypes ) ; ArrayList < DbTableOrView > list = New . arrayList ( ) ; while ( rs . next ( ) ) { DbTableOrView table = new DbTableOrView ( this , rs ) ; if ( contents . isOracle ( ) && table . getName ( ) . indexOf ( '$' ) > 0 ) { continue ; } list . add ( table ) ; } rs . close ( ) ; tables = new DbTableOrView [ list . size ( ) ] ; list . toArray ( tables ) ; if ( tables . length < MAX_TABLES_LIST_COLUMNS ) { for ( DbTableOrView tab : tables ) { try { tab . readColumns ( meta ) ; } catch ( SQLException e ) { } } } }
Read all tables for this schema from the database meta data.
Read all tables for this schema from the database meta data .
// MySQL: // View '...' references invalid table(s) or column(s) // or function(s) or definer/invoker of view // lack rights to use them HY000/1356 // ignore