1
/******************************************************
2
This file contains functions that need to be added to
3
MySQL code but have not been added yet.
5
Whenever you add a function here submit a MySQL bug
6
report (feature request) with the implementation. Then
7
write the bug number in the comment before the
10
When MySQL commits the function it can be deleted from
11
here. In a perfect world this file exists but is empty.
15
Created November 07, 2007 Vasil Dimov
16
*******************************************************/
20
#endif /* MYSQL_SERVER */
22
#include <mysql_priv.h>
24
#include "mysql_addons.h"
27
/***********************************************************************
28
Retrieve THD::thread_id
29
http://bugs.mysql.com/30930 */
30
extern "C" UNIV_INTERN
34
/* out: THD::thread_id */
35
const void* thd) /* in: THD */
37
return((unsigned long) ((THD*) thd)->thread_id);