~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/rem0types.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
 
19
/********************************************************************//**
 
20
@file include/rem0types.h
 
21
Record manager global types
 
22
 
 
23
Created 5/30/1994 Heikki Tuuri
 
24
*************************************************************************/
 
25
 
 
26
#ifndef rem0types_h
 
27
#define rem0types_h
 
28
 
 
29
/* We define the physical record simply as an array of bytes */
 
30
typedef byte    rec_t;
 
31
 
 
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)
 
36
 
 
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
 
45
 
 
46
#endif