diff options
author | hf@deer.mysql.r18.ru <> | 2002-12-16 17:33:29 +0400 |
---|---|---|
committer | hf@deer.mysql.r18.ru <> | 2002-12-16 17:33:29 +0400 |
commit | e3b3b6830788d1a318df452e3c11956347392e0a (patch) | |
tree | ac62ff3cde5a13932e6d512787093827232af630 /sql/sql_class.h | |
parent | 3517febe97fcea4b90f42da0630cd376425026ab (diff) | |
download | mariadb-git-e3b3b6830788d1a318df452e3c11956347392e0a.tar.gz |
Big purge about embedded library (scrum)
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 69e5809f7b8..39efba28f5f 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -388,9 +388,11 @@ struct system_variables For each client connection we create a separate thread with THD serving as a thread/connection descriptor */ - class THD :public ilink { public: +#ifdef EMBEDDED_LIBRARY + struct st_mysql *mysql; +#endif NET net; // client connection descriptor LEX lex; // parse tree descriptor MEM_ROOT mem_root; // 1 command-life memory pool @@ -403,9 +405,6 @@ public: struct rand_struct rand; // used for authentication struct system_variables variables; // Changeable local variables pthread_mutex_t LOCK_delete; // Locked before thd is deleted -#ifdef EMBEDDED_LIBRARY - struct st_mysql *mysql; -#endif char *query; // Points to the current query, /* @@ -548,6 +547,7 @@ public: THD(); ~THD(); + void init(void); void change_user(void); void cleanup(void); @@ -643,12 +643,17 @@ public: void add_changed_table(const char *key, long key_length); CHANGED_TABLE_LIST * changed_table_dup(const char *key, long key_length); int send_explain_fields(select_result *result); +#ifndef EMBEDDED_LIBRARY inline void clear_error() { net.last_error[0]= 0; net.last_errno= 0; net.report_error= 0; } +#else + void clear_error(); +#endif + void add_possible_loop(Item *); }; |