summaryrefslogtreecommitdiff
path: root/jstests/core/fts_partition_no_multikey.js
blob: 1238bc60839c81a9ce120a786ca1d8c9fe091e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

t = db.fts_partition_no_multikey;
t.drop();

t.ensureIndex({x: 1, y: "text"});

assert.commandWorked(t.insert({x: 5, y: "this is fun"}));

assert.writeError(t.insert({x: [], y: "this is fun"}));

assert.writeError(t.insert({x: [1], y: "this is fun"}));

assert.writeError(t.insert({x: [1, 2], y: "this is fun"}));