MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateTable.hpp
1 /*
2  Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; version 2 of the License.
7 
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License
14  along with this program; if not, write to the Free Software
15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef CREATE_TABLE_HPP
19 #define CREATE_TABLE_HPP
20 
21 #include "SignalData.hpp"
22 
24  STATIC_CONST( SignalLength = 5 );
25 
26  union { Uint32 clientRef, senderRef; };
27  union { Uint32 clientData, senderData; };
28  Uint32 requestInfo;
29  Uint32 transId;
30  Uint32 transKey;
31 
32  SECTION( DICT_TAB_INFO = 0 );
33 };
34 
36  STATIC_CONST( SignalLength = 5 );
37 
38  Uint32 senderRef;
39  union { Uint32 clientData, senderData; };
40  Uint32 transId;
41  Uint32 tableId;
42  Uint32 tableVersion;
43 };
44 
46  STATIC_CONST( SignalLength = 9 );
47 
48  enum ErrorCode {
49  NoError = 0,
50  Busy = 701,
51  BusyWithNR = 711,
52  NotMaster = 702,
53  TooManySchemaOps = 783, //wl3600_todo move the 3 to DictSignal.hpp
54  InvalidTransKey = 781,
55  InvalidTransId = 782,
56  InvalidFormat = 703,
57  AttributeNameTooLong = 704,
58  TableNameTooLong = 705,
59  Inconsistency = 706,
60  NoMoreTableRecords = 707,
61  NoMoreAttributeRecords = 708,
62  AttributeNameTwice = 720,
63  TableAlreadyExist = 721,
64  InvalidArraySize = 736,
65  ArraySizeTooBig = 737,
66  RecordTooBig = 738,
67  InvalidPrimaryKeySize = 739,
68  NullablePrimaryKey = 740,
69  InvalidCharset = 743,
70  SingleUser = 299,
71  InvalidTablespace = 755,
72  VarsizeBitfieldNotSupported = 757,
73  NotATablespace = 758,
74  InvalidTablespaceVersion = 759,
75  OutOfStringBuffer = 773,
76  NoLoggingTemporaryTable = 778,
77  InvalidHashMap = 790,
78  TableDefinitionTooBig = 793,
79  FeatureRequiresUpgrade = 794
80  };
81 
82  Uint32 senderRef;
83  union { Uint32 clientData, senderData; };
84  Uint32 transId;
85  Uint32 errorCode;
86  Uint32 errorLine;
87  Uint32 errorNodeId;
88  Uint32 masterNodeId;
89  Uint32 errorStatus;
90  Uint32 errorKey;
91 
92  //wl3600_todo out
93  Uint32 getErrorCode() const {
94  return errorCode;
95  }
96  Uint32 getErrorLine() const {
97  return errorLine;
98  }
99 };
100 
101 #endif