mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 18:45:10 +01: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:
parent
861679e616
commit
b76b5673a6
@ -323,12 +323,13 @@ void DataTest::testCLOB()
|
||||
|
||||
assert (blobChrStr != blobNumStr);
|
||||
Var vLOB = blobNumStr;
|
||||
blobChrStr = (CLOB) vLOB;
|
||||
std::string sss = vLOB.convert<std::string>();
|
||||
blobChrStr = CLOB(sss);
|
||||
assert (blobChrStr == blobNumStr);
|
||||
|
||||
std::string xyz = "xyz";
|
||||
std::string xyz = "xyz";
|
||||
vLOB = xyz;
|
||||
blobChrStr = (CLOB) vLOB;
|
||||
blobChrStr = sss = vLOB.convert<std::string>();
|
||||
assert (0 == std::strncmp(xyz.c_str(), blobChrStr.rawContent(), blobChrStr.size()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user