MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropTrigImpl.cpp
1 /* Copyright (C) 2007 MySQL AB
2 
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.
6 
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.
11 
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
15 
16 #include <signaldata/DropTrigImpl.hpp>
17 
18 bool
19 printDROP_TRIG_IMPL_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
20 {
21  const DropTrigImplReq* sig = (const DropTrigImplReq*)theData;
22  fprintf(output, " senderRef: 0x%x", sig->senderRef);
23  fprintf(output, " senderData: %u", sig->senderData);
24  fprintf(output, " requestType: %u", sig->requestType);
25  fprintf(output, "\n");
26  fprintf(output, " tableId: %u", sig->tableId);
27  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
28  fprintf(output, " indexId: %u", sig->indexId);
29  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
30  fprintf(output, " triggerNo: %u", sig->triggerNo);
31  fprintf(output, "\n");
32  fprintf(output, " triggerId: %u", sig->triggerId);
33  fprintf(output, " triggerInfo: 0x%x", sig->triggerInfo);
34  fprintf(output, "\n");
35  return true;
36 }
37 
38 bool
39 printDROP_TRIG_IMPL_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
40 {
41  const DropTrigImplConf* sig = (const DropTrigImplConf*) theData;
42  fprintf(output, " senderRef: 0x%x", sig->senderRef);
43  fprintf(output, " senderData: %u", sig->senderData);
44  fprintf(output, "\n");
45  fprintf(output, " tableId: %u", sig->tableId);
46  fprintf(output, " triggerId: %u", sig->triggerId);
47  fprintf(output, "\n");
48  return true;
49 }
50 
51 bool
52 printDROP_TRIG_IMPL_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
53 {
54  const DropTrigImplRef * sig = (const DropTrigImplRef*) theData;
55  fprintf(output, " senderRef: 0x%x", sig->senderRef);
56  fprintf(output, " senderData: %u", sig->senderData);
57  fprintf(output, "\n");
58  fprintf(output, " tableId: %u", sig->tableId);
59  fprintf(output, " triggerId: %u", sig->triggerId);
60  fprintf(output, "\n");
61  fprintf(output, " errorCode: %u", sig->errorCode);
62  fprintf(output, " errorLine: %u", sig->errorLine);
63  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
64  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
65  fprintf(output, "\n");
66  return true;
67 }