fix param copy

This commit is contained in:
Alex Fabijanic 2017-10-06 21:42:41 -05:00
parent 2113827719
commit f87081a1b1

View File

@ -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));
pVal = (SQLPOINTER)pChar;
if (isInOutBound(dir))
std::wcscpy(pChar,val.c_str());
std::copy(val.begin(), val.end(), pChar);
_outParams.insert(ParamMap::value_type(pVal, size));
_utf16Strings.insert(UTF16StringMap::value_type(pChar, const_cast<UTF16String*>(&val)));
}