diff options
author | cmiller@zippy.cornsilk.net <> | 2008-04-10 15:55:37 -0400 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2008-04-10 15:55:37 -0400 |
commit | 82d8a99c057f51b72a1b0a0a386ef69209947b9c (patch) | |
tree | 8dea0ffba4db761540a174d33919c136c7795d54 /sql/item_create.cc | |
parent | 3c6591ad8f8cdc10d06b0ca8c1669d9fd14bd04b (diff) | |
download | mariadb-git-82d8a99c057f51b72a1b0a0a386ef69209947b9c.tar.gz |
Fix mismerge.
Diffstat (limited to 'sql/item_create.cc')
-rw-r--r-- | sql/item_create.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc index 6f3608b6b9a..c897b7aef79 100644 --- a/sql/item_create.cc +++ b/sql/item_create.cc @@ -531,7 +531,7 @@ Item *create_func_cast(Item *a, Cast_target cast_type, ulong decoded_size; errno= 0; decoded_size= strtoul(c_len, NULL, 10); - if (errno != 0) + if ((errno != 0) || (decoded_size > MAX_FIELD_BLOBLENGTH)) { my_error(ER_TOO_BIG_DISPLAYWIDTH, MYF(0), "cast as char", MAX_FIELD_BLOBLENGTH); return NULL; |