[MDEV-29782] Cannot insert value into a column of type YEAR in a CONNECTed MariaDB table Created: 2022-10-12 Updated: 2023-04-18 Resolved: 2023-04-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.3, 10.4, 10.9.3, 10.5, 10.6, 10.7, 10.8, 10.9 |
| Fix Version/s: | 10.4.29 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Gisbert W. Selke | Assignee: | Andrew Hutchings |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 10. Problem occurs both with local installation and with server installation (Windows Server). |
||
| Description |
|
I have a CONNECT to a MariaDB server table which contains a column of type YEAR. Minimal example using a locally installed MariaDB 10.9.3 server: (Problem came up originally when CONNECTing to a MySQL 5.7.x server – same effect.)
It seems that the CONNECT engine over-eagerly converts the value-to-insert from its simple form (2022) into datetime form before sending it over the CONNECTion. Thus, the problem seems to be the over-eager data type conversion performed by the CONNECT engine. |
| Comments |
| Comment by Alice Sherepa [ 2022-10-13 ] | ||||||
|
Thank you for the report!
| ||||||
| Comment by Andrew Hutchings [ 2023-02-14 ] | ||||||
|
Rebased off 10.4 as 10.3 is too close to EoL. |