File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -854,6 +854,12 @@ my_socket STDCALL mysql_get_socket(const MYSQL *mysql);
854
854
unsigned int STDCALL mysql_get_timeout_value (const MYSQL * mysql );
855
855
unsigned int STDCALL mysql_get_timeout_value_ms (const MYSQL * mysql );
856
856
857
+ /********************************************************************
858
+ mysql_net_ functions - low-level API to MySQL protocol
859
+ *********************************************************************/
860
+ unsigned long STDCALL mysql_net_read_packet (MYSQL * mysql );
861
+ unsigned long STDCALL mysql_net_field_length (unsigned char * * packet );
862
+
857
863
/* status return codes */
858
864
#define MYSQL_NO_DATA 100
859
865
#define MYSQL_DATA_TRUNCATED 101
Original file line number Diff line number Diff line change 732
732
my_socket mysql_get_socket(const MYSQL *mysql);
733
733
unsigned int mysql_get_timeout_value(const MYSQL *mysql);
734
734
unsigned int mysql_get_timeout_value_ms(const MYSQL *mysql);
735
+ unsigned long mysql_net_read_packet(MYSQL *mysql);
736
+ unsigned long mysql_net_field_length(unsigned char **packet);
Original file line number Diff line number Diff line change @@ -238,6 +238,9 @@ dynamic_column_get
238
238
dynamic_column_prepare_decimal
239
239
#
240
240
mariadb_deinitialize_ssl
241
+ # low-level API to MySQL protocol
242
+ mysql_net_read_packet
243
+ mysql_net_field_length
241
244
)
242
245
243
246
SET (CLIENT_API_FUNCTIONS
Original file line number Diff line number Diff line change @@ -4897,3 +4897,20 @@ my_bool STDCALL mysql_read_query_result(MYSQL *mysql)
4897
4897
return (* mysql -> methods -> read_query_result )(mysql );
4898
4898
}
4899
4899
4900
+ /********************************************************************
4901
+ mysql_net_ functions - low-level API to MySQL protocol
4902
+ *********************************************************************/
4903
+ #if MYSQL_VERSION_ID > 100100
4904
+ #error remove these wrappers in 10.1, rename functions instead
4905
+ #endif
4906
+
4907
+ ulong STDCALL mysql_net_read_packet (MYSQL * mysql )
4908
+ {
4909
+ return cli_safe_read (mysql );
4910
+ }
4911
+
4912
+ ulong STDCALL mysql_net_field_length (uchar * * packet )
4913
+ {
4914
+ return net_field_length (packet );
4915
+ }
4916
+
You can’t perform that action at this time.
0 commit comments