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

mysql.h use #include "my_stmt.h" instead of <my_stmt.h>

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2.0
    • None
    • None
    • CentOS 6.x

    Description

      The standard include path is /usr/include/
      I copied all include files into /usr/inlude/mysql/, and my source code like this:

      #include <mysql/mysql.h>
      int main()
      {
          return 0;
      }

      But mysql.h is including my_stmt.h with <> which will lead to compile error because my_stmt.h is not in standard include path /usr/include. see the code here: https://github.com/MariaDB/mariadb-connector-c/blob/master/include/mysql.h#L367
      Should we use #include "my_stmt.h" instead of <my_stmt.h>?

      Attachments

        Issue Links

          Activity

            georg Georg Richter added a comment -

            Fixed in rev. 30ba4feaf7ee1770bb851aae133f7c15f16b4a1d

            georg Georg Richter added a comment - Fixed in rev. 30ba4feaf7ee1770bb851aae133f7c15f16b4a1d
            andrenth Andre Nathan added a comment -

            Hi

            This doesn't seem to have been applied in version 2.3.1. Would it be possible to generate a new stable version with the fix?

            andrenth Andre Nathan added a comment - Hi This doesn't seem to have been applied in version 2.3.1. Would it be possible to generate a new stable version with the fix?

            People

              georg Georg Richter
              echo Echo Ma
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.