MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CreateTable.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/CreateTable.hpp>
17 
18 bool
19 printCREATE_TABLE_REQ(FILE* output, const Uint32* theData, Uint32 len, Uint16)
20 {
21  const CreateTableReq* sig = (const CreateTableReq*)theData;
22  fprintf(output, " clientRef: 0x%x", sig->clientRef);
23  fprintf(output, " clientData: %u", sig->clientData);
24  fprintf(output, " requestInfo: %x", sig->requestInfo);
25  fprintf(output, " transId: 0x%x", sig->transId);
26  fprintf(output, " transKey: %u", sig->transKey);
27  fprintf(output, "\n");
28  return true;
29 }
30 
31 bool
32 printCREATE_TABLE_CONF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
33 {
34  const CreateTableConf* sig = (const CreateTableConf*)theData;
35  fprintf(output, " senderRef: 0x%x", sig->senderRef);
36  fprintf(output, " clientData: %u", sig->clientData);
37  fprintf(output, " transId: 0x%x", sig->transId);
38  fprintf(output, "\n");
39  fprintf(output, " tableId: %u", sig->tableId);
40  fprintf(output, " tableVersion: %u", sig->tableVersion);
41  fprintf(output, "\n");
42  return true;
43 }
44 
45 bool
46 printCREATE_TABLE_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
47 {
48  const CreateTableRef* sig = (const CreateTableRef*)theData;
49  fprintf(output, " senderRef: 0x%x", sig->senderRef);
50  fprintf(output, " clientData: %u", sig->clientData);
51  fprintf(output, " transId: 0x%x", sig->transId);
52  fprintf(output, "\n");
53  fprintf(output, " errorCode: %u", sig->errorCode);
54  fprintf(output, " errorLine: %u", sig->errorLine);
55  fprintf(output, " errorNodeId: %u", sig->errorNodeId);
56  fprintf(output, " masterNodeId: %u", sig->masterNodeId);
57  fprintf(output, "\n");
58  fprintf(output, " errorStatus: %u", sig->errorStatus);
59  fprintf(output, " errorKey: %u", sig->errorKey);
60  fprintf(output, "\n");
61  return true;
62 }