adodbapi works correctly on RC1.

View: New views
3 Messages — Rating Filter:   Alert me  

adodbapi works correctly on RC1.

by Vernon Cole-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I Py 2.6 RC1 successfully passes all tests for adodbapi. Congratulations!
You now have a fully PEP 249 compliant database engine on IronPython.

  Now someone needs to remember to re-enable the tests in the test suite which were commented out previously, so that regressions do not occur.  In particular, you need to run adodbapitest.py (which tests the end-to-end operation) in addition to test_adodbapi_dbapi20.py (which only tests the module for standards compliance.)
--
Vernon Cole


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Parent Message unknown Re: adodbapi works correctly on RC1.

by jazzcat2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


"I Py 2.6 RC1 successfully passes all tests for adodbapi. Congratulations!
You now have a fully PEP 249 compliant database engine on IronPython."

Excellent.  I wonder if this bodes well for Django out of the box on IPy 2.6?  Is there still an issue of Django's handling of Unicode for binary data?


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Re: adodbapi works correctly on RC1.

by Vernon Cole-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do not hold your breath.  I understand that there is a problem with unicode vs str in django.  The PEP 429 specifies a BINARY constructor (which within adodbapi has different definitions for Python2.x and Python3.x) which a user can call to get a piece of raw memory. Django does not seem to have similar functionality, and all that will have to be fixed before porting to Python 3.  IronPython uses 'str' as a synonym for 'unicode' -- so it is halfway there, and porting to IPy is a good step in getting ready for Python 3.  Internally in adodbapi I use the symbols 'makeByteBuffer' and 'memoryViewType' when I need to refer to raw bytes. Django will need something like that.

Also, the version of adodbapi which is used in the django-MSsql project was forked off before the IronPython support was added. I have communicated with the authors and will try to make a new version of adodbapi which has all of the functionality needed for django, so that this fork can be merged in.  I do not know whether the other dbapi modules for IronPython are complete enough to support django, but I kind of doubt it. The database access code in django seems to be quite version specific for database api modules. Again, ADO should be able to replace any of them -- but it will take some work to get there.
--
Vernon

On Tue, Oct 20, 2009 at 12:48 PM, Josh <josh@...> wrote:

"I Py 2.6 RC1 successfully passes all tests for adodbapi. Congratulations!
You now have a fully PEP 249 compliant database engine on IronPython."

Excellent.  I wonder if this bodes well for Django out of the box on IPy 2.6?  Is there still an issue of Django's handling of Unicode for binary data?


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com


_______________________________________________
Users mailing list
Users@...
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com