On 5/12/11 1:03 PM, Paul McNett wrote:
> Set DataStructure explicitly.
Oops, you are talking about datasets not cursors. dDataSet uses a different
method to
track types. Try this patch and post the output to see if my hunch is correct
(function assumes that the types of the first record are the types of the
remaining
records, but doesn't handle NULL/None):
Index: dDataSet.py
===================================================================
--- dDataSet.py (revision 6589)
+++ dDataSet.py (working copy)
@@ -281,7 +281,9 @@
retList.append("%s %s" % (safekey,
ds._typeDict[typ]))
except KeyError:
retList.append(safekey)
- return "create table %s (%s)" % (alias, ", ".join(retList))
+ ret = "create table %s (%s)" % (alias, ", ".join(retList))
+ print ret
+ return ret
def _populate(self, ds, alias=None):
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]