Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-133

Internal parser ignores special comment syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.0.5
    • Component/s: DBAPI 2.0
    • 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
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            georg Georg Richter
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: