changeset 211:7b2787c46516

synch
author catherine@Elli.myhome.westell.com
date Tue, 30 Dec 2008 22:12:38 -0500
parents 78ddfa41e5c1
children 37936b3a50a0
files sqlpython/sqlpyPlus.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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