Skip to content

Commit 09a297c

Browse files
authored
Removing PARSENAME from sys.schemas lookup
Proposed solution to issue tSQLt-org#5
1 parent 30058b3 commit 09a297c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/tSQLt.DropClass.ssp.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ BEGIN
5656
UNION ALL
5757
SELECT 10000,'DROP SCHEMA ' + QUOTENAME(name) +';'
5858
FROM sys.schemas
59-
WHERE schema_id = SCHEMA_ID(PARSENAME(@ClassName,1))
59+
WHERE schema_id = SCHEMA_ID(@ClassName)
6060
),
6161
StatementBlob(xml)AS
6262
(

0 commit comments

Comments
 (0)