17
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23
23
#include <drizzled/item/basic_constant.h>
28
25
class Item_string :public Item_basic_constant
31
28
Item_string(const char *str,uint32_t length,
35
33
str_value.set_or_copy_aligned(str, length, cs);
38
36
We have to have a different max_length than 'length' here to
39
37
ensure that we get the right length if we do use the item
40
38
to create a new table. In this case max_length must be the maximum
42
40
divide the max_length with mbmaxlen).
44
42
max_length= str_value.numchars()*cs->mbmaxlen;