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:
Marian Krivos 2011-01-15 18:27:49 +00:00
parent 861679e616
commit b76b5673a6

View File

@ -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()));
}