~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Jay Pipes
  • Date: 2009-06-11 17:44:12 UTC
  • mto: This revision was merged to the branch mainline in revision 1061.
  • Revision ID: jpipes@serialcoder-20090611174412-wk98egglux8h2cr2
More style cleanups in Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
  arg_of_last_insert_id_function(false),
171
171
  first_successful_insert_id_in_prev_stmt(0),
172
172
  first_successful_insert_id_in_cur_stmt(0),
 
173
  limit_found_rows(0),
173
174
  global_read_lock(0),
174
 
  is_fatal_error(0),
175
 
  transaction_rollback_request(0),
 
175
  some_tables_deleted(false),
 
176
  no_errors(false),
 
177
  password(false),
 
178
  is_fatal_error(false),
 
179
  transaction_rollback_request(false),
176
180
  is_fatal_sub_stmt_error(0),
177
181
  derived_tables_processing(false),
 
182
  tablespace_op(false),
178
183
  m_lip(NULL),
179
184
  scheduler(0),
180
 
  cached_table(0),
181
 
  tablespace_op(false)
 
185
  cached_table(0)
182
186
{
183
187
  uint64_t tmp;
184
188
 
190
194
    will be re-initialized in init_for_queries().
191
195
  */
192
196
  init_sql_alloc(&main_mem_root, ALLOC_ROOT_MIN_BLOCK_SIZE, 0);
193
 
  thread_stack= 0;
194
 
  catalog= (char*)"std"; // the only catalog we have for now
195
 
  some_tables_deleted=no_errors=password= 0;
 
197
  thread_stack= NULL;
196
198
  count_cuted_fields= CHECK_FIELD_IGNORE;
197
199
  killed= NOT_KILLED;
198
 
  col_access=0;
199
 
  tmp_table=0;
200
 
  used_tables=0;
 
200
  col_access= 0;
 
201
  tmp_table= 0;
 
202
  used_tables= 0;
201
203
  cuted_fields= sent_row_count= row_count= 0L;
202
 
  limit_found_rows= 0;
203
204
  row_count_func= -1;
204
205
  statement_id_counter= 0UL;
205
206
  // Must be reset to handle error with Session's created for init of mysqld
214
215
  warn_id= 0;
215
216
  memset(ha_data, 0, sizeof(ha_data));
216
217
  replication_data= 0;
217
 
  mysys_var=0;
 
218
  mysys_var= 0;
218
219
  dbug_sentry=Session_SENTRY_MAGIC;
219
220
  client_capabilities= 0;                       // minimalistic client
220
221
  cleanup_done= abort_on_warning= no_warnings_for_error= false;
225
226
  /* Variables with default values */
226
227
  proc_info="login";
227
228
  where= Session::DEFAULT_WHERE;
228
 
  command=COM_CONNECT;
 
229
  command= COM_CONNECT;
229
230
 
230
231
  plugin_sessionvar_init(this);
231
232
  /*
851
852
  if (first_successful_insert_id_in_cur_stmt > 0)
852
853
  {
853
854
    /* set what LAST_INSERT_ID() will return */
854
 
    first_successful_insert_id_in_prev_stmt=
855
 
      first_successful_insert_id_in_cur_stmt;
 
855
    first_successful_insert_id_in_prev_stmt= first_successful_insert_id_in_cur_stmt;
856
856
    first_successful_insert_id_in_cur_stmt= 0;
857
857
    substitute_null_with_insert_id= true;
858
858
  }
859
 
  arg_of_last_insert_id_function= 0;
 
859
  arg_of_last_insert_id_function= false;
860
860
  /* Free Items that were created during this execution */
861
861
  free_items();
862
862
  /* Reset where. */
1937
1937
  */
1938
1938
  auto_inc_intervals_in_cur_stmt_for_binlog.empty();
1939
1939
 
1940
 
  is_fatal_error= 0;
 
1940
  is_fatal_error= false;
1941
1941
  server_status&= ~ (SERVER_MORE_RESULTS_EXISTS |
1942
1942
                          SERVER_QUERY_NO_INDEX_USED |
1943
1943
                          SERVER_QUERY_NO_GOOD_INDEX_USED);