diff options
author | Varun Gupta <varun.gupta@mariadb.com> | 2019-06-20 12:03:32 +0530 |
---|---|---|
committer | Varun Gupta <varun.gupta@mariadb.com> | 2019-06-20 12:03:32 +0530 |
commit | 8b576616b442d061356bc5a2abd410f478e98ee7 (patch) | |
tree | 29cf92e96213c4f3a7f00294e0c8839b6f277ae4 /mysql-test/main/opt_trace.test | |
parent | cfbd714868d6af284f1acfff361c098cbc525fff (diff) | |
download | mariadb-git-8b576616b442d061356bc5a2abd410f478e98ee7.tar.gz |
MDEV-19776: Assertion `to_len >= 8' failed in convert_to_printable with optimizer trace enabled
Introduced the convert_to_printable_required_length to return the correct length(taking into
consideration of dots in the case of error messages).
Diffstat (limited to 'mysql-test/main/opt_trace.test')
-rw-r--r-- | mysql-test/main/opt_trace.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/main/opt_trace.test b/mysql-test/main/opt_trace.test index 916b9313ca6..c1ed050062b 100644 --- a/mysql-test/main/opt_trace.test +++ b/mysql-test/main/opt_trace.test @@ -498,4 +498,14 @@ explain format=json select * from t1 force index(start_date) where start_date >= select JSON_DETAILED(JSON_EXTRACT(trace, '$**.analyzing_range_alternatives')) from INFORMATION_SCHEMA.OPTIMIZER_TRACE; drop table t1, t0, one_k; +--echo # +--echo # MDEV-19776: Assertion `to_len >= 8' failed in convert_to_printable with optimizer trace enabled +--echo # + +CREATE TABLE t1 (f VARBINARY(16) NOT NULL, KEY(f)); +INSERT INTO t1 VALUES ('a'),('b'); +SET optimizer_trace = 'enabled=on'; +DELETE FROM t1 WHERE f = 'x'; +DROP TABLE t1; + set optimizer_trace='enabled=off'; |