mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
ndb - fix typo
sql/ha_ndbcluster.cc: typo, no effect
This commit is contained in:
parent
d44e85e754
commit
92fdd3b784
1 changed files with 1 additions and 1 deletions
|
@ -1187,7 +1187,7 @@ static void shrink_varchar(Field* field, const byte* & ptr, char* buf)
|
|||
{
|
||||
if (field->type() == MYSQL_TYPE_VARCHAR) {
|
||||
Field_varstring* f= (Field_varstring*)field;
|
||||
if (f->length_bytes < 256) {
|
||||
if (f->length_bytes == 1) {
|
||||
uint pack_len= field->pack_length();
|
||||
DBUG_ASSERT(1 <= pack_len && pack_len <= 256);
|
||||
if (ptr[1] == 0) {
|
||||
|
|
Loading…
Reference in a new issue