[CONPY-254] executemany insert final value NULL gives SystemError Created: 2023-03-28 Updated: 2023-12-08 |
|
| Status: | Needs Feedback |
| Project: | MariaDB Connector/Python |
| Component/s: | Generic |
| Affects Version/s: | 1.1.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Currie | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Python Version: | 3.10 |
| Description |
|
Cannot insert a NULL into the final position, but inserting NULL in any other position is okay. This makes no sense! Steps to reproduce the error:
|
| Comments |
| Comment by Georg Richter [ 2023-03-29 ] | ||
|
Hi, could you please also provide information about database server and Connector/C?
Are you sure that the value of mariadb._version_ is 1.1.16 and not 1.1.6 ? | ||
| Comment by Michael Currie [ 2023-03-29 ] | ||
|
Georg thanks for the quick response - yes indeed it is 1.1.6, my typo Other information is here above | ||
| Comment by Georg Richter [ 2023-03-30 ] | ||
|
Ok, I was able to repeat this problem - however it only fails on Windows. | ||
| Comment by Georg Richter [ 2023-04-05 ] | ||
|
I cannot reproduce it whenever I build v1.1.6 tagged Connector/Python version with tagged v3.1.4 Connector/C version on both builder and my own machine. We had to exchange the windows builder machine in January, the v1.1.6 final release was build on this builder, so I think that Connector/C was not automatically updated and was built with a pre-release. I will do some more investigations, the plan is to push a post-release of 1.1.6 next week if I can't find another reason. Thanks for your patience! | ||
| Comment by Kelvin Cheung [ 2023-12-03 ] | ||
|
Has there been an update to this? I have a similar issue that started appearing in the last few months. mariadb.mariadbapi_version = 3.3.8 It was working fine previously. I checked that executing individual rows also works. Issue appears to be inserting NULLs (Python Nones) into Int columns that accept NULL values. I also tested creating a temporary table with this structure and that also worked (both execute and executemany). Very strange. | ||
| Comment by Kelvin Cheung [ 2023-12-08 ] | ||
|
I think it was something to do with the Python version. I must have upgraded to 3.11/3.12 recently. The issue seems to disappear if I downgrade back to 3.8. |