On Sun, 2007-08-19 at 23:01 -0500, Adrian Holovaty wrote: [...] > I haven't yet made DatabaseError, IntegrityError and the introspection > and creation functionality accessible via the django.db.connection > object. Those changes can happen in the near future, if they need to > be made.
If we do move those (not clear why it would be needed, though), it'd be nice to leave backwards compat references in place. We pull out those exceptions into a db-neutral namespace because people are using them a lot. So changing it will have a big impact and leaving an alias in place is free. > Note that this is backwards-incompatible for anybody who was using the > django.db.backend functions -- such as quote_name() -- directly. None > of this stuff was documented, so I don't see it as a *huge* deal, but > we can add backwards-compatibility hooks for some of the most common > actions (quote_name() comes to mind) if people feel like that's > important. I've outlined the changes here: > > http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Refactoreddatabasebackends Looking at that list of renamed functions, the only one that jumps out as likely to be generically used is quote_name. If you're trying to write custom SQL, particularly database-agnostic custom SQL, it's a handy function to use. The majority of the list are internal implementation details and not useful outside of Django. In fact, about half of them didn't exist before early this year (test framework and Oracle added a lot of per-database tests). > A big thanks to Brian for his work on the design and implementation of > this refactoring. Ditto. Thanks, Brian. Thanks for doing the review and committing here, too, Adrian. Cheers, Malcolm -- Experience is something you don't get until just after you need it. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
