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

Multiple statements in a single execute call

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 1.0.6
    • N/A
    • DBAPI 2.0
    • None

    Description

      How can I execute a sql script with mariadb connector? (create a trigger for example , with delimiter and ; inside trigger body)

      https://mariadb-corporation.github.io/mariadb-connector-python/connection.html
      does not mention anything about multiple statements.

      https://mariadb-corporation.github.io/mariadb-connector-python/cursor.html describes nextset() method (So, I assume multiple statements is possible).

      A simple
      crsr.execute('select 1; select 2') returns a ProgrammingError.

      crsr.execute('delimiter $$') also returns error.

      Attachments

        Activity

          People

            georg Georg Richter
            lucianobarcaro Luciano Barcaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.