Kaydet (Commit) 1f8a5d4f authored tarafından Mariusz Felisiak's avatar Mariusz Felisiak

[2.1.x] Made DatabaseWrapper.oracle_version() return a full version tuple.

Backport of 90d93a1b from master
üst cdb8ee74
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment