Fix: the stream operator for values to optionals crashed
This commit is contained in:
parent
6313a5a918
commit
f40b9e4c84
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ namespace Pgsql {
|
||||||
if (v.null())
|
if (v.null())
|
||||||
s = std::optional<T>();
|
s = std::optional<T>();
|
||||||
else
|
else
|
||||||
*s << v;
|
s = v.operator T();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue