1
/*****************************************************************************
3
Copyright (C) 2007, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
17
*****************************************************************************/
19
/**************************************************//**
20
@file handler/mysql_addons.cc
21
This file contains functions that need to be added to
22
MySQL code but have not been added yet.
24
Whenever you add a function here submit a MySQL bug
25
report (feature request) with the implementation. Then
26
write the bug number in the comment before the
27
function in this file.
29
When MySQL commits the function it can be deleted from
30
here. In a perfect world this file exists but is empty.
32
Created November 07, 2007 Vasil Dimov
33
*******************************************************/
37
#endif /* MYSQL_SERVER */
41
#include "mysql_addons.h"
43
#include "drizzled/session.h"
46
Return the session id of a user session
47
@param pointer to Session object
50
unsigned long session_get_thread_id(const void *ptr)
52
const drizzled::Session *session= (const drizzled::Session *)ptr;
53
return (unsigned long) session->getSessionId();