summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.(none)>2007-07-02 01:55:01 +0400
committerunknown <kostja@bodhi.(none)>2007-07-02 01:55:01 +0400
commit58935a314ebb7b32a0dfc27efd0cd772826ec65f (patch)
tree1be03e9cdd4e2c4239647349ec74da5bb1200ee6 /sql
parent0852b3693f5ee430596da7190ce9d4838ed0cfc9 (diff)
parent2e81ee13e0e58fb6b0bfd213f436e21125128cc2 (diff)
downloadmariadb-git-58935a314ebb7b32a0dfc27efd0cd772826ec65f.tar.gz
Merge bodhi.(none):/opt/local/work/mysql-5.0-runtime
into bodhi.(none):/opt/local/work/mysql-5.1-runtime mysql-test/r/ps_1general.result: Auto merged mysql-test/r/ps_2myisam.result: Auto merged mysql-test/r/ps_3innodb.result: Auto merged mysql-test/r/ps_4heap.result: Auto merged mysql-test/r/ps_5merge.result: Auto merged BitKeeper/deleted/.del-ps_6bdb.result: Auto merged mysql-test/r/ps_7ndb.result: Auto merged sql/handler.cc: Auto merged sql/sp_head.cc: Auto merged sql/sql_class.h: Auto merged sql/sql_error.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged sql/sql_view.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/show_check.result: Manual merge. mysql-test/t/show_check.test: Manual merge. sql/item.h: Manual merge. sql/sp.cc: Manual merge. sql/sql_trigger.cc: Manual merge. tests/mysql_client_test.c: Manual merge.
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.cc2
-rw-r--r--sql/item.h8
-rw-r--r--sql/sp_head.cc4
-rw-r--r--sql/sql_error.cc2
4 files changed, 11 insertions, 5 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index b290c5acaa7..2d836b30862 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1453,7 +1453,7 @@ int ha_delete_table(THD *thd, handlerton *table_type, const char *path,
strmake(buff, thd->net.last_error, sizeof(buff)-1);
thd->query_error= 0;
- thd->spcont= 0;
+ thd->spcont= NULL;
thd->lex->current_select= 0;
thd->net.last_error[0]= 0;
diff --git a/sql/item.h b/sql/item.h
index 82fafe6cd20..6df85476f03 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1888,11 +1888,17 @@ public:
};
+/**
+ Item_empty_string -- is a utility class to put an item into List<Item>
+ which is then used in protocol.send_fields() when sending SHOW output to
+ the client.
+*/
+
class Item_empty_string :public Item_partition_func_safe_string
{
public:
Item_empty_string(const char *header,uint length, CHARSET_INFO *cs= NULL) :
- Item_partition_func_safe_string("",0, cs ? cs : &my_charset_bin)
+ Item_partition_func_safe_string("",0, cs ? cs : &my_charset_utf8_general_ci)
{ name=(char*) header; max_length= cs ? length * cs->mbmaxlen : length; }
void make_field(Send_field *field);
};
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 3e1f50b91bb..f0cc5204749 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -2734,7 +2734,7 @@ sp_instr_set::exec_core(THD *thd, uint *nextp)
sp_rcontext *spcont= thd->spcont;
- thd->spcont= 0; /* Avoid handlers */
+ thd->spcont= NULL; /* Avoid handlers */
my_error(ER_OUT_OF_RESOURCES, MYF(0));
spcont->clear_handler();
thd->spcont= spcont;
@@ -3469,7 +3469,7 @@ sp_instr_set_case_expr::exec_core(THD *thd, uint *nextp)
sp_rcontext *spcont= thd->spcont;
- thd->spcont= 0; /* Avoid handlers */
+ thd->spcont= NULL; /* Avoid handlers */
my_error(ER_OUT_OF_RESOURCES, MYF(0));
spcont->clear_handler();
thd->spcont= spcont;
diff --git a/sql/sql_error.cc b/sql/sql_error.cc
index 61442c52de7..5ebeba6109a 100644
--- a/sql/sql_error.cc
+++ b/sql/sql_error.cc
@@ -126,7 +126,7 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
sp_rcontext *spcont= thd->spcont;
thd->no_warnings_for_error= 1;
- thd->spcont= 0;
+ thd->spcont= NULL;
thd->killed= THD::KILL_BAD_DATA;
my_message(code, msg, MYF(0));