Skip to content

AssertObjectExists could also check for the type of object #195

Description

@mverbaas

AssertObjectExists could also check of the object type. Now you can miss a test if there is, for example a table and a view with the same name.

CREATE TABLE dbo.orders (c1 int)

and

CREATE VIEW dbo.orders as SELECT c1 FROM dbo.orders

Both would succeed with
EXEC tSQLt.AssertObjectExists @objectname = N'dbo.orders'

Adding an optional type checker U or V could maybe make the assertion more specific.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions