MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DropTrig.cpp
1 /*
2  Copyright (C) 2003, 2005-2007 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 #include <signaldata/DropTrig.hpp>
20 
21 bool
22 printDROP_TRIG_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
23 {
24  const DropTrigReq* sig = (const DropTrigReq*)theData;
25  fprintf(output, " clientRef: 0x%x", sig->clientRef);
26  fprintf(output, " clientData: %u", sig->clientData);
27  fprintf(output, "\n");
28  fprintf(output, " transId: %u", sig->transId);
29  fprintf(output, " transKey: %u", sig->transKey);
30  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
31  fprintf(output, "\n");
32  fprintf(output, " tableId: %u", sig->tableId);
33  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
34  fprintf(output, " indexId: %u", sig->indexId);
35  fprintf(output, " indexVersion: 0x%x", sig->indexVersion);
36  fprintf(output, " triggerNo: %u", sig->triggerNo);
37  fprintf(output, "\n");
38  fprintf(output, " triggerId: %u", sig->triggerId);
39  fprintf(output, "\n");
40  return true;
41 }
42 
43 bool
44 printDROP_TRIG_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
45 {
46  const DropTrigConf* sig = (const DropTrigConf*) theData;
47  fprintf(output, " senderRef: 0x%x", sig->senderRef);
48  fprintf(output, " clientData: %u", sig->clientData);
49  fprintf(output, "\n");
50  fprintf(output, " tableId: %u", sig->tableId);
51  fprintf(output, " indexId: %u", sig->indexId);
52  fprintf(output, " triggerId: %u", sig->triggerId);
53  fprintf(output, "\n");
54  return true;
55 }
56 
57 bool
58 printDROP_TRIG_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
59 {
60  const DropTrigRef * sig = (const DropTrigRef*) theData;
61  fprintf(output, " senderRef: 0x%x", sig->senderRef);
62  fprintf(output, " clientData: %u", sig->clientData);
63  fprintf(output, " transId: 0x%x", sig->transId);
64  fprintf(output, "\n");
65  fprintf(output, " tableId: %u", sig->tableId);
66  fprintf(output, " indexId: %u", sig->indexId);
67  fprintf(output, " triggerId: %u", sig->triggerId);
68  fprintf(output, "\n");
69  fprintf(output, " errorCode: %u", sig->errorCode);
70  fprintf(output, " errorLine: %u", sig->errorLine);
71  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
72  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
73  fprintf(output, "\n");
74  return true;
75 }