I am new on this forum.
We try to use Poco library to manage a MS SQL Server 2008 Database and so we use Poco::Data and Poco::Data::ODBC api.
I am using Poco 1.4.2 version and we have noticed a problem when we try to insert EMPTY string:
- Code: Select all
try
{
Poco::Data::Session tSess(_ptSessPool->get());
std::string strTemp("");
tSess << "INSERT INTO TData (StrExam) "
"VALUES(?)",
Poco::Data::use(strTemp),
Poco::Data::now;
}
catch(Poco::Data::ODBC::ODBCException &tExc)
{
...
...
}
We receive this exeception message from ODBC:
==========================
ODBC Diagnostic record #1
==========================
SQLSTATE = HY10
Native Error Code =
[Microsoft][SQL Server Native Client 10.0]Invalid precision value
Do you have any ideas?
How could we resolve this issue?
Thanks a lot.
Giulio.





