diff options
author | konstantin@mysql.com <> | 2006-03-30 00:20:13 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2006-03-30 00:20:13 +0400 |
commit | 38bd424afaec948f11da1a70f36a02381850bc0a (patch) | |
tree | 83ff09555ad8faa189a27ec3b62c92e69796bfdd /sql/field.h | |
parent | 2dfb139c0818762c8ebf5ddd6f8fc04dd2ec3e9f (diff) | |
parent | 41a895a1ce69c26bf30fee13cbccd8c7a0b02187 (diff) | |
download | mariadb-git-38bd424afaec948f11da1a70f36a02381850bc0a.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/opt/local/work/mysql-5.0-15683
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index e8dd7f05f99..f53227e5fd6 100644 --- a/sql/field.h +++ b/sql/field.h @@ -320,6 +320,12 @@ public: /* convert decimal to longlong with overflow check */ longlong convert_decimal2longlong(const my_decimal *val, bool unsigned_flag, int *err); + /* The max. number of characters */ + inline uint32 Field::char_length() const + { + return field_length / charset()->mbmaxlen; + } + friend bool reopen_table(THD *,struct st_table *,bool); friend int cre_myisam(my_string name, register TABLE *form, uint options, ulonglong auto_increment_value); |