On Sun, Mar 10, 2013 at 3:03 PM, Petite Abeille <[email protected]> wrote: > Another point perhaps worthwhile mentioning: > > # There's no way for the DatabaseOperations class to know the > # currently active Oracle version, so we do some setups here. > > https://github.com/django/django/blob/master/django/db/backends/oracle/base.py#L574 > > That information can be extracted from v$version, v$instance, > dbms_db_version.version, product_component_version, etc, etc. The choice is > yours.
This is actually a timing concern. The DatabaseOperations class can't determine the Oracle version on its own because it doesn't have a connection instance. So instead the DatabaseWrapper selects the appropriate regex method for the Oracle version when the connection is created. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
