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

Internal parser ignores special comment syntax

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.0.4
    • 1.0.5
    • DBAPI 2.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.