Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-200

Lack of include files compatibility for applications written for libmysqlclient

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.0
    • N/A
    • Packaging
    • None

    Description

      The connector was advertised in the past as a libmysqlclient drop-in replacement.
      However you seem to be renaming include files in 3.x which breaks source code compatibility with the majority of programs that was written for that.
      It this intended?

      Dovecot:

      ==
      driver-mysql.c:24:20: fatal error: errmsg.h: No such file or directory
      ==

      PHP:

      ==
      php-7.0.9/ext/mysqli/php_mysqli_structs.h:63:23: fatal error: my_global.h: No such file or directory
      compilation terminated.
      ==

      (yes, I know I could use mysqlnd instead, but that's not the point)

      Kodi:

      ==
      mysqldataset.cpp:34:26: fatal error: mysql/errmsg.h: No such file or directory
      ==

      Along with other include file related errors.
      E.g. Qt 4, Qt 5 and poco library are missing the definition for my_ulonglong:

      ==
      drivers/mysql/qsql_mysql.cpp:562:5: error: ‘my_ulonglong’ was not declared in this scope
      my_ulonglong numRows;

      ==
      ../../../sql/drivers/mysql/qsql_mysql.cpp:553:5: error: ‘my_ulonglong’ was not declared in this scope
      my_ulonglong numRows;
      ==
      src/StatementExecutor.cpp: In member function ‘void Poco::Data::MySQL::StatementExecutor::execute()’:
      src/StatementExecutor.cpp:110:2: error: ‘my_ulonglong’ was not declared in this scope
      my_ulonglong affectedRows = mysql_affected_rows(_pSessionHandle);
      ==

      Attachments

        Activity

          People

            georg Georg Richter
            max Floris
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.