summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2004-05-15 00:06:16 +0400
committerunknown <sergefp@mysql.com>2004-05-15 00:06:16 +0400
commit201412da7571f5078dae6cdb2067f64a3de5bef8 (patch)
tree2b847992c4d6ac40460d6727558f05df45a64c69 /sql/item.cc
parentdd4be0244d57da44351d6788dc9e29d2bcb60ea3 (diff)
parentd55809d8911f0a2c479d99770624deb07a71a974 (diff)
downloadmariadb-git-201412da7571f5078dae6cdb2067f64a3de5bef8.tar.gz
Trivial manual merge
sql/sql_class.h: Auto merged sql/sql_lex.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_yacc.yy: Auto merged
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 11a9e88bdd6..b6b99a9f717 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -667,10 +667,10 @@ void Item_param::set_double(double value)
}
-void Item_param::set_value(const char *str, uint length)
+void Item_param::set_value(const char *str, uint length, CHARSET_INFO *ci)
{
DBUG_ENTER("Item_param::set_value");
- str_value.copy(str,length,default_charset());
+ str_value.copy(str,length,ci);
item_type= STRING_ITEM;
value_is_set= 1;
maybe_null= 0;
@@ -678,6 +678,11 @@ void Item_param::set_value(const char *str, uint length)
DBUG_VOID_RETURN;
}
+void Item_param::set_value(const char *str, uint length)
+{
+ set_value(str, length, default_charset());
+}
+
void Item_param::set_time(TIME *tm, timestamp_type type)
{
@@ -1558,7 +1563,7 @@ bool Item::send(Protocol *protocol, String *buffer)
}
case MYSQL_TYPE_TINY:
{
- longlong nr;
+ longlong nr;
nr= val_int();
if (!null_value)
result= protocol->store_tiny(nr);