File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
doc/reference/reference_lua Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ to extract or compare the index key values.
264264
265265 tarantool> key_def:validate_key({1000, 'abc', 'xyz'})
266266 ---
267- - error: Invalid key part count (expected [0..2], got 3)
267+ - error: ' Invalid key part count: (expected [0..2], got 3)
268268 ...
269269
270270 .. _key_validate_full_key :
@@ -284,6 +284,7 @@ to extract or compare the index key values.
284284
285285 -- Create a rule: key = {1 ('unsigned'), 2 (string)}
286286 -- Validate key {100, "Testuser"}. Returns nothing
287+ -- Validate key ({100}). ER_EXACT_MATCH is raised
287288
288289 tarantool> key_def = require('key_def').new({{fieldno = 1, type = 'unsigned'},
289290 > {fieldno = 2, type = 'string'}})
@@ -294,6 +295,11 @@ to extract or compare the index key values.
294295 ---
295296 ...
296297
298+ tarantool> key_def:validate_full_key({100})
299+ ---
300+ - error: 'Invalid key part count in an exact match: (expected 2, got 1)
301+ ...
302+
297303 .. _key_validate_tuple :
298304
299305 .. method :: validate_tuple(tuple)
You can’t perform that action at this time.
0 commit comments