We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b600d52 commit 03b34b5Copy full SHA for 03b34b5
Tests/StructuredQueriesTests/JSONFunctionsTests.swift
@@ -318,6 +318,27 @@ extension SnapshotTests {
318
"""
319
}
320
321
+
322
+ @Test func jsonPatch() {
323
+ assertQuery(Values(#bind(["a": 1]).jsonPatch(#bind(["b": 2])))) {
324
+ """
325
+ SELECT json_patch('{
326
+ "a" : 1
327
+ }', '{
328
+ "b" : 2
329
+ }')
330
331
+ } results: {
332
333
+ ┌───────────┐
334
+ │ [ │
335
+ │ "a": 1, │
336
+ │ "b": 2 │
337
+ │ ] │
338
+ └───────────┘
339
340
+ }
341
342
343
344
0 commit comments