~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Lee Bieber
  • Date: 2010-11-14 05:18:07 UTC
  • mfrom: (1921.4.12 catalogs)
  • Revision ID: kalebral@gmail.com-20101114051807-p69h40jbsn1byf84
Merge Brian - add execute with no return

Show diffs side-by-side

added added

removed removed

Lines of Context:
408
408
    only responsible for freeing this member.
409
409
  */
410
410
  std::string db;
 
411
 
 
412
  const std::string &getSchema() const
 
413
  {
 
414
    return db;
 
415
  }
411
416
  std::string catalog;
412
417
  /* current cache key */
413
418
  std::string query_cache_key;
421
426
 
422
427
  memory::Root warn_root; /**< Allocation area for warnings and errors */
423
428
  plugin::Client *client; /**< Pointer to client object */
 
429
 
 
430
  void setClient(plugin::Client *client_arg);
 
431
 
 
432
  plugin::Client *getClient()
 
433
  {
 
434
    return client;
 
435
  }
 
436
 
424
437
  plugin::Scheduler *scheduler; /**< Pointer to scheduler object */
425
438
  void *scheduler_arg; /**< Pointer to the optional scheduler argument */
426
439
 
620
633
  Field *dup_field;
621
634
  sigset_t signals;
622
635
 
 
636
  // As of right now we do not allow a concurrent execute to launch itself
 
637
private:
 
638
  bool concurrent_execute_allowed;
 
639
public:
 
640
 
 
641
  void setConcurrentExecute(bool arg)
 
642
  {
 
643
    concurrent_execute_allowed= arg;
 
644
  }
 
645
 
 
646
  bool isConcurrentExecuteAllowed() const
 
647
  {
 
648
    return concurrent_execute_allowed;
 
649
  }
 
650
 
623
651
  /* Tells if LAST_INSERT_ID(#) was called for the current statement */
624
652
  bool arg_of_last_insert_id_function;
 
653
 
625
654
  /*
626
655
    ALL OVER THIS FILE, "insert_id" means "*automatically generated* value for
627
656
    insertion into an auto_increment column".
1160
1189
    @todo: To silence an error, one should use Internal_error_handler
1161
1190
    mechanism. In future this function will be removed.
1162
1191
  */
1163
 
  inline void clear_error()
 
1192
  inline void clear_error(bool full= false)
1164
1193
  {
1165
1194
    if (main_da.is_error())
1166
1195
      main_da.reset_diagnostics_area();
1167
 
    return;
 
1196
 
 
1197
    if (full)
 
1198
    {
 
1199
      drizzle_reset_errors(this, true);
 
1200
    }
 
1201
  }
 
1202
 
 
1203
  void clearDiagnostics()
 
1204
  {
 
1205
    main_da.reset_diagnostics_area();
1168
1206
  }
1169
1207
 
1170
1208
  /**