changeset 701:c8857177c1d1

fix arg binary type for custom-data
author Alain Mazy <am@orthanc.team>
date Tue, 17 Jun 2025 11:31:10 +0200
parents 0010cb1c0145
children fb13453e8476
files Framework/Plugins/IndexBackend.cpp PostgreSQL/NEWS
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.cpp	Mon Jun 16 17:39:29 2025 +0200
+++ b/Framework/Plugins/IndexBackend.cpp	Tue Jun 17 11:31:10 2025 +0200
@@ -384,7 +384,7 @@
     statement.SetParameterType("hash", ValueType_Utf8String);
     statement.SetParameterType("hash-compressed", ValueType_Utf8String);
     statement.SetParameterType("revision", ValueType_Integer64);
-    statement.SetParameterType("custom-data", ValueType_Utf8String);
+    statement.SetParameterType("custom-data", ValueType_BinaryString);
 
     args.SetIntegerValue("id", id);
     args.SetIntegerValue("type", contentType);
@@ -4674,7 +4674,7 @@
         "UPDATE AttachedFiles SET customData = ${customData} WHERE uuid = ${uuid}");
 
       statement.SetParameterType("uuid", ValueType_Utf8String);
-      statement.SetParameterType("customData", ValueType_Utf8String);
+      statement.SetParameterType("customData", ValueType_BinaryString);
 
       Dictionary args;
       args.SetUtf8Value("uuid", attachmentUuid);
--- a/PostgreSQL/NEWS	Mon Jun 16 17:39:29 2025 +0200
+++ b/PostgreSQL/NEWS	Tue Jun 17 11:31:10 2025 +0200
@@ -1,3 +1,9 @@
+Pending changes in the mainline
+===============================
+
+
+
+
 Release 8.0 (2025-06-16)
 ========================