dabo Commit
Revision 4798
Date: 2008-12-08 10:10:08 -0800 (Mon, 08 Dec 2008)
Author: Johnf
Trac: http://trac.dabodev.com/dabo/changeset/4798
Changed:
U trunk/dabo/db/dbPostgreSQL.py
Log:
missed the second instance of the code.
Diff:
Modified: trunk/dabo/db/dbPostgreSQL.py
===================================================================
--- trunk/dabo/db/dbPostgreSQL.py 2008-12-08 18:08:11 UTC (rev 4797)
+++ trunk/dabo/db/dbPostgreSQL.py 2008-12-08 18:10:08 UTC (rev 4798)
@@ -235,8 +235,10 @@
currval() will return the correct value for each session.
"""
- tableNameBreak=cursor.Table.split(".", 1)
- localSchemaName = tableNameBreak[0]
+ try:
+ localSchemaName, localTableName = tableName.split(".",
1)
+ except ValueError:
+ raise ValueError("Please use schema-qualified
datasource names " "(e.g. 'public.%s')" % tableName)
localTableName = tableNameBreak[1]
tempCursor =self._connection.cursor()
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]