#NEWLINE# def get_table_list( self , cursor ) : #NEWLINE# #INDENT# '\n        Returns a list of table names in the current database.\n        ' #NEWLINE# if self . db . limit_table_list : #NEWLINE# #INDENT# cursor . execute ( "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_SCHEMA = 'dbo'" ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cursor . execute ( "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE'" ) #NEWLINE# #UNINDENT# return [ row [ 0 ] for row in cursor . fetchall ( ) ]