Skip to content

SHOW ALL TABLES fails after MSSQL attach #86

@sashapodgoreanu

Description

@sashapodgoreanu

Description

After attaching a SQL Server database using the mssql extension, basic queries work correctly, but SHOW ALL TABLES fails.

Environment

  • OS: Windows
  • DuckDB version: 1.5
  • SQL Server: 2022
  • Extension: mssql (hugr-lab)

Steps to Reproduce

  1. Load the extension:
    LOAD mssql;

  2. Attach a SQL Server database (using either SECRET or connection string):
    ATTACH 'connection_string' AS mssql_db (TYPE MSSQL);

  3. Run a query:
    SELECT * FROM mssql_db.some_table;
    -- Works correctly

  4. Run:
    SHOW ALL TABLES;

Expected Behavior

SHOW ALL TABLES should list tables from all attached databases, including MSSQL.

Actual Behavior

The command hangs with no error.

Notes

  • Direct SELECT queries on MSSQL tables work fine.
  • The issue seems specific to metadata listing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions