~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Brian Aker
  • Date: 2010-12-31 06:44:35 UTC
  • mfrom: (2040.4.3 timestamp)
  • Revision ID: brian@tangent.org-20101231064435-g0h53tjfisjty2fy
Partial update to the time code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
  lock_id(&main_lock_id),
176
176
  thread_stack(NULL),
177
177
  security_ctx(identifier::User::make_shared()),
 
178
  where(Session::DEFAULT_WHERE),
 
179
  dbug_sentry(Session_SENTRY_MAGIC),
 
180
  mysys_var(0),
 
181
  command(COM_CONNECT),
 
182
  file_id(0),
 
183
  _epoch(boost::gregorian::date(1970,1,1)),
 
184
  start_time(0),
178
185
  user_time(0),
 
186
  start_utime(0),
 
187
  utime_after_lock(0),
179
188
  ha_data(plugin::num_trx_monitored_objects),
 
189
  query_id(0),
 
190
  warn_query_id(0),
180
191
  concurrent_execute_allowed(true),
181
192
  arg_of_last_insert_id_function(false),
182
193
  first_successful_insert_id_in_prev_stmt(0),
183
194
  first_successful_insert_id_in_cur_stmt(0),
184
195
  limit_found_rows(0),
 
196
  options(session_startup_options),
 
197
  row_count_func(-1),
 
198
  sent_row_count(0),
 
199
  examined_row_count(0),
 
200
  used_tables(0),
 
201
  total_warn_count(0),
 
202
  col_access(0),
 
203
  statement_id_counter(0),
 
204
  row_count(0),
 
205
  thread_id(0),
 
206
  tmp_table(0),
185
207
  _global_read_lock(NONE),
 
208
  count_cuted_fields(CHECK_FIELD_ERROR_FOR_NULL),
186
209
  _killed(NOT_KILLED),
187
210
  some_tables_deleted(false),
188
211
  no_errors(false),
207
230
    will be re-initialized in init_for_queries().
208
231
  */
209
232
  memory::init_sql_alloc(&main_mem_root, memory::ROOT_MIN_BLOCK_SIZE, 0);
210
 
  count_cuted_fields= CHECK_FIELD_ERROR_FOR_NULL;
211
 
  col_access= 0;
212
 
  tmp_table= 0;
213
 
  used_tables= 0;
214
233
  cuted_fields= sent_row_count= row_count= 0L;
215
 
  row_count_func= -1;
216
 
  statement_id_counter= 0UL;
217
234
  // Must be reset to handle error with Session's created for init of mysqld
218
235
  lex->current_select= 0;
219
 
  start_time=(time_t) 0;
220
 
  start_utime= 0L;
221
 
  utime_after_lock= 0L;
222
236
  memset(&variables, 0, sizeof(variables));
223
 
  thread_id= 0;
224
 
  file_id = 0;
225
 
  query_id= 0;
226
 
  warn_query_id= 0;
227
 
  mysys_var= 0;
228
237
  scoreboard_index= -1;
229
 
  dbug_sentry=Session_SENTRY_MAGIC;
230
238
  cleanup_done= abort_on_warning= no_warnings_for_error= false;  
231
239
 
232
240
  /* query_cache init */
235
243
 
236
244
  /* Variables with default values */
237
245
  proc_info="login";
238
 
  where= Session::DEFAULT_WHERE;
239
 
  command= COM_CONNECT;
240
246
 
241
247
  plugin_sessionvar_init(this);
242
248
  /*
246
252
  */
247
253
  variables.pseudo_thread_id= thread_id;
248
254
  server_status= SERVER_STATUS_AUTOCOMMIT;
249
 
  options= session_startup_options;
250
255
 
251
256
  if (variables.max_join_size == HA_POS_ERROR)
252
257
    options |= OPTION_BIG_SELECTS;
258
263
  session_tx_isolation= (enum_tx_isolation) variables.tx_isolation;
259
264
  warn_list.empty();
260
265
  memset(warn_count, 0, sizeof(warn_count));
261
 
  total_warn_count= 0;
262
266
  memset(&status_var, 0, sizeof(status_var));
263
267
 
264
268
  /* Initialize sub structures */