Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-691

Get SQL Statement from statement handle

    XMLWordPrintable

Details

    Description

      Especially for debugging purposes it would be much easier if we could obtain the SQL statement passed to a previous mysql_stmt_prepare call.

      Example:

      MARIADB_CONST_STRING stmt_str;
       
      rc= mysql_stmt_prepare(stmt, "SELECT ?,?", -1);
      check_stmt_rc(rc, stmt);
       
      rc= mysql_stmt_attr_get(stmt, STMT_ATTR_SQL_STATEMENT, &stmt_str);
      check_stmt_rc(rc, stmt);
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:

              Git Integration

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