Skip to content

Commit 8975e4d

Browse files
committed
Simplify the command factory
Since more than an year it not possible to create commands in the heap but they are allocated on the stack and directly run. In this regard, it doesn't make sense to have all the vararg stuff. Commands made sense to be created and pushed onto a stack then a general executor will run thru the stack and execute/handle the commands.
1 parent ba5cb2e commit 8975e4d

11 files changed

+213
-849
lines changed

ext/mysqlnd/mysqlnd_auth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ mysqlnd_switch_to_ssl_if_needed(MYSQLND_CONN_DATA * const conn,
196196

197197
{
198198
const size_t client_capabilities = mysql_flags;
199-
ret = conn->run_command(COM_ENABLE_SSL, conn, client_capabilities, server_capabilities, charset_no);
199+
ret = conn->command->enable_ssl(conn, client_capabilities, server_capabilities, charset_no);
200200
}
201201
DBG_RETURN(ret);
202202
}

0 commit comments

Comments
 (0)