MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DbinfoScan.cpp
1 /*
2  Copyright 2010 Sun Microsystems, Inc.
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/DbinfoScan.hpp>
20 
21 bool
22 printDBINFO_SCAN(FILE* output, const Uint32* theData, Uint32 len, Uint16)
23 {
24  const DbinfoScan* sig = (const DbinfoScan*)theData;
25  fprintf(output, " resultData: 0x%x", sig->resultData);
26  fprintf(output, " transid: { 0x%x, 0x%x}", sig->transId[0], sig->transId[1]);
27  fprintf(output, " resultRef: 0x%x", sig->resultRef);
28  fprintf(output, "\n");
29  fprintf(output, " tableId: %u", sig->tableId);
30  fprintf(output, " colBitmap: { 0x%x, 0x%x }",
31  sig->colBitmap[0], sig->colBitmap[1]);
32  fprintf(output, " requestInfo: 0x%x", sig->requestInfo);
33  fprintf(output, "\n");
34  fprintf(output, " maxRows: %u", sig->maxRows);
35  fprintf(output, " maxBytes: %u", sig->maxBytes);
36  fprintf(output, "\n");
37  fprintf(output, " returnedRows: %u", sig->returnedRows);
38  fprintf(output, "\n");
39  fprintf(output, " cursor_sz: %u\n", sig->cursor_sz);
40  const Uint32* cursor_data = DbinfoScan::getCursorPtr(sig);
41  fprintf(output, " senderRef: 0x%x saveSenderRef: 0x%x\n",
42  cursor_data[0], cursor_data[1]);
43  fprintf(output, " currRef: 0x%x saveCurrRef: 0x%x flags: 0x%x\n",
44  cursor_data[2], cursor_data[3], cursor_data[4]);
45  fprintf(output, " data: [ 0x%x, 0x%x, 0x%x, 0x%x ]\n",
46  cursor_data[5], cursor_data[6], cursor_data[7], cursor_data[8]);
47  fprintf(output, " totalRows: %u totalBytes: %u\n",
48  cursor_data[9], cursor_data[10]);
49  return true;
50 }
51 
52 bool printDBINFO_SCAN_REF(FILE* output, const Uint32* theData, Uint32 len, Uint16)
53 {
54  const DbinfoScanRef* sig = (const DbinfoScanRef*)theData;
55  fprintf(output, " resultData: 0x%x", sig->resultData);
56  fprintf(output, " transid: { 0x%x, 0x%x}", sig->transId[0], sig->transId[1]);
57  fprintf(output, " resultRef: 0x%x", sig->resultRef);
58  fprintf(output, "\n");
59  fprintf(output, " errorCode: %u", sig->errorCode);
60  fprintf(output, "\n");
61  return true;
62 }