# HG changeset patch # User catherine@Elli.myhome.westell.com # Date 1230693158 18000 # Node ID 7b2787c465162aea0a8259979ae9266758480a05 # Parent 78ddfa41e5c166a9d3a340be9faaab9d0a2fab2f synch diff -r 78ddfa41e5c1 -r 7b2787c46516 sqlpython/sqlpyPlus.py --- a/sqlpython/sqlpyPlus.py Wed Dec 24 11:14:54 2008 -0500 +++ b/sqlpython/sqlpyPlus.py Tue Dec 30 22:12:38 2008 -0500 @@ -925,6 +925,10 @@ traceback.print_exc(file=sys.stdout) def do_refs(self, arg): + '''Lists referential integrity (foreign key constraints) on an object.''' + + if not arg.strip(): + print 'Usage: refs (table name)' result = [] (type, owner, table_name) = self.resolve(arg.upper()) self.curs.execute("""SELECT constraint_name, r_owner, r_constraint_name