fixed postgres tests
This commit is contained in:
@@ -222,6 +222,9 @@ result<DestType, conversion_error> to(const SourceType &/*source*/, std::enable_
|
||||
|
||||
template < typename DestType, typename SourceType >
|
||||
result<DestType, conversion_error> to(const SourceType &source, std::enable_if_t<std::is_same_v<SourceType, const char*> &&std::is_same_v<DestType, std::string>>* = nullptr) {
|
||||
if (source == nullptr) {
|
||||
return ok(std::string{});
|
||||
}
|
||||
return ok(std::string(source));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user