libsql: support blob parameter lengths
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user