Mercurial > hg > orthanc-databases
diff Framework/MySQL/MySQLStatement.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 | b97a537f4613 |
children | 16aac0287485 |
line wrap: on
line diff
--- a/Framework/MySQL/MySQLStatement.cpp Tue Apr 13 17:53:53 2021 +0200 +++ b/Framework/MySQL/MySQLStatement.cpp Tue Apr 13 18:43:21 2021 +0200 @@ -22,7 +22,7 @@ #include "MySQLStatement.h" #include "../Common/BinaryStringValue.h" -#include "../Common/FileValue.h" +#include "../Common/InputFileValue.h" #include "../Common/Integer64Value.h" #include "../Common/NullValue.h" #include "../Common/Utf8StringValue.h" @@ -500,9 +500,9 @@ break; } - case ValueType_File: + case ValueType_InputFile: { - const std::string& content = dynamic_cast<const FileValue&>(value).GetContent(); + const std::string& content = dynamic_cast<const InputFileValue&>(value).GetContent(); inputs[i].buffer = const_cast<char*>(content.c_str()); inputs[i].buffer_length = content.size(); inputs[i].buffer_type = MYSQL_TYPE_BLOB;