[CONPY-133] Internal parser ignores special comment syntax Created: 2020-11-24  Updated: 2020-11-24  Resolved: 2020-11-24

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0
Affects Version/s: 1.0.4
Fix Version/s: 1.0.5

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 1
Labels: None


 Description   

The internal parser ignores MariaDB's comment syntax, special meanings like /*! not a comment */ are ignored and end up in an error:

>>> import mariadb
>>> conn= mariadb.connect()
>>> cursor=conn.cursor()
>>> cursor.execute("SELECT /*! ? */", (1,))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
mariadb.DatabaseError.DataError: Invalid number of parameters



 Comments   
Comment by Georg Richter [ 2020-11-24 ]

Fixed. rev. a1c709b0e80d9d6590029a114506614dd5a4516a

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