Skip to content

Commit 98baba8

Browse files
This is dependant on PR GoEddie#31 for tSQLt-org/tSQLt project on GitHub. Once that PR is merged in this branch will use the new table to report on trigger covevrage.
1 parent 96fe8e6 commit 98baba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SQLCover/SQLCover/Source/DatabaseSourceGateway.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public IEnumerable<Batch> GetBatches(List<string> objectFilter)
4343
{
4444
var table =
4545
_databaseGateway.GetRecords(
46-
"select object_id, \'[\' + object_schema_name(object_id) + \'].[\' + object_name(object_id) + \']\' as object_name, definition, uses_quoted_identifier from sys.sql_modules where object_id not in (select object_id from sys.objects where type = 'IF')");
46+
"select isnull(tob.TempObjectId,sm.object_id) as object_id, \'[\' + object_schema_name(sm.object_id) + \'].[\' + object_name(sm.object_id) + \']\' as object_name, sm.definition, sm.uses_quoted_identifier from sys.sql_modules as sm left join tSQLt.TemporaryObject as tob ON sm.object_id = tob.OrgObjectId where not exists (select * from sys.objects as o where type = 'IF' and sm.object_id = o.object_id)");
4747

4848
var batches = new List<Batch>();
4949

0 commit comments

Comments
 (0)