summaryrefslogtreecommitdiff
path: root/libodbcpp/param.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/param.cpp')
-rw-r--r--libodbcpp/param.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libodbcpp/param.cpp b/libodbcpp/param.cpp
index a86bce0..c4d2223 100644
--- a/libodbcpp/param.cpp
+++ b/libodbcpp/param.cpp
@@ -118,7 +118,7 @@ ODBC::Command::bindParamS(unsigned int i, const char * val, size_t len)
{
if (i < params.size()) {
_Param<Glib::ustring>* p = Param::makeParam<Glib::ustring>(params[i]);
- p->value.assign(val, len);
+ p->value.assign(val);
p->bindLen = len;
p->bind(this->hStmt, i + 1, SQL_C_CHAR, SQL_CHAR, 0, 0, p->value.data(), p->value.bytes());
return;