Minor clean-ups for the previous commit.

sql/field.cc:
  Use a separate variable. Otherwise "error" value gets lost
  after well_formed_length call.
strings/ctype-mb.c:
  Don't return an error if we reached end of line.
This commit is contained in:
unknown 2005-04-06 15:12:44 +05:00
commit 3683fc3453
2 changed files with 5 additions and 5 deletions

View file

@ -276,7 +276,7 @@ uint my_well_formed_len_mb(CHARSET_INFO *cs, const char *b, const char *e,
if ((mblen= cs->cset->mb_wc(cs, &wc, (uchar*) b, (uchar*) e)) <= 0)
{
*error= 1;
*error= b < e ? 1 : 0;
break;
}
b+= mblen;