~skinny.moey/drizzle/server_uuid_repl

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2011-04-21 21:09:08 UTC
  • mfrom: (2281.4.3 prune)
  • Revision ID: brian@tangent.org-20110421210908-qfoyfsfmqn6b1ocd
Merge in Olaf prune tree (with comment on set_db)

Show diffs side-by-side

added added

removed removed

Lines of Context:
866
866
  void setAbort(bool arg);
867
867
  void lockOnSys();
868
868
  void set_status_var_init();
869
 
 
870
869
  /**
871
870
    Set the current database; use deep copy of C-string.
872
871
 
884
883
    attributes including security context. In the future, this operation
885
884
    will be made private and more convenient interface will be provided.
886
885
  */
887
 
  void set_db(const std::string &new_db);
 
886
  void set_db(const std::string&);
888
887
 
889
888
  /*
890
889
    Copy the current database to the argument. Use the current arena to
894
893
  bool copy_db_to(char **p_db, size_t *p_db_length);
895
894
 
896
895
public:
897
 
  /**
898
 
    Add an internal error handler to the thread execution context.
899
 
    @param handler the exception handler to add
900
 
  */
901
 
  void push_internal_handler(Internal_error_handler *handler);
902
 
 
903
 
  /**
904
 
    Handle an error condition.
905
 
    @param sql_errno the error number
906
 
    @param level the error level
907
 
    @return true if the error is handled
908
 
  */
909
 
  virtual bool handle_error(error_t sql_errno, const char *message,
910
 
                            DRIZZLE_ERROR::enum_warning_level level);
911
 
 
912
 
  /**
913
 
    Remove the error handler last pushed.
914
 
  */
915
 
  void pop_internal_handler();
916
896
 
917
897
  /**
918
898
    Resets Session part responsible for command processing state.
1035
1015
  plugin::EventObserverList* getSchemaObservers(const std::string& schema);
1036
1016
  plugin::EventObserverList* setSchemaObservers(const std::string& schema, plugin::EventObserverList*);
1037
1017
 
1038
 
 private:
1039
 
 
1040
 
  /** The current internal error handler for this thread, or NULL. */
1041
 
  Internal_error_handler *m_internal_handler;
1042
 
  /**
1043
 
    This memory root is used for two purposes:
1044
 
    - for conventional queries, to allocate structures stored in main_lex
1045
 
    during parsing, and allocate runtime data (execution plan, etc.)
1046
 
    during execution.
1047
 
    - for prepared queries, only to allocate runtime data. The parsed
1048
 
    tree itself is reused between executions and thus is stored elsewhere.
1049
 
  */
1050
 
  memory::Root main_mem_root;
1051
 
 
1052
1018
public:
1053
1019
  void my_ok(ha_rows affected_rows= 0, ha_rows found_rows_arg= 0, uint64_t passed_id= 0, const char *message= NULL);
1054
1020
  void my_eof();