ó
i4Vdc           @   sd   d  d l  m Z d  d l m Z y d  d l Z Wn e k
 rI d Z n Xd e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   BaseDatabaseFeatures(   t   InterfaceErrorNt   DatabaseFeaturesc           B   sÑ   e  Z d Z e Z e Z e Z e Z e Z e	 Z
 e	 Z e Z e	 Z e d k	 Z e	 Z e Z e Z e	 Z e Z e Z e Z e	 Z e	 Z e	 Z e	 Z e	 Z e	 Z e Z e Z e  Z! d  Z" e Z# e	 Z$ d e	 d „ Z% RS(   s
    FROM DUALc         C   sG   |  j  j d k  r. | r. | j ƒ  r. | r. d St t |  ƒ j | | ƒ S(   s  
        Some versions of Oracle -- we've seen this on 11.2.0.1 and suspect
        it goes back -- have a weird bug where, when an integer column is
        added to an existing table with a default, its precision is later
        reported on introspection as 0, regardless of the real precision.
        For Django introspection, this means that such columns are reported
        as IntegerField even if they are really BigIntegerField or BooleanField.

        The bug is solved in Oracle 11.2.0.2 and up.
        s   11.2.0.2t   IntegerField(   t
   connectiont   oracle_full_versiont   has_defaultt   superR   t   introspected_boolean_field_type(   t   selft   fieldt   created_separately(    (    sp   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/oracle/features.pyR   +   s    *(    N(&   t   __name__t
   __module__t   empty_fetchmany_valuet   Truet!   interprets_empty_strings_as_nullst   uses_savepointst   has_select_for_updatet   has_select_for_update_nowaitt   can_return_id_from_insertt   Falset   allow_sliced_subqueriest   supports_subqueries_in_group_byt   supports_transactionst   supports_timezonest   pytzt   Nonet   has_zoneinfo_databaset   supports_bitwise_ort   has_native_duration_fieldt   can_defer_constraint_checkst.   supports_partially_nullable_unique_constraintst   truncates_namest   has_bulk_insertt   supports_tablespacest   supports_sequence_resett   can_introspect_defaultt   can_introspect_max_lengtht   can_introspect_time_fieldt   atomic_transactionst   supports_combined_alterst   nulls_order_largestt   requires_literal_defaultsR   t   closed_cursor_error_classt   bare_select_suffixt   uppercases_column_namest%   supports_select_for_update_with_limitR   (    (    (    sp   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/oracle/features.pyR   
   s>   (   t    django.db.backends.base.featuresR    t   django.db.utilsR   R   t   ImportErrorR   R   (    (    (    sp   /var/www/html/phendo-backend/phendo_python/env/lib/python2.7/site-packages/django/db/backends/oracle/features.pyt   <module>   s   
