diff options
author | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-01-19 19:16:30 +0400 |
---|---|---|
committer | unknown <bar@bar.intranet.mysql.r18.ru> | 2004-01-19 19:16:30 +0400 |
commit | 162f1dc5e6f8cd24ec996aa701a50bf20b8f6a36 (patch) | |
tree | f567782e8ab2357e9f089387fcb0d454a6a02ce3 /sql/item.h | |
parent | d89fd8281bb6795da5d897561fb19e19a631ce0e (diff) | |
download | mariadb-git-162f1dc5e6f8cd24ec996aa701a50bf20b8f6a36.tar.gz |
UCS-2 aligning 0xAA -> 0x00AA
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h index 5def1e2b710..e6ed8109534 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; |