mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Replaced deprecated database type synonyms in Oracle backend.
This commit is contained in:
parent
66d58e77de
commit
00ef74376e
@ -386,9 +386,9 @@ class OracleParam:
|
||||
self.input_size = param.input_size
|
||||
elif string_size > 4000:
|
||||
# Mark any string param greater than 4000 characters as a CLOB.
|
||||
self.input_size = Database.CLOB
|
||||
self.input_size = Database.DB_TYPE_CLOB
|
||||
elif isinstance(param, datetime.datetime):
|
||||
self.input_size = Database.TIMESTAMP
|
||||
self.input_size = Database.DB_TYPE_TIMESTAMP
|
||||
else:
|
||||
self.input_size = None
|
||||
|
||||
|
@ -21,8 +21,8 @@ class InsertVar:
|
||||
"PositiveBigIntegerField": int,
|
||||
"PositiveSmallIntegerField": int,
|
||||
"PositiveIntegerField": int,
|
||||
"FloatField": Database.NATIVE_FLOAT,
|
||||
"DateTimeField": Database.TIMESTAMP,
|
||||
"FloatField": Database.DB_TYPE_BINARY_DOUBLE,
|
||||
"DateTimeField": Database.DB_TYPE_TIMESTAMP,
|
||||
"DateField": Database.Date,
|
||||
"DecimalField": decimal.Decimal,
|
||||
}
|
||||
@ -46,7 +46,7 @@ class Oracle_datetime(datetime.datetime):
|
||||
to tell oracledb to save the microseconds too.
|
||||
"""
|
||||
|
||||
input_size = Database.TIMESTAMP
|
||||
input_size = Database.DB_TYPE_TIMESTAMP
|
||||
|
||||
@classmethod
|
||||
def from_datetime(cls, dt):
|
||||
|
Loading…
Reference in New Issue
Block a user