Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d9fd5a

Browse files
committed
Minor bug fix
1 parent b2c7ae7 commit 7d9fd5a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/core/common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,15 +1753,18 @@ def isNumPosStrValue(value):
17531753

17541754
return value and isinstance(value, basestring) and value.isdigit() and value != "0"
17551755

1756-
def aliasToDbmsEnum(value):
1756+
def aliasToDbmsEnum(dbms):
17571757
"""
17581758
Returns major DBMS name from a given alias
17591759
"""
17601760

17611761
retVal = None
17621762

1763+
if dbms is None:
1764+
return None
1765+
17631766
for key, item in dbmsDict.items():
1764-
if value.lower() in item[0]:
1767+
if dbms.lower() in item[0]:
17651768
retVal = key
17661769
break
17671770

0 commit comments

Comments
 (0)