Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c7ae7 commit 7d9fd5aCopy full SHA for 7d9fd5a
1 file changed
lib/core/common.py
@@ -1753,15 +1753,18 @@ def isNumPosStrValue(value):
1753
1754
return value and isinstance(value, basestring) and value.isdigit() and value != "0"
1755
1756
-def aliasToDbmsEnum(value):
+def aliasToDbmsEnum(dbms):
1757
"""
1758
Returns major DBMS name from a given alias
1759
1760
1761
retVal = None
1762
1763
+ if dbms is None:
1764
+ return None
1765
+
1766
for key, item in dbmsDict.items():
- if value.lower() in item[0]:
1767
+ if dbms.lower() in item[0]:
1768
retVal = key
1769
break
1770
0 commit comments