diff Framework/PostgreSQL/PostgreSQLStatement.cpp @ 244:02cd7254c949

separating class InputFileValue from FileValue
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Apr 2021 18:43:21 +0200
parents 35598014f140
children 16aac0287485
line wrap: on
line diff
--- a/Framework/PostgreSQL/PostgreSQLStatement.cpp	Tue Apr 13 17:53:53 2021 +0200
+++ b/Framework/PostgreSQL/PostgreSQLStatement.cpp	Tue Apr 13 18:43:21 2021 +0200
@@ -23,7 +23,7 @@
 #include "PostgreSQLStatement.h"
 
 #include "../Common/BinaryStringValue.h"
-#include "../Common/FileValue.h"
+#include "../Common/InputFileValue.h"
 #include "../Common/Integer64Value.h"
 #include "../Common/NullValue.h"
 #include "../Common/ResultBase.h"
@@ -336,7 +336,7 @@
           DeclareInputBinary(i);
           break;
 
-        case ValueType_File:
+        case ValueType_InputFile:
           DeclareInputLargeObject(i);
           break;
 
@@ -533,10 +533,10 @@
                      (parameters.GetValue(name)).GetContent());
           break;
 
-        case ValueType_File:
+        case ValueType_InputFile:
         {
-          const FileValue& blob =
-            dynamic_cast<const FileValue&>(parameters.GetValue(name));
+          const InputFileValue& blob =
+            dynamic_cast<const InputFileValue&>(parameters.GetValue(name));
 
           PostgreSQLLargeObject largeObject(database_, blob.GetContent());
           BindLargeObject(i, largeObject);