@@ -36,6 +36,40 @@ var setLiteralTests = TableTest{
36
36
),
37
37
Compare : CompareExactUnordered ,
38
38
},
39
+ {
40
+ // SetContainsAllSelectList
41
+ name : "set-contains-all-select-list" ,
42
+ SQLs : sqls (
43
+ "select _id, setcontainsall(event, ['POST']) from selectwithsetliterals" ,
44
+ ),
45
+ ExpHdrs : hdrs (
46
+ hdr ("_id" , fldTypeID ),
47
+ hdr ("" , fldTypeBool ),
48
+ ),
49
+ ExpRows : rows (
50
+ row (int64 (1 ), true ),
51
+ row (int64 (2 ), false ),
52
+ row (int64 (3 ), true ),
53
+ ),
54
+ Compare : CompareExactUnordered ,
55
+ },
56
+ {
57
+ // SetContainsAnySelectList
58
+ name : "set-contains-any-select-list" ,
59
+ SQLs : sqls (
60
+ "select _id, setcontainsany(event, ['POST', 'DELETE']) from selectwithsetliterals" ,
61
+ ),
62
+ ExpHdrs : hdrs (
63
+ hdr ("_id" , fldTypeID ),
64
+ hdr ("" , fldTypeBool ),
65
+ ),
66
+ ExpRows : rows (
67
+ row (int64 (1 ), true ),
68
+ row (int64 (2 ), false ),
69
+ row (int64 (3 ), true ),
70
+ ),
71
+ Compare : CompareExactUnordered ,
72
+ },
39
73
{
40
74
// SetContainsSelectListInt
41
75
name : "set-contains-select-list-int" ,
@@ -53,6 +87,40 @@ var setLiteralTests = TableTest{
53
87
),
54
88
Compare : CompareExactUnordered ,
55
89
},
90
+ {
91
+ // SetContainsSelectAllListInt
92
+ name : "set-contains-select-all-list-int" ,
93
+ SQLs : sqls (
94
+ "select _id, setcontainsall(ievent, [101]) from selectwithsetliterals" ,
95
+ ),
96
+ ExpHdrs : hdrs (
97
+ hdr ("_id" , fldTypeID ),
98
+ hdr ("" , fldTypeBool ),
99
+ ),
100
+ ExpRows : rows (
101
+ row (int64 (1 ), nil ),
102
+ row (int64 (2 ), nil ),
103
+ row (int64 (3 ), true ),
104
+ ),
105
+ Compare : CompareExactUnordered ,
106
+ },
107
+ {
108
+ // SetContainsSelectAnyListInt
109
+ name : "set-contains-select-any-list-int" ,
110
+ SQLs : sqls (
111
+ "select _id, setcontainsany(ievent, [100, 101, 102]) from selectwithsetliterals" ,
112
+ ),
113
+ ExpHdrs : hdrs (
114
+ hdr ("_id" , fldTypeID ),
115
+ hdr ("" , fldTypeBool ),
116
+ ),
117
+ ExpRows : rows (
118
+ row (int64 (1 ), nil ),
119
+ row (int64 (2 ), nil ),
120
+ row (int64 (3 ), true ),
121
+ ),
122
+ Compare : CompareExactUnordered ,
123
+ },
56
124
{
57
125
// SetContainsWithLiteral
58
126
// SetContainsWithLiteralInt
0 commit comments