Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-800

implement Statement setEscapeProcessing to avoid escape

Details

    Description

      Escaping can be a real source of slowdown for very large query.

      JDBC permit a solution with statement.setEscapeProcessing, to indicate to avoid escaping (to be called prior to execution).

      This task is to implement this method.

      example of use :

      try (Statement stmt = connection.createStatement()) {
        statement.setEscapeProcessing(false);
        statement.execute(myVeryLargeQuery);
      }
      

      Attachments

        Issue Links

          Activity

            diego dupin Diego Dupin created issue -
            diego dupin Diego Dupin made changes -
            Field Original Value New Value
            Description Implements [statement.setEscapeProcessing|https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Statement.html#setEscapeProcessing(boolean)], so in order to avoid escaping, statement.setEscapeProcessing(false) might be called. Escaping can be a real source of slowdown for very large query.

            JDBC permit a solution with [statement.setEscapeProcessing|https://docs.oracle.com/en/java/javase/11/docs/api/java.sql/java/sql/Statement.html#setEscapeProcessing(boolean)], to indicate to avoid escaping (to be called prior to execution).

            This task is to implement this method.

            example of use :

            {code:java}
            try (Statement stmt = connection.createStatement()) {
              statement.setEscapeProcessing(false);
              statement.execute(myVeryLargeQuery);
            }
            {code}

             

            diego dupin Diego Dupin made changes -
            diego dupin Diego Dupin made changes -
            issue.field.resolutiondate 2020-06-22 15:03:54.0 2020-06-22 15:03:54.393
            diego dupin Diego Dupin made changes -
            Component/s JDBC compatibility [ 15304 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 110326 ] MariaDB v4 [ 128421 ]

            People

              diego dupin Diego Dupin
              diego dupin Diego Dupin
              Votes:
              0 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.