Skip to content

Commit

Permalink
Update DiscoveredTableValuedFunction.cs
Browse files Browse the repository at this point in the history
Enumerable fixups
  • Loading branch information
jas88 committed Aug 17, 2024
1 parent 10d904b commit dade861
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FAnsiSql/Discovery/DiscoveredTableValuedFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public override void Drop()
public IEnumerable<DiscoveredParameter> DiscoverParameters(ManagedTransaction? transaction = null)
{
using var connection = Database.Server.GetManagedConnection(transaction);
connection.Connection.Open();
return Helper.DiscoverTableValuedFunctionParameters(connection.Connection, this, connection.Transaction);
foreach (var param in Helper.DiscoverTableValuedFunctionParameters(connection.Connection, this,
connection.Transaction))
yield return param;
}
}

0 comments on commit dade861

Please sign in to comment.