summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2014-10-22 19:47:05 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2014-10-22 19:58:50 +0200
commitaf93dc48cffdc9a071e3ec6e1fe51f1d7d06686b (patch)
tree938d7fa8cbefa67161d50172ff962a842904d71c /sql/item.h
parentc3db4459561bc491582bef6bea7b83e9fe464a10 (diff)
downloadmariadb-git-bb-set-statement.tar.gz
MDEV-5231: Per query variables from Percona Server (rewritten)bb-set-statement
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
}
+
};