File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 73
73
# monkey patch a fix to django oracle backend bug, blocks all oracle tests
74
74
from django .db .backends .oracle .schema import DatabaseSchemaEditor
75
75
from django .utils .duration import duration_iso_string
76
- from django .db .backends .oracle .base import FormatStylePlaceholderCursor
77
76
78
77
quote_value = DatabaseSchemaEditor .quote_value
79
78
@@ -87,28 +86,6 @@ def quote_value_patched(self, value):
87
86
88
87
89
88
DatabaseSchemaEditor .quote_value = quote_value_patched
90
-
91
-
92
- _param_generator = FormatStylePlaceholderCursor ._param_generator
93
-
94
-
95
- def param_generator (self , params ):
96
- params = _param_generator (self , params )
97
- if hasattr (params , "items" ):
98
- return {
99
- k : duration_iso_string (v )
100
- if isinstance (v , timedelta )
101
- else v for k , v in params .items ()
102
- }
103
- else :
104
- return [
105
- duration_iso_string (p )
106
- if isinstance (p , timedelta ) else p for p in params
107
- ]
108
-
109
-
110
- FormatStylePlaceholderCursor ._param_generator = param_generator
111
- import cx_Oracle
112
89
###############################################################################
113
90
114
91
You can’t perform that action at this time.
0 commit comments