Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5455

ConnectSE: ODBC: do not throw an error on empty CATFUNC=Columns

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.10
    • Fix Version/s: 10.0.11
    • Component/s: None
    • Labels:

      Description

      drop table if exists t1;
      create table t1 engine=connect table_type=odbc catfunc=columns 
      connection='DSN=pgodbc' tabname='t3';
      select * from t1;
      

      If the table 't3' does not exist in the remote DSN, the SELECT
      query returns an error:

      ERROR 1296 (HY000): Got error 174 'No data found for table t3' from 
      

      It should return an empty set.

      It does not seem to be useful to send a warning (instead of the error) on every SELECT.
      But sending a warning at CREATE TABLE time could probably be useful, to make
      the user aware that there is no such table on the remoter data source.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            bertrandop Olivier Bertrand added a comment -

            Applies to all ODBC catalog functions

            Show
            bertrandop Olivier Bertrand added a comment - Applies to all ODBC catalog functions
            Hide
            bertrandop Olivier Bertrand added a comment -

            No warnings sent when getting an empty result.
            On creating an error is raised when using discovery but no test is made in standard create. An error will be raised when using the table.

            Show
            bertrandop Olivier Bertrand added a comment - No warnings sent when getting an empty result. On creating an error is raised when using discovery but no test is made in standard create. An error will be raised when using the table.

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h