On Thu, Jun 12, 2008 at 8:35 PM, Ramiro Morales <[EMAIL PROTECTED]> wrote: > > Jack Moffitt, mamcx (and everyone interested), > > I've been working in my free time for the last few days on updating the > pyodbc-based MS SQL Server backend so it a) can be an external Django > backend and b) to post qs-rf merge.
[...] > Since then I've opened ticket [2]#7420 with a patch I see that part of the patch deals with the fact that the underlying adapter prefer to receive actual date and time instances for date and time parameters, instead of strings. I have the same problem when talking to JDBC drivers. To solve it I proposed[1] another strategy: delegate type conversion to the backend. Otherwise, I think we will end with too many backend flags. You can see my first attempt on https://hg.leosoto.com/django.doj/rev/8b0c71447f98. I've made more adjustments later[2] and plan to submit a patch once I fix all the remaining backend related test failures with postgresql_zxjdbc (Which, according to my schedule should be this week) This won't help with the interprets_empty_strings_as_nulls flag you are proposing, tough. > that would reduce the list > of things needed to patch in Django to just *one item: Taking in account the > fact that in pyodbc seems to be the only DB-API2 adapter where > connection.autocommit is an attribute and not a method (didn't find a way to > cleanly monkeypatch this). You are definitely not alone. Same happens with zxJDBC. Same workaround as yours: https://hg.leosoto.com/django.doj/rev/235b40d3da2e [1] http://groups.google.com/group/django-developers/browse_thread/thread/fb1afa93451008a2/0fed055c00cb64e7 [2] https://hg.leosoto.com/django.doj/log?rev=leo.soto+get_db_prep -- Leo Soto M. http://blog.leosoto.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---