@@ -9,28 +9,43 @@ public JsonTranslationsNpgsqlTest(JsonTranslationsQueryNpgsqlFixture fixture, IT
99 Fixture . TestSqlLoggerFactory . SetTestOutputHelper ( testOutputHelper ) ;
1010 }
1111
12+ [ MinimumPostgresVersion ( 17 , 0 ) ]
1213 public override async Task JsonPathExists_on_scalar_string_column ( )
1314 {
14- // TODO: #3733
15- await AssertTranslationFailed ( base . JsonPathExists_on_scalar_string_column ) ;
15+ await base . JsonPathExists_on_scalar_string_column ( ) ;
1616
17- AssertSql ( ) ;
17+ AssertSql (
18+ """
19+ SELECT j."Id", j."JsonString", j."JsonComplexType", j."JsonOwnedType"
20+ FROM "JsonEntities" AS j
21+ WHERE JSON_EXISTS(j."JsonString", '$.OptionalInt')
22+ """ ) ;
1823 }
1924
25+ [ MinimumPostgresVersion ( 17 , 0 ) ]
2026 public override async Task JsonPathExists_on_complex_property ( )
2127 {
22- // TODO: #3733
23- await AssertTranslationFailed ( base . JsonPathExists_on_complex_property ) ;
28+ await base . JsonPathExists_on_complex_property ( ) ;
2429
25- AssertSql ( ) ;
30+ AssertSql (
31+ """
32+ SELECT j."Id", j."JsonString", j."JsonComplexType", j."JsonOwnedType"
33+ FROM "JsonEntities" AS j
34+ WHERE JSON_EXISTS(j."JsonComplexType", '$.OptionalInt')
35+ """ ) ;
2636 }
2737
38+ [ MinimumPostgresVersion ( 17 , 0 ) ]
2839 public override async Task JsonPathExists_on_owned_entity ( )
2940 {
30- // TODO: #3733
31- await AssertTranslationFailed ( base . JsonPathExists_on_owned_entity ) ;
41+ await base . JsonPathExists_on_owned_entity ( ) ;
3242
33- AssertSql ( ) ;
43+ AssertSql (
44+ """
45+ SELECT j."Id", j."JsonString", j."JsonComplexType", j."JsonOwnedType"
46+ FROM "JsonEntities" AS j
47+ WHERE JSON_EXISTS(j."JsonOwnedType", '$.OptionalInt')
48+ """ ) ;
3449 }
3550
3651 public class JsonTranslationsQueryNpgsqlFixture : JsonTranslationsQueryFixtureBase , ITestSqlLoggerFactory
0 commit comments