mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Ensure that result from date_format() is binary
Removed warnings from test suite
This commit is contained in:
@ -1021,11 +1021,11 @@ uint my_charpos_8bit(CHARSET_INFO *cs __attribute__((unused)),
|
||||
}
|
||||
|
||||
uint my_wellformedlen_8bit(CHARSET_INFO *cs __attribute__((unused)),
|
||||
const char *b,
|
||||
const char *e,
|
||||
const char *start,
|
||||
const char *end,
|
||||
uint nchars)
|
||||
{
|
||||
uint nbytes= e-b;
|
||||
uint nbytes= (uint) (end-start);
|
||||
return nbytes < nchars ? nbytes : nchars;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user