diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-07-23 01:59:43 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-07-23 01:59:43 +0300 |
commit | 9e95f76000b1ae66a9fbfa8a8ccc40137579752b (patch) | |
tree | 3145fd6dcdc60ae506f340a9ed932878cb49cfb7 /innobase/include | |
parent | 8f09b7053b16f4fe1458012a4367b883d5933b1e (diff) | |
download | mariadb-git-9e95f76000b1ae66a9fbfa8a8ccc40137579752b.tar.gz |
univ.i:
Fix a bug in the storage of the SQL NULL value in 64-bit computers: the value code must fit in 32 bits
innobase/include/univ.i:
Fix a bug in the storage of the SQL NULL value in 64-bit computers: the value code must fit in 32 bits
Diffstat (limited to 'innobase/include')
-rw-r--r-- | innobase/include/univ.i | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/innobase/include/univ.i b/innobase/include/univ.i index e7d93a594c1..4c1ca929aa8 100644 --- a/innobase/include/univ.i +++ b/innobase/include/univ.i @@ -204,8 +204,12 @@ headers may define 'bool' differently. Do not assume that 'bool' is a ulint! */ #endif /* The following number as the length of a logical field means that the field -has the SQL NULL as its value. */ -#define UNIV_SQL_NULL ULINT_UNDEFINED +has the SQL NULL as its value. NOTE that because we assume that the length +of a field is a 32-bit integer when we store it, for example, to an undo log +on disk, we must have also this number fit in 32 bits, also in 64-bit +computers! */ + +#define UNIV_SQL_NULL ULINT32_UNDEFINED /* Lengths which are not UNIV_SQL_NULL, but bigger than the following number indicate that a field contains a reference to an externally |