drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
rem0types.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (C) 1994, 2009, Innobase Oy. All Rights Reserved.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License as published by the Free Software
7Foundation; version 2 of the License.
8
9This program is distributed in the hope that it will be useful, but WITHOUT
10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License along with
14this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15St, Fifth Floor, Boston, MA 02110-1301 USA
16
17*****************************************************************************/
18
19/********************************************************************/
25
26#pragma once
27#ifndef rem0types_h
28#define rem0types_h
29
30/* We define the physical record simply as an array of bytes */
31typedef 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
39indexed column length (or indexed prefix length). It is set to 3*256,
40so that one can create a column prefix index on 256 characters of a
41TEXT or VARCHAR column also in the UTF-8 charset. In that charset,
42a character may take at most 3 bytes.
43This constant MUST NOT BE CHANGED, or the compatibility of InnoDB data
44files would be at risk! */
45#define REC_MAX_INDEX_COL_LEN 1024
46
47#endif