Drizzled Public API Documentation

rem0types.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3 Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
4 
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.
8 
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.
12 
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., 51 Franklin
15 St, Fifth Floor, Boston, MA 02110-1301 USA
16 
17 *****************************************************************************/
18 
19 /********************************************************************/
26 #pragma once
27 #ifndef rem0types_h
28 #define rem0types_h
29 
30 /* We define the physical record simply as an array of bytes */
31 typedef byte rec_t;
32 
33 /* Maximum values for various fields (for non-blob tuples) */
34 #define REC_MAX_N_FIELDS (1024 - 1)
35 #define REC_MAX_HEAP_NO (2 * 8192 - 1)
36 #define REC_MAX_N_OWNED (16 - 1)
37 
38 /* REC_MAX_INDEX_COL_LEN is measured in bytes and is the maximum
39 indexed column length (or indexed prefix length). It is set to 3*256,
40 so that one can create a column prefix index on 256 characters of a
41 TEXT or VARCHAR column also in the UTF-8 charset. In that charset,
42 a character may take at most 3 bytes.
43 This constant MUST NOT BE CHANGED, or the compatibility of InnoDB data
44 files would be at risk! */
45 #define REC_MAX_INDEX_COL_LEN 1024
46 
47 #endif