1
/*****************************************************************************
3
Copyright (c) 1994, 2009, Innobase Oy. All Rights Reserved.
5
This program is free software; you can redistribute it and/or modify it under
6
the terms of the GNU General Public License as published by the Free Software
7
Foundation; version 2 of the License.
9
This program is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
You should have received a copy of the GNU General Public License along with
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15
Place, Suite 330, Boston, MA 02111-1307 USA
17
*****************************************************************************/
19
/********************************************************************//**
20
@file include/rem0types.h
21
Record manager global types
23
Created 5/30/1994 Heikki Tuuri
24
*************************************************************************/
29
/* We define the physical record simply as an array of bytes */
32
/* Maximum values for various fields (for non-blob tuples) */
33
#define REC_MAX_N_FIELDS (1024 - 1)
34
#define REC_MAX_HEAP_NO (2 * 8192 - 1)
35
#define REC_MAX_N_OWNED (16 - 1)
37
/* REC_MAX_INDEX_COL_LEN is measured in bytes and is the maximum
38
indexed column length (or indexed prefix length). It is set to 3*256,
39
so that one can create a column prefix index on 256 characters of a
40
TEXT or VARCHAR column also in the UTF-8 charset. In that charset,
41
a character may take at most 3 bytes.
42
This constant MUST NOT BE CHANGED, or the compatibility of InnoDB data
43
files would be at risk! */
44
#define REC_MAX_INDEX_COL_LEN 768