changeset 371:e0750f7967d7

prevent die on logon failure
author catherine@cordelia
date Fri, 07 Aug 2009 16:34:47 -0400
parents 388ee8fa5664
children 832ec6607b22
files docs/source/index.rst sqlpython/sqlpyPlus.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/docs/source/index.rst	Mon Jul 06 09:03:55 2009 -0400
+++ b/docs/source/index.rst	Fri Aug 07 16:34:47 2009 -0400
@@ -5,8 +5,6 @@
 Welcome to SQLPython's documentation!
 =====================================
 
-Dayton *Dynamic* Languages Group is **awesome**
-
 Contents:
 
 .. toctree::
--- a/sqlpython/sqlpyPlus.py	Mon Jul 06 09:03:55 2009 -0400
+++ b/sqlpython/sqlpyPlus.py	Fri Aug 07 16:34:47 2009 -0400
@@ -82,7 +82,7 @@
 AND      atc.owner = :owner
 ORDER BY atc.column_id;""",
 'oneColComments': """
-SELECTatc.column_name,
+SELECT atc.column_name,
 acc.comments             
 FROM all_tab_columns atc
 JOIN all_col_comments acc ON (atc.owner = acc.owner and atc.table_name = acc.table_name and atc.column_name = acc.column_name)
@@ -405,7 +405,9 @@
         
     def postcmd(self, stop, line):
         """Hook method executed just after a command dispatch is finished."""        
-        if (self.rdbms == 'oracle') and self.serveroutput:
+        if (    hasattr(self, 'rdbms') 
+            and (self.rdbms == 'oracle') 
+            and self.serveroutput):
             self.dbms_output()
         return stop