mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Run mysqlmd commands in one step (without separate create/run/free).
This commit is contained in:
parent
3077a14aea
commit
4d5330fbe1
10 changed files with 297 additions and 453 deletions
|
@ -186,11 +186,7 @@ mysqlnd_switch_to_ssl_if_needed(MYSQLND_CONN_DATA * conn,
|
|||
|
||||
{
|
||||
size_t client_capabilities = mysql_flags;
|
||||
struct st_mysqlnd_protocol_command * command = conn->command_factory(COM_ENABLE_SSL, conn, client_capabilities, server_capabilities, charset_no);
|
||||
if (command) {
|
||||
ret = command->run(command);
|
||||
command->free_command(command);
|
||||
}
|
||||
ret = conn->run_command(COM_ENABLE_SSL, conn, client_capabilities, server_capabilities, charset_no);
|
||||
}
|
||||
DBG_RETURN(ret);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue