[CONC-143] mysql.h use #include "my_stmt.h" instead of <my_stmt.h> Created: 2015-09-28  Updated: 2016-12-21  Resolved: 2015-09-28

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.2.0

Type: Bug Priority: Major
Reporter: Echo Ma Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS 6.x


Issue Links:
Duplicate
duplicates MDEV-8861 mariadb-connector-c using "my_stmt.h"... Closed

 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>?



 Comments   
Comment by Georg Richter [ 2015-09-28 ]

Fixed in rev. 30ba4feaf7ee1770bb851aae133f7c15f16b4a1d

Comment by Andre Nathan [ 2016-12-21 ]

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?

Generated at Thu Feb 08 03:03:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.