Uploaded image for project: 'MariaDB Connector/ODBC'
  1. MariaDB Connector/ODBC
  2. ODBC-226

Driver doesn't cause an error when it should

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 3.0.9
    • 3.1.3
    • General
    • None

    Description

      The following statement doesn't cause an error, but it should:

      drop temporary table if exists test.sometable;
      create temporary table test.sometable as select 1 from nonexistend_table.field

      As a sideffect of this bug, affected rows are not properly counted.

      I did some testing and attached a test and a possible patch.

      I consider this bug critical because the user doesn't notice when something went wrong.

      I considered to split the test into two pieces, however ODBC-222 could easily lead to a regression on this matter and I think it would be a good idea to keep the test it this way.

      Attachments

        1. patch.txt
          0.8 kB
        2. test.patch
          1.0 kB

        Activity

          People

            Lawrin Lawrin Novitsky
            matzehh Matthias Schröder
            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.