Bug #114181 | MySQL Crashes on query with row_number over order by concat with cast to char | ||
---|---|---|---|
Submitted: | 1 Mar 2024 9:43 | Modified: | 1 Mar 2024 11:45 |
Reporter: | Giveme Jdk | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 8.0.31 | OS: | Windows (Server 2022 Standard (21H2)) |
Assigned to: | CPU Architecture: | x86 (Xeon Gold 6242 CPU * 2) | |
Tags: | cast, char, character, collation concat, concat, crash, order by, OVER, row_number, SET |
[1 Mar 2024 9:43]
Giveme Jdk
[1 Mar 2024 9:47]
Giveme Jdk
updated tags
[1 Mar 2024 11:45]
MySQL Verification Team
Hi Mr. Jdk, Thank you so much for your bug report. However, we can not repeat the crash with bug-fix release 8.0.36. We tried with your test case as in the text and with your table dump. We ran both queries, the one that does not work for your and the one that does work and we got 100 % the same results: will_not_work CAST(object_owner AS CHAR CHARACTER SET UTF8MB4) CONCAT(user_login, '-', CAST(object_owner AS CHAR)) CONCAT(user_login, '-', object_owner) 1 1415 tm31099-1415 tm31099-1415 will_work CAST(object_owner AS CHAR CHARACTER SET UTF8MB4) CONCAT(user_login, '-', CAST(object_owner AS CHAR)) CONCAT(user_login, '-', object_owner) 1 1415 tm31099-1415 tm31099-1415 Hence, all you need to do is upgrade to 8.0.36. Can't repeat.