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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.9
    • Fix Version/s: 3.1.3
    • Component/s: General
    • Labels:
      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

            Assignee:
            Lawrin Lawrin Novitsky
            Reporter:
            matzehh Matthias Schröder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: