Can anyone see any reason not to commit the following? I think that
views should be returned when the list of tables is requested.
Index: pg.py
===================================================================
RCS file: /usr/pubcvs/pygresql/module/pg.py,v
retrieving revision 1.35
diff -u -p -u -r1.35 pg.py
--- pg.py 28 Dec 2005 00:23:33 -0000 1.35
+++ pg.py 19 Jan 2006 11:50:29 -0000
@@ -250,7 +250,7 @@ class DB:
self.db.query("SELECT pg_namespace.nspname"
",pg_class.relname FROM pg_class"
" JOIN pg_namespace ON
pg_namespace.oid=pg_class.relnamespace"
- " WHERE pg_class.relkind='r' AND"
+ " WHERE pg_class.relkind IN ('r', 'v') AND"
" pg_class.relname!~'^Inv' AND "
" pg_class.relname!~'^pg_' ORDER BY 1,2").getresult()]
--
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql