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
checkquerycompare(test, sql("SELECT id, name FROM tasks WHERE some_ids = ANY(?::INT[])"))
28
+
29
+
30
+
test"setting type int multiple times":
31
+
32
+
let test =sqlSelect(
33
+
table ="tasks",
34
+
select =@["id", "name"],
35
+
where =@[
36
+
"some_ids = ANY(?::INT[])",
37
+
"hash_ids = ANY(?::INT[])",
38
+
"version =",
39
+
"revisions = ANY(?::INT[])"
40
+
],
41
+
)
42
+
checkquerycompare(test, sql("SELECT id, name FROM tasks WHERE some_ids = ANY(?::INT[]) AND hash_ids = ANY(?::INT[]) AND version = ? AND revisions = ANY(?::INT[])"))
43
+
44
+
45
+
test"setting type int + text multiple times":
46
+
47
+
let test =sqlSelect(
48
+
table ="tasks",
49
+
select =@["id", "name"],
50
+
where =@[
51
+
"some_ids = ANY(?::TEXT[])",
52
+
"hash_ids = ANY(?::INT[])",
53
+
"version =",
54
+
"revisions = ANY(?::TEXT[])"
55
+
],
56
+
)
57
+
checkquerycompare(test, sql("SELECT id, name FROM tasks WHERE some_ids = ANY(?::TEXT[]) AND hash_ids = ANY(?::INT[]) AND version = ? AND revisions = ANY(?::TEXT[])"))
0 commit comments