function returning_simple_array()
return { nil, true, "abc", 123, 1.23 }
end
We will get an error:
org.springframework.dao.InvalidDataAccessResourceUsageException: Failed to convert MessagePack value of type NIL to tuple; nested exception is io.tarantool.driver.exceptions.TarantoolTupleConversionException: Failed to convert MessagePack value of type NIL to tuple
But if you wrap it in an additional table, then everything is ok.
function returning_simple_array()
return {{ nil, true, "abc", 123, 1.23 }}
end
Right now we don't get to return a single array without additional wrapping.
We will get an error:
But if you wrap it in an additional table, then everything is ok.