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

CONNECT engine does not build with JDBC without ODBC

    XMLWordPrintable

    Details

      Description

      /data/src/10.0/storage/connect/ha_connect.cc: In function 'int connect_assisted_discovery(handlerton*, THD*, TABLE_SHARE*, HA_CREATE_INFO*)':
      /data/src/10.0/storage/connect/ha_connect.cc:5763:38: error: 'tabtyp' was not declared in this scope
              qrp = JDBCTables(g, shm, tab, tabtyp, mxr, true, sjp);
                                            ^
      storage/connect/CMakeFiles/connect.dir/build.make:54: recipe for target 'storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o' failed
      make[2]: *** [storage/connect/CMakeFiles/connect.dir/ha_connect.cc.o] Error 1
      make[2]: *** Waiting for unfinished jobs....
      [ 49%] Building CXX object storage/perfschema/CMakeFiles/perfschema.dir/table_socket_summary_by_instance.cc.o
      CMakeFiles/Makefile2:4070: recipe for target 'storage/connect/CMakeFiles/connect.dir/all' failed
      make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
      

      It used to happen before, back then it was because tabtyp is defined under if defined(ODBC_SUPPORT) , but is used under if defined(JDBC_SUPPORT). I assume the reason is still the same – Sergei Golubchik fixed it, but apparently the fix got lost after the latest merge.

      It probably needs to be fixed in MariaDB main trees again (for now), but also in Olivier trees, so further merges don't make it resurface.

        Attachments

          Activity

            People

            Assignee:
            serg Sergei Golubchik
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: