MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateTab.hpp
1 /*
2  Copyright (C) 2003, 2005-2008 MySQL AB
3  All rights reserved. Use is subject to license terms.
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; version 2 of the License.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef CREATE_TAB_HPP
20 #define CREATE_TAB_HPP
21 
22 #include "SignalData.hpp"
23 
25 {
26  STATIC_CONST( SignalLength = 6 );
27  STATIC_CONST( SignalLengthLDM = 6 + 11 );
28 
29  enum RequestType {
30  };
31 
32  Uint32 senderRef;
33  Uint32 senderData;
34  Uint32 tableId;
35  Uint32 tableVersion;
36  Uint32 requestType;
37  Uint32 gci;
38 
42  Uint32 noOfCharsets;
43  Uint32 tableType; // DictTabInfo::TableType
44  Uint32 primaryTableId; // table of index or RNIL
45  Uint32 tablespace_id; // RNIL for MM table
46  Uint32 forceVarPartFlag;
47  Uint32 noOfAttributes;
48  Uint32 noOfNullAttributes;
49  Uint32 noOfKeyAttr;
50  Uint32 checksumIndicator;
51  Uint32 GCPIndicator;
52  Uint32 extraRowAuthorBits;
53 
54  SECTION( DICT_TAB_INFO = 0 );
55  SECTION( FRAGMENTATION = 1 );
56 };
57 
58 struct CreateTabConf {
59  STATIC_CONST( SignalLength = 3 );
60 
61  Uint32 senderRef;
62  Uint32 senderData;
63 
64  union {
65  Uint32 lqhConnectPtr;
66  Uint32 tuxConnectPtr;
67  Uint32 tupConnectPtr;
68  };
69 };
70 
71 struct CreateTabRef {
72  STATIC_CONST( SignalLength = 6 );
73 
74  Uint32 senderRef;
75  Uint32 senderData;
76  Uint32 errorCode;
77  Uint32 errorLine;
78  Uint32 errorKey;
79  Uint32 errorStatus;
80 };
81 
87 {
88  Uint32 tableId;
89  Uint32 tableVersion;
90  Uint32 tableLogged;
91  Uint32 senderRef;
92  Uint32 tableType;
93  Uint32 senderData;
94  Uint32 noOfPrimaryKeys;
95  Uint32 singleUserMode;
96  Uint32 userDefinedPartition;
97  STATIC_CONST( SignalLength = 9 );
98 };
99 
101 {
102  Uint32 senderRef;
103  Uint32 senderData;
104  STATIC_CONST( SignalLength = 2 );
105 };
106 
107 #endif