libsql: support blob parameter lengths

This commit is contained in:
server
2026-04-13 22:41:34 +02:00
parent 7233533779
commit 30eefceabf

View File

@@ -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())