diff options
author | cmiller@zippy.cornsilk.net <> | 2008-04-09 12:27:30 -0400 |
---|---|---|
committer | cmiller@zippy.cornsilk.net <> | 2008-04-09 12:27:30 -0400 |
commit | 3e2457b71a902039d2edfbcd5ce2df01c04d1713 (patch) | |
tree | cc737f27b6e9b0186e0c967c48f6c8c4d57ee754 /sql/unireg.h | |
parent | 7a9f12e1c47fe85e4cae638ac5fb9180e2e83dcf (diff) | |
download | mariadb-git-3e2457b71a902039d2edfbcd5ce2df01c04d1713.tar.gz |
Follow-up to B-g#15776, test failures on 64-bit linux.
Make maximum blob size to be 2**32-1, regardless of word size.
Fix failure of timestamp with size of 2**31-1. The method of
rounding up to the nearest even number would overflow.
Diffstat (limited to 'sql/unireg.h')
-rw-r--r-- | sql/unireg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/unireg.h b/sql/unireg.h index 0ab2a40048b..24e57b4e584 100644 --- a/sql/unireg.h +++ b/sql/unireg.h @@ -60,7 +60,7 @@ #define MAX_MBWIDTH 3 /* Max multibyte sequence */ #define MAX_FIELD_CHARLENGTH 255 #define MAX_FIELD_VARCHARLENGTH 65535 -#define MAX_FIELD_BLOBLENGTH UINT_MAX +#define MAX_FIELD_BLOBLENGTH UINT_MAX32 /* cf field_blob::get_length() */ #define CONVERT_IF_BIGGER_TO_BLOB 512 /* Used for CREATE ... SELECT */ /* Max column width +1 */ |