Skip to content

Commit

Permalink
Fixing compile failure on kvm full-text
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun Gupta committed Dec 2, 2020
1 parent e30a05f commit b6ce493
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions sql/sql_type.cc
Expand Up @@ -5999,11 +5999,18 @@ LEX_CSTRING Charset::collation_specific_name() const
for character sets and collations, so a collation
name not necessarily starts with the character set name.
*/
LEX_CSTRING retval;
size_t csname_length= strlen(m_charset->csname);
if (strncmp(m_charset->name, m_charset->csname, csname_length))
return {NULL, 0};
{
retval.str= NULL;
retval.length= 0;
return retval;
}
const char *ptr= m_charset->name + csname_length;
return {ptr, strlen(ptr) };
retval.str= ptr;
retval.length= strlen(ptr);
return retval;
}


Expand Down

0 comments on commit b6ce493

Please sign in to comment.