On Thu, Jul 3, 2008 at 10:36 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I've also read through the patch already and it seems like the right > track. I like the approach, since it helps in a few areas, including > field extensions and extra database backends. > > I haven't given it a complete fine-detail review yet to pick things out > of individual lines, but only one thing jumped out on the initial read. > I've been trying very hard to eliminate lines like: > > if settings.DATABASE_ENGINE.endswith('zxjdbc'): > > from places outside the database backend-specific directories. This is > because it locks in particular backends to the main code, leading to > extensibility problems for other backends. So rather than introduce a > line like that, I'm always going to prefer to remove things like the > section following it that gives SQLite3 special handling.
Yes, as I noted on the ticket description, I didn't really understood why all that different formats were needed by each backend, so I was a bit scared to touch that portion of code. But now that you make me think again, that was just a lame excuse :-). I just pushed that logic to DatabaseOperations and named it "year_lookup_bounds". So the new posted patch[1] is updated to svn trunk, and also fixes a test that would broke because get_db_prep* now may return different values for different backends. [1] http://code.djangoproject.com/attachment/ticket/7560/get_db_prep_refactor-3.patch -- 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 -~----------~----~----~----~------~----~------~--~---