diff --git a/src/libsql/Statement.cpp b/src/libsql/Statement.cpp index 56dcaec..d7bc676 100644 --- a/src/libsql/Statement.cpp +++ b/src/libsql/Statement.cpp @@ -135,6 +135,15 @@ int CStmt::Execute() if (bind->buffer_type == MYSQL_TYPE_STRING) *(m_puiParamLen + i) = strlen((const char *) bind->buffer); + else if (bind->buffer_type == MYSQL_TYPE_VAR_STRING) + *(m_puiParamLen + i) = strlen((const char *) bind->buffer); + else if (bind->buffer_type == MYSQL_TYPE_BLOB + || bind->buffer_type == MYSQL_TYPE_LONG_BLOB + || bind->buffer_type == MYSQL_TYPE_MEDIUM_BLOB + || bind->buffer_type == MYSQL_TYPE_TINY_BLOB) + { + *(m_puiParamLen + i) = bind->buffer_length; + } } if (!m_vec_result.empty())