Skip to content

Commit

Permalink
Skip tests in SqlExecutorNpgsqlTest that tests unsupported features
Browse files Browse the repository at this point in the history
  • Loading branch information
giangpham712 committed Oct 15, 2023
1 parent da3015e commit 9a75960
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion test/EFCore.PG.FunctionalTests/Query/SqlExecutorNpgsqlTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Data.Common;
using Npgsql.EntityFrameworkCore.PostgreSQL.TestUtilities;

namespace Npgsql.EntityFrameworkCore.PostgreSQL.Query;

Expand All @@ -21,4 +22,22 @@ protected override DbParameter CreateDbParameter(string name, object value)
protected override string CustomerOrderHistorySproc => @"SELECT * FROM ""CustOrderHist""(@CustomerID)";

protected override string CustomerOrderHistoryWithGeneratedParameterSproc => @"SELECT * FROM ""CustOrderHist""({0})";
}

[SkipForCockroachDb("CockroachDB doesn't support function that returns TABLE, https://github.com/cockroachdb/cockroach/issues/100226")]
[ConditionalTheory]
[InlineData(false)]
[InlineData(true)]
public override Task Executes_stored_procedure_with_generated_parameter(bool async)
{
return base.Executes_stored_procedure_with_generated_parameter(async);
}

[SkipForCockroachDb("CockroachDB doesn't support function that returns TABLE, https://github.com/cockroachdb/cockroach/issues/100226")]
[ConditionalTheory]
[InlineData(false)]
[InlineData(true)]
public override Task Executes_stored_procedure_with_parameter(bool async)
{
return base.Executes_stored_procedure_with_parameter(async);
}
}

0 comments on commit 9a75960

Please sign in to comment.