#NEWLINE# def __init__( self , param , cursor , strings_only = False ) : #NEWLINE# #INDENT# if ( settings . USE_TZ and isinstance ( param , datetime . datetime ) ) : #NEWLINE# #INDENT# if timezone . is_naive ( param ) : #NEWLINE# #INDENT# warnings . warn ( ( 'Oracle received a naive datetime (%s) while time zone support is active.' % param ) , RuntimeWarning ) #NEWLINE# default_timezone = timezone . get_default_timezone ( ) #NEWLINE# param = timezone . make_aware ( param , default_timezone ) #NEWLINE# #UNINDENT# param = param . astimezone ( timezone . utc ) . replace ( tzinfo = None ) #NEWLINE# #UNINDENT# if ( param is True ) : #NEWLINE# #INDENT# param = '1' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( param is False ) : #NEWLINE# #INDENT# param = '0' #NEWLINE# #UNINDENT# #UNINDENT# if hasattr ( param , 'bind_parameter' ) : #NEWLINE# #INDENT# self . force_bytes = param . bind_parameter ( cursor ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . force_bytes = convert_unicode ( param , cursor . charset , strings_only ) #NEWLINE# #UNINDENT# if hasattr ( param , 'input_size' ) : #NEWLINE# #INDENT# self . input_size = param . input_size #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( param , six . string_types ) and ( len ( param ) > 4000 ) ) : #NEWLINE# #INDENT# self . input_size = Database . CLOB #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . input_size = None