mirror of
https://github.com/pocoproject/poco.git
synced 2025-07-04 17:40:01 +02:00
fixed GH #1436: ODBC Bug: Unicode text(NVARCHAT) read from DB is truncated to half.
This commit is contained in:
parent
13b062c786
commit
22e746d1ce
@ -633,7 +633,7 @@ private:
|
|||||||
(SQLUSMALLINT) pos + 1,
|
(SQLUSMALLINT) pos + 1,
|
||||||
valueType,
|
valueType,
|
||||||
(SQLPOINTER) pCache,
|
(SQLPOINTER) pCache,
|
||||||
(SQLINTEGER) size,
|
(SQLINTEGER) size*sizeof(T),
|
||||||
&_lengths[pos])))
|
&_lengths[pos])))
|
||||||
{
|
{
|
||||||
throw StatementException(_rStmt, "SQLBindCol()");
|
throw StatementException(_rStmt, "SQLBindCol()");
|
||||||
@ -1040,7 +1040,7 @@ inline void Preparator::prepare(std::size_t pos, const std::list<std::string>& v
|
|||||||
|
|
||||||
inline void Preparator::prepare(std::size_t pos, const UTF16String&)
|
inline void Preparator::prepare(std::size_t pos, const UTF16String&)
|
||||||
{
|
{
|
||||||
prepareVariableLen<UTF16String::value_type>(pos, SQL_C_WCHAR, maxDataSize(pos), DT_CHAR);
|
prepareVariableLen<UTF16String::value_type>(pos, SQL_C_WCHAR, maxDataSize(pos), DT_WCHAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user