summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index ff0c786ab94..e006622dca2 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -2819,6 +2819,16 @@ protected:
fixed= 1;
}
public:
+ Item_string(CHARSET_INFO *csi, const char *str_arg, uint length_arg)
+ : m_cs_specified(FALSE)
+ {
+ collation.set(csi, DERIVATION_COERCIBLE);
+ set_name(NULL, 0, system_charset_info);
+ decimals= NOT_FIXED_DEC;
+ fixed= 1;
+ str_value.copy(str_arg, length_arg, csi);
+ max_length= str_value.numchars() * csi->mbmaxlen;
+ }
// Constructors with the item name set from its value
Item_string(const char *str, uint length, CHARSET_INFO *cs,
Derivation dv, uint repertoire)
@@ -2954,6 +2964,7 @@ public:
}
return MYSQL_TYPE_STRING; // Not a temporal literal
}
+
};