Hi Mark, thaks for all your patches! I guess Gijs will tkae care of also checking in this one. You are more than welcome to announce your Django adapter via monetdb-announce@lists.sourceforge.net and/or monetdb-users@lists.sourceforge.net. In case you message doesn't go through instantly (we keep posting access to our mailing list rather limited to prevent spam), we'll take care of approving (or resending) it. To run MonetDB tests, you also need to download/checkout, compile and install the "testing" package of MonetDB. This provides our "Mtest.py" testing tool. To run the python tests in .../clients/src/python/test/ you need to also have the sql sources of MonetDB. Go to .../sql/src/test/mapi/Tests/ and run Mtest.py . python_test_monetdb_sql_dbapi20 python_test_monetdb_sql_capabilities Stefan On Mon, Dec 21, 2009 at 12:41:52PM -0500, Mark Bucciarelli wrote:
On Mon, Dec 21, 2009 at 01:53:52PM +0100, Gijs Molenaar wrote:
On 12/21/2009 03:35 AM, Mark Bucciarelli wrote:
Is the maintainer of the Python adapter active even on this list?
hi!
:)
Hi!
I see you committed my fix for the new-line issue. Great!
I was surprised that the mapi backend behaved that way--was this really a Python client issue?
I hit another issue (this time for sure with the Python client) that I didn't open a tracker issue for--patch enclosed below.
Pretty simple: DOUBLE's and REAL's map to floats, not ints.
I was tempted to add some unit tests for this basic type conversion stuff, but I couldn't understand how the tests are run, and I wasn't going to dig around the 5,000 lines of auto-tools code:
$ pwd /home/mark/src/monetdb/clients/src/python $ find . -name "Makefile*" -exec cat {} \; | wc -l 5499 $ find . -name "*.py" -exec cat {} \; | wc -l 5545
When the Unicode fix is committed, I think the initial (rudimentary but functional) release of a Django adapter for MonetDB will be done.
http://github.com/mbucc/monetdb-python
Is there an announcement list I should post to when I'm happy with the Django adapter?
Thanks,
m
To apply this patch, from root of Monetdb source tree, execute the following commands:
$ cd clients/src/python/monetdb/sql $ patch -p0 < 2.monetdb.sql.converters.diff
--- /home/mark/converters.py.orig 2009-12-20 00:47:58.000000000 -0500 +++ ./converters.py 2009-12-20 00:48:16.000000000 -0500 @@ -42,8 +42,8 @@ type_codes.WRD: int, type_codes.BIGINT: int, type_codes.SERIAL: int, - type_codes.REAL: int, - type_codes.DOUBLE: int, + type_codes.REAL: float, + type_codes.DOUBLE: float, type_codes.BOOLEAN: self.__bool, type_codes.DATE: self.__date, type_codes.TIME: self.__time,
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Monetdb-developers mailing list Monetdb-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-developers
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4199 |