Skip to content

Cherry-pick: Fix MSSQL IDENTITY columns not detected outside dbo schema (#1595) #4

@GingerAdonis

Description

@GingerAdonis

Upstream PR

dimitri#1595

Summary

COLUMNPROPERTY(object_id(c.TABLE_NAME), ...) was scoped to default schema only. Fix qualifies with schema: COLUMNPROPERTY(OBJECT_ID(c.TABLE_SCHEMA + '.' + c.TABLE_NAME), ...).

Files

  • src/sources/mssql/sql/list-all-columns.sql

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent: schemaDDL generation, schema discovery, indexessource: mssqlMS SQL Server source migrations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions