mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Add support for minimum field width for strings to my_vsnprintf()
This patch adds support for right aligned strings and numbers. Left alignment is left as an exercise for anyone needing it. MDEV-25612 "Assertion `to <= end' failed in process_args" fixed. (Was caused by the original version of this patch)
This commit is contained in:
16
mysql-test/main/strings.test
Normal file
16
mysql-test/main/strings.test
Normal file
@ -0,0 +1,16 @@
|
||||
--source include/not_windows.inc
|
||||
--source include/not_embedded.inc
|
||||
|
||||
#
|
||||
# Test that exposes problems in string functions like my_vsnprintf
|
||||
#
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-25612 Assertion `to <= end' failed in process_args
|
||||
--echo #
|
||||
SET SESSION default_master_connection=REPEAT('a',190),lc_messages=ru_ru;
|
||||
CHANGE MASTER TO master_host='dummy';
|
||||
START SLAVE sql_thread;
|
||||
--error ER_SLAVE_MUST_STOP
|
||||
CHANGE MASTER TO master_user='user',master_password='pwd';
|
||||
STOP SLAVE;
|
Reference in New Issue
Block a user