MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AlterTable.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/AlterTable.hpp>
20 
21 bool
22 printALTER_TABLE_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
23 {
24  const AlterTableReq* sig = (const AlterTableReq*)theData;
25  fprintf(output, " clientRef: 0x%x", sig->clientRef);
26  fprintf(output, " clientData: %u", sig->clientData);
27  fprintf(output, " transId: 0x%x", sig->transId);
28  fprintf(output, " transKey: %u", sig->transKey);
29  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
30  fprintf(output, "\n");
31  fprintf(output, " tableId: %u", sig->tableId);
32  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
33  fprintf(output, " changeMask: 0x%x", sig->changeMask);
34  fprintf(output, "\n");
35  return true;
36 }
37 
38 bool
39 printALTER_TABLE_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
40 {
41  const AlterTableConf* sig = (const AlterTableConf*)theData;
42  fprintf(output, " senderRef: 0x%x", sig->senderRef);
43  fprintf(output, " clientData: %u", sig->clientData);
44  fprintf(output, " transId: 0x%x", sig->transId);
45  fprintf(output, "\n");
46  fprintf(output, " tableId: %u", sig->tableId);
47  fprintf(output, " tableVersion: 0x%x", sig->tableVersion);
48  fprintf(output, " newTableVersion: 0x%x", sig->newTableVersion);
49  fprintf(output, "\n");
50  return true;
51 }
52 
53 bool
54 printALTER_TABLE_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
55 {
56  const AlterTableRef* sig = (const AlterTableRef*)theData;
57  fprintf(output, " senderRef: 0x%x", sig->senderRef);
58  fprintf(output, " clientData: %u", sig->clientData);
59  fprintf(output, " transId: 0x%x", sig->transId);
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  fprintf(output, " errorStatus: %u", sig->errorStatus);
67  fprintf(output, " errorKey: %u", sig->errorKey);
68  fprintf(output, "\n");
69  return true;
70 }