mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-09 11:17:31 +01:00
fix param copy
This commit is contained in:
parent
2113827719
commit
f87081a1b1
@ -245,7 +245,7 @@ void Binder::bind(std::size_t pos, const UTF16String& val, Direction dir, const
|
|||||||
CharT* pChar = (CharT*)std::calloc(size, sizeof(CharT));
|
CharT* pChar = (CharT*)std::calloc(size, sizeof(CharT));
|
||||||
pVal = (SQLPOINTER)pChar;
|
pVal = (SQLPOINTER)pChar;
|
||||||
if (isInOutBound(dir))
|
if (isInOutBound(dir))
|
||||||
std::wcscpy(pChar,val.c_str());
|
std::copy(val.begin(), val.end(), pChar);
|
||||||
_outParams.insert(ParamMap::value_type(pVal, size));
|
_outParams.insert(ParamMap::value_type(pVal, size));
|
||||||
_utf16Strings.insert(UTF16StringMap::value_type(pChar, const_cast<UTF16String*>(&val)));
|
_utf16Strings.insert(UTF16StringMap::value_type(pChar, const_cast<UTF16String*>(&val)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user