From 90d93a1b425c0e6e3d88afa9fff78790300e1e38 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 26 Sep 2018 08:51:27 +0200 Subject: [PATCH] Made DatabaseWrapper.oracle_version() return a full version tuple. --- django/db/backends/oracle/base.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/django/db/backends/oracle/base.py b/django/db/backends/oracle/base.py index 0c64d995b4..2df77d7630 100644 --- a/django/db/backends/oracle/base.py +++ b/django/db/backends/oracle/base.py @@ -300,17 +300,10 @@ class DatabaseWrapper(BaseDatabaseWrapper): else: return True - @cached_property - def oracle_full_version(self): - with self.temporary_connection(): - return self.connection.version - @cached_property def oracle_version(self): - try: - return int(self.oracle_full_version.split('.')[0]) - except ValueError: - return None + with self.temporary_connection(): + return tuple(int(x) for x in self.connection.version.split('.')) class OracleParam: