denisenkom / django-sqlserver

Django backend for MSSQL server using pytds or adodb backend (moved here from https://bitbucket.org/cramm/django-sqlserver)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get_tables() returns views as well and not just tables

amanjeev opened this issue · comments

I understand that this is a wrapper to django-mssql but I was wondering if this is a better starting place to ask this. The connections.introspection.table_names() returns views as well. table_names() calls get_tables() which returns all objects and not just tables [1].

I think it will help if we can define not only the kind of objects but also if possible a list of tables that we need inspected. What do you think? Please feel free to correct me or point me to the right direction.

[1] https://bitbucket.org/Manfre/django-mssql/src/d5703fe6ab98181f3878674b7c476ff26c9ba208/sqlserver_ado/introspection.py?at=master#cl-31