@@ -334,7 +334,7 @@ def getTables(self, bruteForce=None):
334334 if conf .getComments :
335335 _ = queries [Backend .getIdentifiedDbms ()].table_comment
336336 if hasattr (_ , "query" ):
337- if Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE ):
337+ if Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE , DBMS . HANA ):
338338 query = _ .query % (unsafeSQLIdentificatorNaming (db .upper ()), unsafeSQLIdentificatorNaming (table .upper ()))
339339 else :
340340 query = _ .query % (unsafeSQLIdentificatorNaming (db ), unsafeSQLIdentificatorNaming (table ))
@@ -443,7 +443,7 @@ def getTables(self, bruteForce=None):
443443 for table in tables :
444444 _ = queries [Backend .getIdentifiedDbms ()].table_comment
445445 if hasattr (_ , "query" ):
446- if Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE ):
446+ if Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE , DBMS . HANA ):
447447 query = _ .query % (unsafeSQLIdentificatorNaming (db .upper ()), unsafeSQLIdentificatorNaming (table .upper ()))
448448 else :
449449 query = _ .query % (unsafeSQLIdentificatorNaming (db ), unsafeSQLIdentificatorNaming (table ))
@@ -787,7 +787,7 @@ def getColumns(self, onlyColNames=False, colTuple=None, bruteForce=None, dumpMod
787787 query = rootQuery .blind .count % (unsafeSQLIdentificatorNaming (tbl ), unsafeSQLIdentificatorNaming (conf .db ))
788788 query += condQuery
789789
790- elif Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE , DBMS .MIMERSQL ):
790+ elif Backend .getIdentifiedDbms () in (DBMS .ORACLE , DBMS .DB2 , DBMS .DERBY , DBMS .ALTIBASE , DBMS .MIMERSQL , DBMS . HANA ):
791791 query = rootQuery .blind .count % (unsafeSQLIdentificatorNaming (tbl .upper ()), unsafeSQLIdentificatorNaming (conf .db .upper ()))
792792 query += condQuery
793793
@@ -864,7 +864,7 @@ def columnNameQuery(index):
864864 query = rootQuery .blind .query % (unsafeSQLIdentificatorNaming (tbl ), unsafeSQLIdentificatorNaming (conf .db ))
865865 query = query .replace (" ORDER BY " , "%s ORDER BY " % condQuery )
866866 field = None
867- elif Backend .isDbms ( DBMS .MIMERSQL ):
867+ elif Backend .getIdentifiedDbms () in ( DBMS .MIMERSQL , DBMS . HANA ):
868868 query = rootQuery .blind .query % (unsafeSQLIdentificatorNaming (tbl .upper ()), unsafeSQLIdentificatorNaming (conf .db .upper ()))
869869 query = query .replace (" ORDER BY " , "%s ORDER BY " % condQuery )
870870 field = None
0 commit comments