dabo Commit
Revision 6294
Date: 2010-12-26 12:52:26 -0800 (Sun, 26 Dec 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6294
Changed:
U trunk/dabo/db/dDataSet.py
Log:
Fixed the NameError introduced in recent refactoring.
Diff:
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py 2010-12-25 23:42:03 UTC (rev 6293)
+++ trunk/dabo/db/dDataSet.py 2010-12-26 20:52:26 UTC (rev 6294)
@@ -307,7 +307,8 @@
self._cursor.execute(self._makeCreateTable(ds, alias))
# Fields may contain illegal names. This will correct them
- fldParams = [":%s" % fld for fld in [fld.replace("dabo-",
"dabo_") for fld in ds[0]]]
+ flds = [fld.replace("dabo-", "dabo_") for fld in ds[0]]
+ fldParams = [":%s" % fld for fld in flds]
insStmnt = "insert into %s (%s) values (%s)" % (alias,
", ".join(flds), ", ".join(fldParams))
_______________________________________________
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]