From cd65fe27a8691da552eeaed8001179c7f8254981 Mon Sep 17 00:00:00 2001 From: Georgy Moiseev Date: Thu, 28 Dec 2023 19:51:52 +0300 Subject: [PATCH] dev_checks: support tuple as cdata for Tarantool 3.0 Since dev_checks are disabled in production, it affects only tests. --- crud/count.lua | 2 +- crud/readview.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crud/count.lua b/crud/count.lua index b79581cd..470bcce5 100644 --- a/crud/count.lua +++ b/crud/count.lua @@ -24,7 +24,7 @@ local count = {} local function count_on_storage(space_name, index_id, conditions, opts) dev_checks('string', 'number', '?table', { - scan_value = 'table', + scan_value = 'table|cdata', tarantool_iter = 'number', yield_every = '?number', scan_condition_num = '?number', diff --git a/crud/readview.lua b/crud/readview.lua index cb7c8c7f..d5ff6dd5 100644 --- a/crud/readview.lua +++ b/crud/readview.lua @@ -94,8 +94,8 @@ end local function select_readview_on_storage(space_name, index_id, conditions, opts) dev_checks('string', 'number', '?table', { - scan_value = 'table', - after_tuple = '?table', + scan_value = 'table|cdata', + after_tuple = '?table|cdata', tarantool_iter = 'number', limit = 'number', scan_condition_num = '?number',