add type diagnostics

This commit is contained in:
Alex Fabijanic 2017-06-28 17:21:49 +02:00
parent 12f61b8ccf
commit b3704e2275
2 changed files with 7 additions and 4 deletions

View File

@ -58,7 +58,7 @@
<Filter>_Suite\Header Files</Filter>
</ClInclude>
<ClInclude Include="src\ODBCSybaseTest.h">
<Filter>ODBC</Filter>
<Filter>ODBC\Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
@ -96,7 +96,7 @@
<Filter>_Driver\Source Files</Filter>
</ClCompile>
<ClCompile Include="src\ODBCSybaseTest.cpp">
<Filter>ODBC</Filter>
<Filter>ODBC\Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>

View File

@ -469,9 +469,12 @@ private:
}
else
{
throw Poco::BadCastException(Poco::format("Type cast failed!\nColumn: %z\nTarget type:\t%s",
throw Poco::BadCastException(Poco::format("Type cast failed!\nColumn: %z\nTarget type:\t%s"
"\nTarget container type:\t%s\nSource container type:\t%s",
pos,
std::string(typeid(T).name())));
std::string(typeid(T).name()),
std::string(typeid(ExtractionVecPtr).name()),
std::string(typeid(rExtractions[pos].get()).name())));
}
}