diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-05-17 08:42:53 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-05-17 08:42:53 +0300 |
commit | 4c7608aeb187383f2629e96e085b5b50fc81337f (patch) | |
tree | fc8dce68b02a63ca204203034dae81a7162a4b9f /tests | |
parent | c2352c45fbd670f50b73415eeeb676aa67fb4a29 (diff) | |
parent | a4e7800701d0764fe4cbb85b81d7c7cb54677334 (diff) | |
download | mariadb-git-4c7608aeb187383f2629e96e085b5b50fc81337f.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'tests')
-rw-r--r-- | tests/mysql_client_fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mysql_client_fw.c b/tests/mysql_client_fw.c index 73dc443f782..2a529c12c63 100644 --- a/tests/mysql_client_fw.c +++ b/tests/mysql_client_fw.c @@ -768,7 +768,7 @@ static void do_verify_prepare_field(MYSQL_RES *result, { MYSQL_FIELD *field; CHARSET_INFO *cs; - ulonglong expected_field_length; + ulonglong expected_field_length= length; if (!(field= mysql_fetch_field_direct(result, no))) { @@ -777,7 +777,7 @@ static void do_verify_prepare_field(MYSQL_RES *result, } cs= get_charset(field->charsetnr, 0); DIE_UNLESS(cs); - if ((expected_field_length= length * cs->mbmaxlen) > UINT_MAX32) + if ((expected_field_length*= cs->mbmaxlen) > UINT_MAX32) expected_field_length= UINT_MAX32; if (!opt_silent) { |