[CONPY-159] raises Parameter option not supported when update from 1.0.7 to 1.1.0 Created: 2021-08-22  Updated: 2022-07-07  Resolved: 2021-08-22

Status: Closed
Project: MariaDB Connector/Python
Component/s: Generic
Affects Version/s: 1.1.0a1
Fix Version/s: 1.1.0b1

Type: Bug Priority: Critical
Reporter: the name Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

windows 10 x64


Python Version: CPython 3.9.6

 Description   

The example code:

config = {
    "host": "192.168.1.7", # not the localhost
    "user": "the_user",
    "password": "the_password",
    "database": "the_database"
}
conn_pool = mariadb.ConnectionPool(
    pool_name = 'default',
    pool_size = 10,
    pool_reset_connection = True,
    ** config
)

When I use v1.0.7, it works fine. After update to v1.1.0, it crash with:

......
  File "C:\Users\skyof\repos\Delog\delog\app.py", line 98, in main
    conn_pool = mariadb.ConnectionPool(
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\connectionpool.py", line 94, in __init__
    connection= mariadb.Connection(**self._conn_args)
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\__init__.py", line 129, in connect
    connection= connectionclass(*args, **kwargs)
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\connections.py", line 67, in __init__
    self.autocommit= autocommit
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\connections.py", line 539, in autocommit
    if bool(mode) == self.autocommit:
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\connections.py", line 535, in autocommit
    return bool(self.server_status & STATUS.AUTOCOMMIT)
  File "C:\Users\skyof\repos\Delog\.venv\lib\site-packages\mariadb\connections.py", line 501, in server_status
    return self._mariadb_get_info(INFO.SERVER_STATUS, int)
mariadb.ProgrammingError: Parameter option not supported



 Comments   
Comment by Georg Richter [ 2021-08-22 ]

I was able to repeat this problem - it affects only windows platforms.

Comment by Georg Richter [ 2021-08-22 ]

Thanks for your bug report and for trying out first alpha. We will release 1.1.1-alpha version next week.

Comment by Georg Richter [ 2021-08-22 ]

FYI: 1.1.1 is already available via pypi.org - however release notes will be published on Monday

Comment by the name [ 2021-08-22 ]

Updated to 1.1.1, my app works fine.

Comment by Georg Richter [ 2021-08-22 ]

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