diff options
author | Magne Mahre <magne.mahre@oracle.com> | 2011-10-06 14:13:23 +0200 |
---|---|---|
committer | Magne Mahre <magne.mahre@oracle.com> | 2011-10-06 14:13:23 +0200 |
commit | 681476255147dacac7e3674b6cd2ae770fee2208 (patch) | |
tree | 224301bb57cfa3e17664792dda22e6b988d439db /mysql-test/include/mtr_check.sql | |
parent | 52c5c4ad84eb9256a19996327329f854bca8c749 (diff) | |
download | mariadb-git-681476255147dacac7e3674b6cd2ae770fee2208.tar.gz |
Bug#12912112 MYSQL_CLIENT_TEST FAILS ON TEST_TRUNCATION
Sun Studio 12 has an error when calculating the compile-time
length of a constant character string. The error is only
present when building an optimized 32-bits version, using
the -xbuiltin=(%all) compiler flag.
During compilation, the compiler recognizes the use of
the strlen() function used on a constant string. It
optimizes the strlen and replaces it with the actual
length of the string. This optimization seems to
calculate the length wrongly in this particular case.
Replacing the "const char *" with a "const char []"
solves the problem.
Diffstat (limited to 'mysql-test/include/mtr_check.sql')
0 files changed, 0 insertions, 0 deletions