summaryrefslogtreecommitdiff
path: root/libmysql/libmysql.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-02-13 12:57:11 +0100
committerSergei Golubchik <serg@mariadb.org>2015-02-13 12:57:11 +0100
commitfdd6c111c254c5044cd9b6c2f7e4d0c74f427a79 (patch)
treef85a55a2c6fe6591e32beddeb83c58066a978498 /libmysql/libmysql.c
parent5dce6aa1fe36d315f17eb9f4a0f5be808805e94c (diff)
downloadmariadb-git-fdd6c111c254c5044cd9b6c2f7e4d0c74f427a79.tar.gz
MDEV-7419 Function cli_safe_read not exportedmariadb-5.5.42
Start the client API for low-level protocol access: * unsigned long mysql_net_read_packet(MYSQL *mysql); * unsigned long mysql_net_field_length(unsigned char **packet);
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r--libmysql/libmysql.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index df18d6d60da..1df5f0b6d2c 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -4897,3 +4897,20 @@ my_bool STDCALL mysql_read_query_result(MYSQL *mysql)
return (*mysql->methods->read_query_result)(mysql);
}
+/********************************************************************
+ mysql_net_ functions - low-level API to MySQL protocol
+*********************************************************************/
+#if MYSQL_VERSION_ID > 100100
+#error remove these wrappers in 10.1, rename functions instead
+#endif
+
+ulong STDCALL mysql_net_read_packet(MYSQL *mysql)
+{
+ return cli_safe_read(mysql);
+}
+
+ulong STDCALL mysql_net_field_length(uchar **packet)
+{
+ return net_field_length(packet);
+}
+