Fixed NullPointerException (problems == null) may occur
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / adapters / PostgresAdapter.java
1 package net.sourceforge.phpdt.sql.adapters;
2
3
4 public class PostgresAdapter extends DatabaseAdapter {
5     public String getShowTableQuery(DatabaseInfo info) {
6         return "SELECT TABLENAME FROM PG_TABLES"; //$NON-NLS-1$
7     }
8     public String getShowViewQuery(DatabaseInfo info) {
9         return "SELECT VIEWNAME FROM PG_VIEWS"; //$NON-NLS-1$
10     }
11     public String getShowSequenceQuery(DatabaseInfo info) {
12         return "SELECT relname FROM pg_class WHERE relkind = 'S'"; //$NON-NLS-1$
13     }
14         //These lines commented because I couldn't find the string values anywhere
15 //    public String getNextValue(String sequence) {
16 //        return Messages.getString("PostgresAdapter.select_nextval(___4") + sequence + Messages.getString("PostgresAdapter.__)_5"); //$NON-NLS-1$ //$NON-NLS-2$
17 //    }
18 //    public String getTableListFilter() {
19 //        return Messages.getString("PostgresAdapter.pg__6"); //$NON-NLS-1$
20 //    }
21 }