zurückzugeben
Code: Select all
function get_counter(owner, other)
counter = box.execute([[SELECT "count" FROM "counter" WHERE "from"=:owner AND "to"=:other;]],{{[':owner']=owner},{[':other']=other}})
if counter.rows[1] ~= nil then
return {counter.rows[1][1]}
end
return nil
end
Code: Select all
var res = await _box.Call_1_6 ("get_counter",TarantoolTuple.Create(from, to));
< /code>
Und jedes Mal, wenn ich Fehler empfange: < /p>
"message": "Got 1 (0x01), while expecting one of these: Array16, Array32, FixArray, Null"