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

PreparedStatement.executeQuery allows DML statements

    XMLWordPrintable

Details

    Description

      PreparedStatement.executeQuery() should throw a SQLException for queries that do not return a ResultSet.

      If you execute e.g. "INSERT INTO foo VALUES ('bar')" using MySQL's Connector/J, the driver throws an exception with the message "Statement.executeQuery() cannot issue statements that do not produce result sets.".

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            chris@christopherschultz.net Christopher Schultz
            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.