~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/trx/trx0i_s.cc

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
Created July 17, 2007 Vasil Dimov
29
29
*******************************************************/
30
30
 
31
 
#include <config.h>
 
31
#include "config.h"
32
32
/* Found during the build of 5.5.3 on Linux 2.4 and early 2.6 kernels:
33
33
   The includes "univ.i" -> "my_global.h" cause a different path
34
34
   to be taken further down with pthread functions and types,
41
41
# include <mysql/plugin.h>
42
42
#endif
43
43
 
 
44
#include "mysql_addons.h"
 
45
 
44
46
#include "buf0buf.h"
45
47
#include "dict0dict.h"
46
48
#include "ha0storage.h"
62
64
#include "ut0mem.h"
63
65
#include "ut0ut.h"
64
66
 
65
 
#include <drizzled/session.h>
66
 
 
67
67
/** Initial number of rows in the table cache */
68
68
#define TABLE_CACHE_INITIAL_ROWSNUM     1024
69
69
 
509
509
                goto thd_done;
510
510
        }
511
511
 
512
 
        row->trx_mysql_thread_id = trx->session()->getSessionId();
513
 
        stmt= trx->mysql_thd->getQueryStringCopy(stmt_len);
 
512
        row->trx_mysql_thread_id = session_get_thread_id(trx->mysql_thd);
 
513
        stmt = innobase_get_stmt(trx->mysql_thd, &stmt_len);
514
514
 
515
515
        if (stmt != NULL) {
516
516