Bug #78028 API change in include/mysql_com.h

Submitted: 11 Aug 2015 19:27 Modified: 2 Sep 2015 10:35
Reporter: Brian Evans Email Updates:
Status: Verified Impact on me:
None 
Category:Connector / C Severity:S2 (Serious)
Version:6.1.6 OS:Any
Assigned to: CPU Architecture:Any

[11 Aug 2015 19:27] Brian Evans
Description:
The Connector/C-6.1.6 release changed mysql_com.h from
#define CLIENT_SECURE_CONNECTION 32768
(like in MySQL 5.6) to
#define CLIENT_RESERVED2 32768
like in MySQL 5.7

This should not be done with an API/ABI targeting 5.6

How to repeat:
Include mysql_com.h

Suggested fix:
--- a/include/mysql_com.h       2014-06-10 23:10:43.000000000 -0400
+++ b/include/mysql_com.h       2015-08-11 15:20:54.487091000 -0400
@@ -179,7 +171,7 @@
 #define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
 #define CLIENT_TRANSACTIONS    8192    /* Client knows about transactions */
 #define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
-#define CLIENT_RESERVED2        32768   /* Old flag for 4.1 authentication */
+#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
 #define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
 #define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
 #define CLIENT_PS_MULTI_RESULTS (1UL << 18) /* Multi-results in PS-protocol */
@@ -226,7 +216,7 @@
                            | CLIENT_IGNORE_SIGPIPE \
                            | CLIENT_TRANSACTIONS \
                            | CLIENT_RESERVED \
-                           | CLIENT_RESERVED2 \
+                           | CLIENT_SECURE_CONNECTION \
                            | CLIENT_MULTI_STATEMENTS \
                            | CLIENT_MULTI_RESULTS \
                            | CLIENT_PS_MULTI_RESULTS \
[11 Aug 2015 19:53] Brian Evans
This change is also needed

--- a/libmysql/client_settings.h        2015-02-25 16:09:49.000000000 -0500
+++ b/libmysql/client_settings.h        2015-08-11 15:44:10.804091000 -0400
@@ -31,7 +31,7 @@
                              CLIENT_LONG_FLAG |     \
                              CLIENT_TRANSACTIONS |  \
                              CLIENT_PROTOCOL_41 | \
-                             CLIENT_RESERVED2 | \
+                             CLIENT_SECURE_CONNECTION | \
                              CLIENT_MULTI_RESULTS | \
                              CLIENT_PS_MULTI_RESULTS | \
                              CLIENT_PLUGIN_AUTH | \
[2 Sep 2015 10:35] Chiranjeevi Battula
Hello Brian Evans,

Thank you for the bug report.
Verified based on internal discussion with dev's.

Thanks,
Chiranjeevi

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.