Skip to content

Commit

Permalink
Added IsProcedure to criteria for SpExists stored procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
anierzad committed Feb 11, 2019
1 parent 847b262 commit 7e11fa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PolyDeploy/SqlDataProviders/00.09.00.SqlDataProvider
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ CREATE PROCEDURE {databaseOwner}[{objectQualifier}Cantarus_PolyDeploy_SpExists]
AS
SELECT CASE WHEN EXISTS (
SELECT *
FROM dbo.sysobjects
WHERE id = object_id(@SpName)
FROM dbo.sysobjects
WHERE id = object_id(@SpName)
AND OBJECTPROPERTY(id, N'IsProcedure') = 1
)
THEN CAST(1 AS BIT)
ELSE CAST(0 AS BIT)
Expand Down

0 comments on commit 7e11fa8

Please sign in to comment.