[CONPY-103] Segmentation fault on decimal insert with executemany Created: 2020-08-12  Updated: 2020-10-04  Resolved: 2020-10-04

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: 1.0.0
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Marat Khalili Assignee: Georg Richter
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Python 3.7.8 (64-bit) for Windows
mariadb package 1.0.0 installed from pip
Server version 10.3.21-MariaDB on Synology DSM installed from Package Center

$ cat /var/packages/MariaDB10/etc/my.cnf
[mariadb]
character_set_client=utf8mb4
character_set_server=utf8mb4
collation_server=utf8mb4_general_ci
explicit_defaults_for_timestamp=on


Attachments: File test_executemany_decimal.py    

 Description   

The following line causes Segmentation fault on my computer:

cursor.executemany(
    'insert into whatever(value) values (?)',
    [[decimal.Decimal(1)]],
)

It's decimal again, so might be related to CONPY-91.



 Comments   
Comment by Georg Richter [ 2020-08-12 ]

Can you try to repeat it with latest sources from github?

I can't repeat both CONPY-91 and CONPY-103 - test for CONPY-91 was already added to testing/test/integration/test_cursor.py some days ago.

Comment by Marat Khalili [ 2020-08-12 ]

> Can you try to repeat it with latest sources from github?

Had building from sources in my plans, but it might take a couple of weeks due to other commitments. BTW I could not find explicit build instructions (see CONPY-96).

Comment by Marat Khalili [ 2020-08-30 ]

Sorry, I won't be able to help. I tried to compile it under Unbutu 16.04 but wasn't able to install the compiled version properly. Guess it won't be easier on Windows. I have since switched my project to pyodbc, which seems more stable and feature-rich, so I can't spend more time on this. Good luck with your project.

Comment by Georg Richter [ 2020-10-04 ]

Closing since no feedback was provided

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