@@ -524,7 +524,11 @@ _mysql_ConnectionObject_Initialize(
524
524
mysql_options (& (self -> connection ), MYSQL_OPT_LOCAL_INFILE , (char * ) & local_infile );
525
525
526
526
if (ssl ) {
527
- mysql_ssl_set (& (self -> connection ), key , cert , ca , capath , cipher );
527
+ mysql_options (& (self -> connection ), MYSQL_OPT_SSL_KEY , key );
528
+ mysql_options (& (self -> connection ), MYSQL_OPT_SSL_CERT , cert );
529
+ mysql_options (& (self -> connection ), MYSQL_OPT_SSL_CA , ca );
530
+ mysql_options (& (self -> connection ), MYSQL_OPT_SSL_CAPATH , capath );
531
+ mysql_options (& (self -> connection ), MYSQL_OPT_SSL_CIPHER , cipher );
528
532
}
529
533
if (ssl_mode ) {
530
534
#ifdef HAVE_ENUM_MYSQL_OPT_SSL_MODE
@@ -1789,10 +1793,11 @@ _mysql_ConnectionObject_kill(
1789
1793
{
1790
1794
unsigned long pid ;
1791
1795
int r ;
1796
+ char query [50 ];
1792
1797
if (!PyArg_ParseTuple (args , "k:kill" , & pid )) return NULL ;
1793
1798
check_connection (self );
1794
1799
Py_BEGIN_ALLOW_THREADS
1795
- r = mysql_kill (& (self -> connection ), pid );
1800
+ r = mysql_query (& (self -> connection ), snprintf ( query , 50 , "KILL %d" , pid ) );
1796
1801
Py_END_ALLOW_THREADS
1797
1802
if (r ) return _mysql_Exception (self );
1798
1803
Py_RETURN_NONE ;
@@ -2008,7 +2013,7 @@ _mysql_ConnectionObject_shutdown(
2008
2013
int r ;
2009
2014
check_connection (self );
2010
2015
Py_BEGIN_ALLOW_THREADS
2011
- r = mysql_shutdown (& (self -> connection ), SHUTDOWN_DEFAULT );
2016
+ r = mysql_query (& (self -> connection ), "SHUTDOWN" );
2012
2017
Py_END_ALLOW_THREADS
2013
2018
if (r ) return _mysql_Exception (self );
2014
2019
Py_RETURN_NONE ;
0 commit comments