Replaced deprecated database type synonyms in Oracle backend.

This commit is contained in:
Mariusz Felisiak 2023-12-06 13:51:54 +01:00 committed by GitHub
parent 66d58e77de
commit 00ef74376e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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):