Skip to content
Snippets Groups Projects
Commit 71051d23 authored by Vladislav Shpilevoy's avatar Vladislav Shpilevoy Committed by Kirill Yukhin
Browse files

sql: do not bless tuples

Tuple blessing is needed generaly for Lua. Bless references a
tuple before returning to be able to unref it, when a next result
is returned, and the previous one is already gone into Lua, or
another public API.

For internal usage it is not needed to bless a tuple:
- to just get a tuple field you can skip even simple ref, because
  tuple_field_...() does not yield, and the tuple can not be
  deleted during it;
- for internal SQL iterators you simply reference a new tuple,
  and unref a previous for youself, with no bless.
parent d61e4b2a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment