[MDEV-32130] Port MySQL test on protocol bug #106352 to MariaDB Created: 2023-09-08  Updated: 2023-09-08  Resolved: 2023-09-08

Status: Closed
Project: MariaDB Server
Component/s: Data types
Fix Version/s: 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3, 11.2.2

Type: Task Priority: Major
Reporter: Daniel Black Assignee: Daniel Black
Resolution: Fixed Votes: 0
Labels: None


 Description   

A community reported protocol regression error against MySQL - https://github.com/launchbadge/sqlx/issues/1664, resulted in upstream bug - https://bugs.mysql.com/bug.php?id=106352. A user comment pointed out that MariaDB-10.7 has this error.

Essentially SELECT ? wasn't returning the datatype in binary protocol when the arg was cast as a DATETIME or DATE or TIME type.

MySQL fix Bug#33813951, Change-Id: I2448e3f2f36925fe70d882ae5681a6234f0d5a98.

Cherry-picking the test commit.



 Comments   
Comment by Daniel Black [ 2023-09-08 ]

Contrary to the users statement, we didn't have a problem.

But we ported the test case to make sure we never do.

Thanks bar for the analysis, finding and porting the MySQL test case.

Generated at Thu Feb 08 10:29:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.