~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_class.h

MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
  LEX_COLUMN (const String& x,const  uint& y ): column (x),rights (y) {}
234
234
};
235
235
 
236
 
/**
237
 
  Query_cache_tls -- query cache thread local data.
238
 
*/
239
 
 
240
 
struct Query_cache_block;
241
 
 
242
 
struct Query_cache_tls
243
 
{
244
 
  /*
245
 
    'first_query_block' should be accessed only via query cache
246
 
    functions and methods to maintain proper locking.
247
 
  */
248
 
  Query_cache_block *first_query_block;
249
 
  void set_first_query_block(Query_cache_block *first_query_block_arg)
250
 
  {
251
 
    first_query_block= first_query_block_arg;
252
 
  }
253
 
 
254
 
  Query_cache_tls() :first_query_block(NULL) {}
255
 
};
256
 
 
257
236
#include "sql_lex.h"                            /* Must be here */
258
237
 
259
238
class select_result;
832
811
/* Flags for the THD::system_thread variable */
833
812
enum enum_thread_type
834
813
{
835
 
  NON_SYSTEM_THREAD= 0,
836
 
  SYSTEM_THREAD_DELAYED_INSERT= 1,
837
 
  SYSTEM_THREAD_SLAVE_IO= 2,
838
 
  SYSTEM_THREAD_SLAVE_SQL= 4,
839
 
  SYSTEM_THREAD_NDBCLUSTER_BINLOG= 8,
840
 
  SYSTEM_THREAD_EVENT_SCHEDULER= 16,
841
 
  SYSTEM_THREAD_EVENT_WORKER= 32,
842
 
  SYSTEM_THREAD_BACKUP= 64
 
814
  NON_SYSTEM_THREAD,
 
815
  SYSTEM_THREAD_SLAVE_IO,
 
816
  SYSTEM_THREAD_SLAVE_SQL
843
817
};
844
818
 
845
819
 
1864
1838
 
1865
1839
      Don't reset binlog format for NDB binlog injector thread.
1866
1840
    */
1867
 
    if ((temporary_tables == NULL) && (in_sub_stmt == 0) &&
1868
 
        (system_thread != SYSTEM_THREAD_NDBCLUSTER_BINLOG))
 
1841
    if ((temporary_tables == NULL) && (in_sub_stmt == 0))
1869
1842
    {
1870
1843
      current_stmt_binlog_row_based= 
1871
1844
        test(variables.binlog_format == BINLOG_FORMAT_ROW);