~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.cc

  • Committer: Grant Limberg
  • Date: 2008-08-12 21:13:01 UTC
  • mto: (322.1.1 codestyle)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: grant@glsoftware.net-20080812211301-ym3wsowelkgp16s2
renamed all instances of MYSQL_ to DRIZZLE_

Show diffs side-by-side

added added

removed removed

Lines of Context:
546
546
}
547
547
 
548
548
extern "C"
549
 
void *thd_alloc(MYSQL_THD thd, unsigned int size)
 
549
void *thd_alloc(DRIZZLE_THD thd, unsigned int size)
550
550
{
551
551
  return thd->alloc(size);
552
552
}
553
553
 
554
554
extern "C"
555
 
void *thd_calloc(MYSQL_THD thd, unsigned int size)
 
555
void *thd_calloc(DRIZZLE_THD thd, unsigned int size)
556
556
{
557
557
  return thd->calloc(size);
558
558
}
559
559
 
560
560
extern "C"
561
 
char *thd_strdup(MYSQL_THD thd, const char *str)
 
561
char *thd_strdup(DRIZZLE_THD thd, const char *str)
562
562
{
563
563
  return thd->strdup(str);
564
564
}
565
565
 
566
566
extern "C"
567
 
char *thd_strmake(MYSQL_THD thd, const char *str, unsigned int size)
 
567
char *thd_strmake(DRIZZLE_THD thd, const char *str, unsigned int size)
568
568
{
569
569
  return thd->strmake(str, size);
570
570
}
579
579
}
580
580
 
581
581
extern "C"
582
 
void *thd_memdup(MYSQL_THD thd, const void* str, unsigned int size)
 
582
void *thd_memdup(DRIZZLE_THD thd, const void* str, unsigned int size)
583
583
{
584
584
  return thd->memdup(str, size);
585
585
}
586
586
 
587
587
extern "C"
588
 
void thd_get_xid(const MYSQL_THD thd, MYSQL_XID *xid)
 
588
void thd_get_xid(const DRIZZLE_THD thd, DRIZZLE_XID *xid)
589
589
{
590
 
  *xid = *(MYSQL_XID *) &thd->transaction.xid_state.xid;
 
590
  *xid = *(DRIZZLE_XID *) &thd->transaction.xid_state.xid;
591
591
}
592
592
 
593
593
/*
2286
2286
  @retval 0 the user thread is active
2287
2287
  @retval 1 the user thread has been killed
2288
2288
*/
2289
 
extern "C" int thd_killed(const MYSQL_THD thd)
 
2289
extern "C" int thd_killed(const DRIZZLE_THD thd)
2290
2290
{
2291
2291
  return(thd->killed);
2292
2292
}
2296
2296
  @param thd user thread
2297
2297
  @return thread id
2298
2298
*/
2299
 
extern "C" unsigned long thd_get_thread_id(const MYSQL_THD thd)
 
2299
extern "C" unsigned long thd_get_thread_id(const DRIZZLE_THD thd)
2300
2300
{
2301
2301
  return((unsigned long)thd->thread_id);
2302
2302
}
2303
2303
 
2304
2304
 
2305
2305
#ifdef INNODB_COMPATIBILITY_HOOKS
2306
 
extern "C" const struct charset_info_st *thd_charset(MYSQL_THD thd)
 
2306
extern "C" const struct charset_info_st *thd_charset(DRIZZLE_THD thd)
2307
2307
{
2308
2308
  return(thd->charset());
2309
2309
}
2310
2310
 
2311
 
extern "C" char **thd_query(MYSQL_THD thd)
 
2311
extern "C" char **thd_query(DRIZZLE_THD thd)
2312
2312
{
2313
2313
  return(&thd->query);
2314
2314
}
2315
2315
 
2316
 
extern "C" int thd_slave_thread(const MYSQL_THD thd)
 
2316
extern "C" int thd_slave_thread(const DRIZZLE_THD thd)
2317
2317
{
2318
2318
  return(thd->slave_thread);
2319
2319
}
2320
2320
 
2321
 
extern "C" int thd_non_transactional_update(const MYSQL_THD thd)
 
2321
extern "C" int thd_non_transactional_update(const DRIZZLE_THD thd)
2322
2322
{
2323
2323
  return(thd->transaction.all.modified_non_trans_table);
2324
2324
}
2325
2325
 
2326
 
extern "C" int thd_binlog_format(const MYSQL_THD thd)
 
2326
extern "C" int thd_binlog_format(const DRIZZLE_THD thd)
2327
2327
{
2328
2328
  return (int) thd->variables.binlog_format;
2329
2329
}
2330
2330
 
2331
 
extern "C" void thd_mark_transaction_to_rollback(MYSQL_THD thd, bool all)
 
2331
extern "C" void thd_mark_transaction_to_rollback(DRIZZLE_THD thd, bool all)
2332
2332
{
2333
2333
  mark_transaction_to_rollback(thd, all);
2334
2334
}
2443
2443
  inserted/updated/deleted.
2444
2444
*/
2445
2445
 
2446
 
#ifndef MYSQL_CLIENT
 
2446
#ifndef DRIZZLE_CLIENT
2447
2447
 
2448
2448
/*
2449
2449
  Template member function for ensuring that there is an rows log
2847
2847
    if (current_stmt_binlog_row_based)
2848
2848
      return(0);
2849
2849
    /* Otherwise, we fall through */
2850
 
  case THD::MYSQL_QUERY_TYPE:
 
2850
  case THD::DRIZZLE_QUERY_TYPE:
2851
2851
    /*
2852
2852
      Using this query type is a conveniece hack, since we have been
2853
2853
      moving back and forth between using RBR for replication of
2858
2858
    */
2859
2859
  case THD::STMT_QUERY_TYPE:
2860
2860
    /*
2861
 
      The MYSQL_LOG::write() function will set the STMT_END_F flag and
 
2861
      The DRIZZLE_LOG::write() function will set the STMT_END_F flag and
2862
2862
      flush the pending rows event if necessary.
2863
2863
     */
2864
2864
    {
2910
2910
  return(0);
2911
2911
}
2912
2912
 
2913
 
#endif /* !defined(MYSQL_CLIENT) */
 
2913
#endif /* !defined(DRIZZLE_CLIENT) */