Commit 16fec32e authored by Sergey Petrunya's avatar Sergey Petrunya

Cassandra SE: small optimization: StringCopyConverter::mariadb_to_cassandra...

Cassandra SE: small optimization: StringCopyConverter::mariadb_to_cassandra doesn't need to make NULL-terminated strings.
parent e4bffe61
......@@ -595,7 +595,7 @@ class StringCopyConverter : public ColumnDataConverter
bool mariadb_to_cassandra(char **cass_data, int *cass_data_len)
{
String *pstr= field->val_str(&buf);
*cass_data= (char*)pstr->c_ptr();
*cass_data= (char*)pstr->ptr();
*cass_data_len= pstr->length();
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment