You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Merge branch '3.1' into 3.3
This commit is contained in:
@@ -36,7 +36,7 @@ SET(CC_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
SET(CPACK_PACKAGE_VERSION_MAJOR 3)
|
||||
SET(CPACK_PACKAGE_VERSION_MINOR 3)
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH 10)
|
||||
SET(CPACK_PACKAGE_VERSION_PATCH 11)
|
||||
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
|
||||
MATH(EXPR MARIADB_PACKAGE_VERSION_ID "${CPACK_PACKAGE_VERSION_MAJOR} * 10000 +
|
||||
${CPACK_PACKAGE_VERSION_MINOR} * 100 +
|
||||
|
@@ -3300,10 +3300,13 @@ mysql_refresh(MYSQL *mysql,uint options)
|
||||
int STDCALL
|
||||
mysql_kill(MYSQL *mysql,ulong pid)
|
||||
{
|
||||
char buff[12];
|
||||
int4store(buff,pid);
|
||||
/* if we kill our own thread, reading the response packet will fail */
|
||||
return(ma_simple_command(mysql, COM_PROCESS_KILL,buff,4,0,0));
|
||||
char buff[26];
|
||||
|
||||
if (pid & (~0xFFFFFFFFUL))
|
||||
snprintf(buff, sizeof buff, "KILL %llu", (ulonglong)pid);
|
||||
else
|
||||
snprintf(buff, sizeof buff, "KILL %lu", pid);
|
||||
return mysql_real_query(mysql, (char *)buff, (ulong)strlen(buff));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user