Mercurial > hg > orthanc-databases
changeset 817:1994604b2aec
merge
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 01 Jun 2026 18:58:25 +0200 |
| parents | b9f2946c15df (diff) 814994b3ba16 (current diff) |
| children | f377801f5980 |
| files | |
| diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLResult.cpp Thu May 28 09:07:40 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLResult.cpp Mon Jun 01 18:58:25 2026 +0200 @@ -298,7 +298,7 @@ return new Integer64Value(GetTimestamp(column)); default: - throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented, std::string("Unknown value type: ") + boost::lexical_cast<std::string>(type)); } } }
--- a/Framework/PostgreSQL/PostgreSQLStatement.cpp Thu May 28 09:07:40 2026 +0200 +++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp Mon Jun 01 18:58:25 2026 +0200 @@ -370,7 +370,7 @@ case ValueType_Null: default: - throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented, std::string("Invalid parameter type ") + boost::lexical_cast<std::string>(formatter_.GetParameterType(i)) + " for parameter " + boost::lexical_cast<std::string>(i)); } } }
