Skip to content

Commit 61a871a

Browse files
crud: allow tuple fields of select options to be cdata in type checks
In scope of tarantool/tarantool#8147, box tuples returned from remote procedure calls our now encoded as a new extension, `MP_TUPLE`, and, as, the results of such calls are now decoded as box tuples, i.e., cdata. For compatibility with this feature, we need to allow tuple fields of select options, which are returned from a remote procedure calls, to be cdata in option type checks. Needed for tarantool/tarantool#8147
1 parent 172f11f commit 61a871a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1313

1414
### Fixed
1515
* Compatibility with Tarantool 3.0 binary protocol change (#390).
16+
* Compatibility with Tarantool 3.0 tuple objects (#390).
1617

1718
## [1.4.0] - 16-10-23
1819

crud/select.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ end
3131

3232
local function select_on_storage(space_name, index_id, conditions, opts)
3333
dev_checks('string', 'number', '?table', {
34-
scan_value = 'table',
35-
after_tuple = '?table',
34+
scan_value = 'table|cdata',
35+
after_tuple = '?table|cdata',
3636
tarantool_iter = 'number',
3737
limit = 'number',
3838
scan_condition_num = '?number',

crud/select/executor.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ end
7676

7777
function executor.execute(space, index, filter_func, opts)
7878
dev_checks('table', 'table', 'function', {
79-
scan_value = 'table',
80-
after_tuple = '?table',
79+
scan_value = 'table|cdata',
80+
after_tuple = '?table|cdata',
8181
tarantool_iter = 'number',
8282
limit = '?number',
8383
yield_every = '?number',

0 commit comments

Comments
 (0)