~stewart/drizzle/embedded-innodb-autoincrement

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/mysql_addons.cc

merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
#include "mysql_addons.h"
42
42
#include "univ.i"
 
43
#include "drizzled/session.h"
 
44
 
 
45
/**
 
46
  Return the session id of a user session
 
47
  @param pointer to Session object
 
48
  @return session's id
 
49
*/
 
50
extern "C"
 
51
unsigned long session_get_thread_id(const void *ptr)
 
52
{
 
53
  const drizzled::Session *session= (const drizzled::Session *)ptr;
 
54
  return (unsigned long) session->getSessionId();
 
55
}
 
56