1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/mysql-test/t
Alexander Barkov 0e1c167e16 Bug#58005 utf8 + get_format causes failed assertion: !str || str != Ptr'
Problem: When GET_FORMAT() is called two times from the upper
level function (e.g. LEAST in the bug report), on the second
call "res= args[0]->val_str(...)" and str point to the same
String object.

1. Fix: changing the order from
- get val_str into tmp_value then convert to str
to
- get val_str into str then convert to tmp_value

The new order is more correct: the purpose of "str" parameter
is exactly to call val_str() for arguments.
The purpose of String class members (like tmp_value) is to do further
actions on the result.
Doing it in the other way around give unexpected surprises.

2. Using str_value instead of str to do padding, for the same reason.
2010-11-12 13:12:15 +03:00
..
2009-08-20 14:30:59 +02:00
2009-02-09 22:00:15 +01:00
2010-02-25 23:13:11 +04:00
2009-02-09 22:00:15 +01:00
2010-03-09 16:09:32 +01:00
2009-09-29 17:38:40 +02:00
2010-11-01 09:47:57 +03:00
2009-02-06 18:25:08 +01:00
2009-05-06 15:00:14 +05:30
2009-09-02 18:58:17 +02:00
2009-10-20 11:00:07 -07:00
2009-12-17 12:06:36 -08:00
2010-01-29 16:54:27 +02:00
2009-08-12 12:03:05 +02:00
2010-10-15 20:13:35 +05:00
2010-01-15 10:51:39 +02:00
2009-07-03 10:19:32 +02:00
2009-11-27 18:10:28 +02:00
2009-12-23 17:44:03 +04:00
2009-06-10 11:58:36 +03:00
2009-02-19 18:24:25 -05:00
2010-08-13 14:18:46 +03:00
2010-06-04 17:10:22 +03:00