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

Maintain last query executed in cursor

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Won't Fix
    • 1.0.11
    • N/A
    • Other
    • None
    • 3.10

    Description

      cursor.statement provides the statement passed but there's no track of the values or the final mogrified query executed by the client. I couldn't find anything else in the cursor that gave any related information on the query.

      Example

      cursor.statement - "SELECT `value` FROM `tabSingles` WHERE `doctype`=%(param1)s AND `field`=%(param2)s"

      Given the query may be generated by the client anyway, it would be nifty to have something like the following which clients like psycopg2 and pymysql offer.

      cursor.query - "SELECT `value` FROM `tabSingles` WHERE `doctype`='System Settings' AND `field`='app_name'"

      Attachments

        Activity

          People

            georg Georg Richter
            gavin Gavin D'souza
            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.