1
/* Copyright (C) 2003 MySQL AB
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software
14
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
16
#ifndef CREATE_TABLE_HPP
17
#define CREATE_TABLE_HPP
19
#include "SignalData.hpp"
24
* This signal is sent by API to DICT/TRIX
25
* as a request to create a secondary index
26
* and then from TRIX to TRIX(n) and TRIX to TC.
28
class CreateTableReq {
35
* Sender(s) / Reciver(s)
37
friend class NdbDictInterface;
44
friend bool printCREATE_TABLE_REQ(FILE*, const Uint32*, Uint32, Uint16);
47
STATIC_CONST( SignalLength = 2 );
53
SECTION( DICT_TAB_INFO = 0 );
56
class CreateTableRef {
63
* Sender(s) / Reciver(s)
66
friend class NdbDictInterface;
71
friend bool printCREATE_TABLE_REF(FILE *, const Uint32 *, Uint32, Uint16);
74
STATIC_CONST( SignalLength = 7 );
82
AttributeNameTooLong = 704,
83
TableNameTooLong = 705,
85
NoMoreTableRecords = 707,
86
NoMoreAttributeRecords = 708,
87
AttributeNameTwice = 720,
88
TableAlreadyExist = 721,
89
InvalidArraySize = 736,
90
ArraySizeTooBig = 737,
92
InvalidPrimaryKeySize = 739,
93
NullablePrimaryKey = 740,
96
InvalidTablespace = 755,
97
VarsizeBitfieldNotSupported = 757,
99
InvalidTablespaceVersion = 759,
100
OutOfStringBuffer = 773,
101
NoLoggingTemporaryTable = 778
114
Uint32 getErrorCode() const {
117
Uint32 getErrorLine() const {
122
class CreateTableConf {
129
* Sender(s) / Reciver(s)
131
friend class Ndbcntr;
132
friend class NdbDictInterface;
137
friend bool printCREATE_TABLE_REF(FILE *, const Uint32 *, Uint32, Uint16);
140
STATIC_CONST( SignalLength = 4 );