microsoft / mssql-django

The Microsoft Django backend for SQL Server provides a connectivity layer for Django on SQL Server or Azure SQL DB.
Other
348 stars 113 forks source link

Possible regression in inspectdb with schema argument #411

Open Wedge009 opened 2 months ago

Wedge009 commented 2 months ago

Software versions

Table schema and Model N/A

Database Connection Settings Blocked by stupid corporate proxy, but there's nothing relevant here, I believe.

Problem description and steps to reproduce python manage.py inspectdb works as expected - demonstrating the database connection is valid - but only for the default schema.

python manage.py inspectdb --schema [schema_name] results in the following error:

usage: manage.py inspectdb [-h] [--database DATABASE] [--include-partitions] [--include-views] [--version] [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback]
                           [--no-color] [--force-color]
                           [table ...]
manage.py inspectdb: error: unrecognized arguments: --schema

Expected behaviour and actual behaviour

Error message/stack trace As above.

Any other details that can be helpful Formal report of the problem that I mentioned previously at https://github.com/microsoft/mssql-django/issues/56#issuecomment-2306027381

mShan0 commented 2 months ago

Thanks for the report. Will look into this

Wedge009 commented 2 months ago

Thank you for the acknowledgement.