[Monetdb-developers] monetdb-client for python doesn't seem to work for booleans.
vikram.bhandoh at gmail.com
Mon Feb 23 00:00:23 CET 2009
Hi I've been working on a django backend for monetdb. For people who are
interested in it have a look at it
I found a couple of issues with the python monetdb-client which are
important for python. It doesn't seem to
support boolean fields and doesn't give the lastrowid.
I have a patch here for both. I'm sure about the lastrowid. As I haven't
tested it in anger, could anyone tell
me if this is alright or have I got things completely wrong.
diff MonetSQLdb/converters.py ./converters.py
< def Boolean2Str(x, d):
< if x:
< return 'TRUE'
< return 'FALSE'
< types.BooleanType: Boolean2Str,
diff MonetSQLdb/cursors.py ./cursors.py
< self.lastrowid = 0
< if self._result.lastid()>0:
< self.lastrowid = self._result.lastid()
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the developers-list