summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <bar@bar.intranet.mysql.r18.ru>2004-01-19 19:21:07 +0400
committerunknown <bar@bar.intranet.mysql.r18.ru>2004-01-19 19:21:07 +0400
commite4faf73d4759006fe3a25e3780fa1657a9b52354 (patch)
treea1eecf4ee4bf094ad33b89a350deceafceb2fd71 /sql/item.h
parent5c57c6ce2edde35837e9ef8e26e66dff5be6b2a8 (diff)
parentfb9927260ebcbb87eeee290039ca0c5dcbf6119e (diff)
downloadmariadb-git-e4faf73d4759006fe3a25e3780fa1657a9b52354.tar.gz
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into bar.intranet.mysql.r18.ru:/usr/home/bar/mysql-4.1 sql/item.h: Auto merged
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index 5917a0dc95e..e7ccdb7ea12 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -477,7 +477,7 @@ public:
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
{
collation.set(cs, dv);
- str_value.set(str,length,cs);
+ str_value.set_or_copy_aligned(str,length,cs);
/*
We have to have a different max_length than 'length' here to
ensure that we get the right length if we do use the item
@@ -493,7 +493,7 @@ public:
CHARSET_INFO *cs, Derivation dv= DERIVATION_COERCIBLE)
{
collation.set(cs, dv);
- str_value.set(str,length,cs);
+ str_value.set_or_copy_aligned(str,length,cs);
max_length= str_value.numchars()*cs->mbmaxlen;
set_name(name_par,0,cs);
decimals=NOT_FIXED_DEC;