MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropTrigImpl.hpp
1 /* Copyright (C) 2007 MySQL AB, 2008 Sun Microsystems, Inc.
2  All rights reserved. Use is subject to license terms.
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 Street, Fifth Floor, Boston, MA 02110-1301, USA */
16 
17 #ifndef DROP_TRIG_IMPL_HPP
18 #define DROP_TRIG_IMPL_HPP
19 
20 #include "SignalData.hpp"
21 
23  STATIC_CONST( SignalLength = 11 );
24  SECTION( TRIGGER_NAME_SECTION = 0 ); // optional
25 
26  Uint32 senderRef;
27  Uint32 senderData;
28  Uint32 requestType;
29  Uint32 tableId;
30  Uint32 tableVersion;
31  Uint32 indexId;
32  Uint32 indexVersion;
33  Uint32 triggerNo;
34  Uint32 triggerId;
35  Uint32 triggerInfo;
36  Uint32 receiverRef;
37 };
38 
40  STATIC_CONST( SignalLength = 4 );
41 
42  Uint32 senderRef;
43  Uint32 senderData;
44  Uint32 tableId;
45  Uint32 triggerId;
46 };
47 
49  enum ErrorCode {
50  NoError = 0,
51  Busy = 701,
52  TriggerNotFound = 4238,
53  BadRequestType = 4247,
54  InvalidName = 4248,
55  InconsistentTC = 293
56  };
57 
58  STATIC_CONST( SignalLength = 8 );
59 
60  Uint32 senderRef;
61  Uint32 senderData;
62  Uint32 tableId;
63  Uint32 triggerId;
64  Uint32 errorCode;
65  Uint32 errorLine;
66  Uint32 errorNodeId;
67  Uint32 masterNodeId;
68 };
69 
70 #endif