Merge branch '2.2' into develop

This commit is contained in:
Markus Mäkelä
2018-06-25 09:34:55 +03:00
7 changed files with 66 additions and 129 deletions

View File

@ -77,6 +77,11 @@ std::string SessionCommand::to_string()
/** TODO: Create C++ versions of modutil functions */
GWBUF *buf = m_buffer.release();
if (!GWBUF_IS_CONTIGUOUS(buf))
{
buf = gwbuf_make_contiguous(buf);
}
if (modutil_extract_SQL(buf, &sql, &sql_len))
{
str.append(sql, sql_len);