dabo Commit
Revision 1380
Date: 2005-09-26 01:15:24 -0700 (Mon, 26 Sep 2005)
Author: paul

Changed:
U   trunk/dabo/db/dbMySQL.py

Log:
If no tablename sent to getfields, just return an empty tuple.


Diff:
Modified: trunk/dabo/db/dbMySQL.py
===================================================================
--- trunk/dabo/db/dbMySQL.py    2005-09-26 06:28:42 UTC (rev 1379)
+++ trunk/dabo/db/dbMySQL.py    2005-09-26 08:15:24 UTC (rev 1380)
@@ -77,6 +77,8 @@
                return tempCursor.fetchall()[0][0]
 
        def getFields(self, tableName):
+               if not tableName:
+                       return tuple([])
                tempCursor = self._connection.cursor()
                tempCursor.execute("describe %s" % tableName)
                rs = tempCursor.fetchall()




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to