mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
Adding a new parameter for well_formed_length to
return error. We'll use it for better warnign reporting.
This commit is contained in:
parent
81125bc8ce
commit
5687fe36bf
12 changed files with 57 additions and 27 deletions
|
|
@ -1267,11 +1267,11 @@ uint my_charpos_ucs2(CHARSET_INFO *cs __attribute__((unused)),
|
|||
|
||||
static
|
||||
uint my_well_formed_len_ucs2(CHARSET_INFO *cs __attribute__((unused)),
|
||||
const char *b,
|
||||
const char *e,
|
||||
uint nchars)
|
||||
const char *b, const char *e,
|
||||
uint nchars, int *error)
|
||||
{
|
||||
uint nbytes= (e-b) & ~ (uint)1;
|
||||
*error= 0;
|
||||
nchars*= 2;
|
||||
return min(nbytes, nchars);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue