h2/src/main/org/h2/server/pg/PgServer.java
/**
     * Check if the current session has access to this table.
     * This method is called by the database.
     *
     * @param conn the connection
     * @param pgType the PostgreSQL type oid
     * @param typeMod the type modifier (typically -1)
     * @return the name of the given type
     */
Check if the current session has access to this table.
This method is called by the database.

@param conn the connection
@param pgType the PostgreSQL type oid
@param typeMod the type modifier (typically -1)
@return the name of the given type
Check if the current session has access to this table . This method is called by the database . @param conn the connection @param pgType the PostgreSQL type oid @param typeMod the type modifier ( typically - 1 ) @return the name of the given type
public static String formatType(Connection conn, int pgType, int typeMod) throws SQLException {
        PreparedStatement prep = conn.prepareStatement(
                "select typname from pg_catalog.pg_type where oid = ? and typtypmod = ?");
        prep.setInt(1, pgType);
        prep.setInt(2, typeMod);
        ResultSet rs = prep.executeQuery();
        if (rs.next()) {
            return rs.getString(1);
        }
        return null;
    }
public static String formatType ( Connection conn , int pgType , int typeMod ) throws SQLException { PreparedStatement prep = conn . prepareStatement ( "select typname from pg_catalog.pg_type where oid = ? and typtypmod = ?" ) ; prep . setInt ( 1 , pgType ) ; prep . setInt ( 2 , typeMod ) ; ResultSet rs = prep . executeQuery ( ) ; if ( rs . next ( ) ) { return rs . getString ( 1 ) ; } return null ; }
Check if the current session has access to this table.
Check if the current session has access to this table .