mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::db: Default init invalid row values.
This commit is contained in:
parent
d3feb23a25
commit
8e9a25aa96
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ ircd::db::set(json::tuple<T...> &tuple,
|
|||
for(auto &cell : row)
|
||||
if(cell.valid())
|
||||
json::set(tuple, cell.col(), cell.val());
|
||||
else
|
||||
json::set(tuple, cell.col(), string_view{});
|
||||
|
||||
return tuple;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue