mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
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:
parent
97b26d3b93
commit
3683fc3453
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue