You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,7 +49,7 @@ public override async Task Update_property_inside_associate()
47
49
@p='?'
48
50
49
51
UPDATE "RootEntity" AS r
50
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{String}', to_jsonb(@p))
52
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{String}', to_jsonb(@p))
51
53
""");
52
54
}
53
55
@@ -58,7 +60,7 @@ public override async Task Update_property_inside_associate_with_special_chars()
58
60
AssertExecuteUpdateSql(
59
61
"""
60
62
UPDATE "RootEntity" AS r
61
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{String}', to_jsonb('{ Some other/JSON:like text though it [isn''t]: ממש ממש לאéèéè }'::text))
63
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{String}', to_jsonb('{ Some other/JSON:like text though it [isn''t]: ממש ממש לאéèéè }'::text))
62
64
WHERE (r."RequiredAssociate" ->> 'String') = '{ this may/look:like JSON but it [isn''t]: ממש ממש לאéèéè }'
63
65
""");
64
66
}
@@ -72,7 +74,7 @@ public override async Task Update_property_inside_nested_associate()
72
74
@p='?'
73
75
74
76
UPDATE "RootEntity" AS r
75
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{RequiredNestedAssociate,String}', to_jsonb(@p))
77
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{RequiredNestedAssociate,String}', to_jsonb(@p))
76
78
""");
77
79
}
78
80
@@ -85,7 +87,7 @@ public override async Task Update_property_on_projected_associate()
85
87
@p='?'
86
88
87
89
UPDATE "RootEntity" AS r
88
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{String}', to_jsonb(@p))
90
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{String}', to_jsonb(@p))
89
91
""");
90
92
}
91
93
@@ -129,7 +131,7 @@ public override async Task Update_nested_associate_to_parameter()
129
131
@complex_type_p='?' (DbType = Object)
130
132
131
133
UPDATE "RootEntity" AS r
132
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{RequiredNestedAssociate}', @complex_type_p)
134
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{RequiredNestedAssociate}', @complex_type_p)
133
135
""");
134
136
}
135
137
@@ -256,7 +258,7 @@ public override async Task Update_nested_collection_to_parameter()
256
258
@complex_type_p='?' (DbType = Object)
257
259
258
260
UPDATE "RootEntity" AS r
259
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{NestedCollection}', @complex_type_p)
261
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{NestedCollection}', @complex_type_p)
260
262
""");
261
263
}
262
264
@@ -278,7 +280,7 @@ public override async Task Update_nested_collection_to_another_nested_collection
278
280
AssertExecuteUpdateSql(
279
281
"""
280
282
UPDATE "RootEntity" AS r
281
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{NestedCollection}', r."OptionalAssociate" -> 'NestedCollection')
283
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{NestedCollection}', r."OptionalAssociate" -> 'NestedCollection')
282
284
WHERE (r."OptionalAssociate") IS NOT NULL
283
285
""");
284
286
}
@@ -321,7 +323,7 @@ public override async Task Update_primitive_collection_to_parameter()
321
323
@ints='?' (DbType = Object)
322
324
323
325
UPDATE "RootEntity" AS r
324
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{Ints}', @ints)
326
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{Ints}', @ints)
325
327
""");
326
328
}
327
329
@@ -345,7 +347,7 @@ public override async Task Update_inside_primitive_collection()
345
347
@p='?' (DbType = Int32)
346
348
347
349
UPDATE "RootEntity" AS r
348
-
SET "RequiredAssociate" = jsonb_set(r."RequiredAssociate", '{Ints,1}', to_jsonb(@p))
350
+
SET "RequiredAssociate" = jsonb_set_lax(r."RequiredAssociate", '{Ints,1}', to_jsonb(@p))
349
351
WHERE jsonb_array_length(r."RequiredAssociate" -> 'Ints') >= 2
350
352
""");
351
353
}
@@ -364,7 +366,7 @@ public override async Task Update_multiple_properties_inside_same_associate()
364
366
@p1='?' (DbType = Int32)
365
367
366
368
UPDATE "RootEntity" AS r
367
-
SET "RequiredAssociate" = jsonb_set(jsonb_set(r."RequiredAssociate", '{String}', to_jsonb(@p)), '{Int}', to_jsonb(@p1))
369
+
SET "RequiredAssociate" = jsonb_set_lax(jsonb_set_lax(r."RequiredAssociate", '{String}', to_jsonb(@p)), '{Int}', to_jsonb(@p1))
368
370
""");
369
371
}
370
372
@@ -378,8 +380,8 @@ public override async Task Update_multiple_properties_inside_associates_and_on_e
0 commit comments