diff options
author | Nick Hahner <nhahner@ctig.com> | 2015-01-07 20:42:38 -0800 |
---|---|---|
committer | Nick Hahner <nhahner@ctig.com> | 2015-01-07 20:42:38 -0800 |
commit | 0464d24aaa14ff2d70a0b75271ce44470d2ef63b (patch) | |
tree | 411152352904dbc12c50f0704188018354cdf56c | |
parent | 9b78193bed187f8009e1964c84ac2abd2176b035 (diff) |
Fixed comma
-rw-r--r-- | pgcli/packages/pgspecial.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/packages/pgspecial.py b/pgcli/packages/pgspecial.py index 4ac3fc95..c4cc614f 100644 --- a/pgcli/packages/pgspecial.py +++ b/pgcli/packages/pgspecial.py @@ -62,11 +62,11 @@ def describe_table_details(cur, pattern, verbose): sql ="""SELECT c.oid, n.nspname, c.relname FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace - AND pg_catalog.pg_table_is_visible(c.oid) + AND pg_catalog.pg_table_is_visible(c.oid) %s %s ORDER BY 2,3 - """ % ( ' WHERE c.relname ~ ' + relname if relname else '' + """ % ( ' WHERE c.relname ~ ' + relname if relname else '', ' AND n.nspname ~ ' + schema if schema else '' ) # Execute the sql, get the results and call describe_one_table_details on each table. |