mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Revert "MDEV-9293 Connector/C integration"
This reverts commit 7b89b9f510
.
This commit is contained in:
@ -1005,6 +1005,11 @@ enum option_id {
|
||||
static TYPELIB option_types={array_elements(default_options)-1,
|
||||
"options",default_options, NULL};
|
||||
|
||||
const char *sql_protocol_names_lib[] =
|
||||
{ "TCP", "SOCKET", "PIPE", "MEMORY", NullS };
|
||||
TYPELIB sql_protocol_typelib = {array_elements(sql_protocol_names_lib)-1,"",
|
||||
sql_protocol_names_lib, NULL};
|
||||
|
||||
static int add_init_command(struct st_mysql_options *options, const char *cmd)
|
||||
{
|
||||
char *tmp;
|
||||
@ -4769,11 +4774,3 @@ mysql_get_socket(const MYSQL *mysql)
|
||||
return vio_fd(mysql->net.vio);
|
||||
return INVALID_SOCKET;
|
||||
}
|
||||
|
||||
|
||||
int STDCALL mysql_cancel(MYSQL *mysql)
|
||||
{
|
||||
if (mysql->net.vio)
|
||||
return vio_shutdown(mysql->net.vio, SHUT_RDWR);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user