mirror of
https://github.com/matrix-construct/construct
synced 2024-10-02 21:59:02 +02: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)
|
for(auto &cell : row)
|
||||||
if(cell.valid())
|
if(cell.valid())
|
||||||
json::set(tuple, cell.col(), cell.val());
|
json::set(tuple, cell.col(), cell.val());
|
||||||
|
else
|
||||||
|
json::set(tuple, cell.col(), string_view{});
|
||||||
|
|
||||||
return tuple;
|
return tuple;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue