We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e02ebaf commit 2513c49Copy full SHA for 2513c49
1 file changed
tests/update/test_update_arrays.nim
@@ -16,7 +16,7 @@ import
16
17
18
19
-suite "arrays":
+suite "update - arrays":
20
21
test "[manual] update arrays - ARRAY_REMOVE":
22
@@ -38,6 +38,24 @@ suite "arrays":
38
check querycompare(q, sql("UPDATE table SET project_ids = ARRAY_REMOVE(project_ids, ?) WHERE id = ?"))
39
40
41
+
42
43
+suite "update - arrays where cond ANY":
44
45
+ test "array":
46
47
+ let q = sqlUpdate(
48
+ "table",
49
+ ["name"],
50
+ ["some_ids = ANY(?::INT[])"],
51
+ )
52
+ check querycompare(q, sql("UPDATE table SET name = ? WHERE some_ids = ANY(?::INT[])"))
53
54
55
56
57
+suite "update - arrays dedicated":
58
59
test "[dedicated] update array - ARRAY_REMOVE":
60
61
let q = sqlUpdateArrayRemove(
0 commit comments