summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2007-04-13 19:23:02 +0200
committerunknown <serg@janus.mylan>2007-04-13 19:23:02 +0200
commitbf2aaad97d0ff65a4a79f9012b4443d4d6dbd6e8 (patch)
treec318326d7c94a04b34753308fce3a0bb1b38f53e /sql/sql_class.cc
parent1e6bd48ccbd725c298453cf6c7645b430529fe43 (diff)
downloadmariadb-git-bf2aaad97d0ff65a4a79f9012b4443d4d6dbd6e8.tar.gz
wl#2936 - fixing problems
include/mysql/plugin.h: warning. no int/realsize mysys/my_getopt.c: combination of prefixes (e.g. --loose-skip-) didn't work sql/event_queue.cc: warning sql/handler.cc: assert sql/handler.h: comment sql/item_create.cc: warnings sql/log.cc: warnings sql/mysqld.cc: wl#2936 - fixing problems (memory leak in load_defaults, garbage in opt_[slow_]logname sql/partition_element.h: warnings sql/rpl_utility.h: warnings sql/set_var.cc: comment sql/set_var.h: warnings sql/sql_class.cc: warnings sql/sql_parse.cc: warnings sql/sql_plugin.cc: wl#2936 - fixing problems: portability, coding style, reporting of spurious errors, crashes, incorrect help output storage/example/ha_example.cc: comment storage/innobase/handler/ha_innodb.cc: wl#2936 - fixing problems (crash)
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 9fba5b92ba5..20d12a4bd62 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -227,8 +227,8 @@ int thd_sql_command(const THD *thd)
pointer to string
*/
extern "C"
-char *thd_security_context(THD *thd, char *buffer, int length,
- int max_query_len)
+char *thd_security_context(THD *thd, char *buffer, unsigned int length,
+ unsigned int max_query_len)
{
String str(buffer, length, &my_charset_latin1);
const Security_context *sctx= &thd->main_security_ctx;
@@ -293,13 +293,16 @@ THD::THD()
user_time(0), in_sub_stmt(0),
binlog_table_maps(0),
global_read_lock(0), is_fatal_error(0),
- rand_used(0), time_zone_used(0),
arg_of_last_insert_id_function(FALSE),
first_successful_insert_id_in_prev_stmt(0),
first_successful_insert_id_in_prev_stmt_for_binlog(0),
first_successful_insert_id_in_cur_stmt(0),
- in_lock_tables(0), bootstrap(0), derived_tables_processing(FALSE),
+ rand_used(0),
+ time_zone_used(0),
+ in_lock_tables(0),
stmt_depends_on_first_successful_insert_id_in_prev_stmt(FALSE),
+ bootstrap(0),
+ derived_tables_processing(FALSE),
spcont(NULL)
{
ulong tmp;
@@ -1765,15 +1768,16 @@ void Query_arena::cleanup_stmt()
}
/*
- Statement functions
+ Statement functions
*/
Statement::Statement(enum enum_state state_arg, ulong id_arg,
ulong alloc_block_size, ulong prealloc_size)
:Query_arena(&main_mem_root, state_arg),
+ main_lex(),
id(id_arg),
mark_used_columns(MARK_COLUMNS_READ),
- main_lex(), lex(&main_lex),
+ lex(&main_lex),
query(0),
query_length(0),
cursor(0)