mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
test compile fix: DataTest.cpp was broken after last LOB class refactoring, erro was:
call of overloaded 'LOB(Poco::Dynamic::Var&)' is ambiguous, candidates are:
Poco::Data::LOB<T>::LOB(const Poco::Data::LOB<T>&) [with T = char, Poco::Data::LOB<T> = Poco::Data::LOB<char>]
Poco::Data::LOB<T>::LOB(const std::basic_string<_CharT>&) [with T = char]
Poco::Data::LOB<T>::LOB(const std::vector<T>&) [with T = char]
This commit is contained in:
@@ -323,12 +323,13 @@ void DataTest::testCLOB()
|
|||||||
|
|
||||||
assert (blobChrStr != blobNumStr);
|
assert (blobChrStr != blobNumStr);
|
||||||
Var vLOB = blobNumStr;
|
Var vLOB = blobNumStr;
|
||||||
blobChrStr = (CLOB) vLOB;
|
std::string sss = vLOB.convert<std::string>();
|
||||||
|
blobChrStr = CLOB(sss);
|
||||||
assert (blobChrStr == blobNumStr);
|
assert (blobChrStr == blobNumStr);
|
||||||
|
|
||||||
std::string xyz = "xyz";
|
std::string xyz = "xyz";
|
||||||
vLOB = xyz;
|
vLOB = xyz;
|
||||||
blobChrStr = (CLOB) vLOB;
|
blobChrStr = sss = vLOB.convert<std::string>();
|
||||||
assert (0 == std::strncmp(xyz.c_str(), blobChrStr.rawContent(), blobChrStr.size()));
|
assert (0 == std::strncmp(xyz.c_str(), blobChrStr.rawContent(), blobChrStr.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user