346
346
extern "C" struct charset_info_st *thd_charset(MYSQL_THD thd);
347
347
extern "C" char **thd_query(MYSQL_THD thd);
348
348
extern "C" int thd_slave_thread(const MYSQL_THD thd);
350
349
extern "C" int thd_binlog_format(const MYSQL_THD thd);
351
350
extern "C" void thd_mark_transaction_to_rollback(MYSQL_THD thd, bool all);
353
352
#define thd_charset(t) (t)->charset()
354
353
#define thd_query(t) &(t)->query
355
354
#define thd_slave_thread(t) (t)->slave_thread
357
355
#define thd_binlog_format(t) (t)->variables.binlog_format
358
356
#define thd_mark_transaction_to_rollback(t) mark_transaction_to_rollback(t, all)
359
357
#endif // INNODB_COMPATIBILITY_HOOKS */