summaryrefslogtreecommitdiff
path: root/sql/procedure.h
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2002-11-06 17:43:22 +0400
committerbar@bar.mysql.r18.ru <>2002-11-06 17:43:22 +0400
commit2434be61f8bdf32af2f42f8aa0d758e27b1fc98b (patch)
treeda00e60b2fd7b0ab3f00cdd758ad27aac80f49ce /sql/procedure.h
parent86b633379cdee7707b5dd69a3658e7ba1afa0946 (diff)
downloadmariadb-git-2434be61f8bdf32af2f42f8aa0d758e27b1fc98b.tar.gz
String->copy() now has a charset arg
Diffstat (limited to 'sql/procedure.h')
-rw-r--r--sql/procedure.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/procedure.h b/sql/procedure.h
index 3792d823b12..3434079a8fb 100644
--- a/sql/procedure.h
+++ b/sql/procedure.h
@@ -94,7 +94,7 @@ public:
enum_field_types field_type() const { return FIELD_TYPE_STRING; }
void set(double nr) { str_value.set(nr, 2, my_thd_charset); }
void set(longlong nr) { str_value.set(nr, my_thd_charset); }
- void set(const char *str, uint length) { str_value.copy(str,length); }
+ void set(const char *str, uint length) { str_value.copy(str,length, my_thd_charset); }
double val() { return atof(str_value.ptr()); }
longlong val_int() { return strtoll(str_value.ptr(),NULL,10); }
String *val_str(String*)