19 #include <ndb_global.h>
20 #include "NDBT_ResultRow.hpp"
22 #include <NdbSchemaCon.hpp>
25 char attrib_delimiter)
31 names =
new char * [cols];
34 for(
int i = 0;
i<cols;
i++){
35 names[
i] =
new char[255];
39 ad[0] = attrib_delimiter;
44 NDBT_ResultRow::~NDBT_ResultRow(){
45 for(
int i = 0;
i<cols;
i++){
51 for(
int i = 0;
i<cols;
i++)
58 NDBT_ResultRow::attributeStore(
int i){
64 NDBT_ResultRow::attributeStore(
int i)
const {
70 NDBT_ResultRow::attributeStore(
const char*
name)
const {
71 for(
int i = 0;
i<cols;
i++){
72 if (strcmp(names[
i], name) == 0)
80 NDBT_ResultRow::header (NdbOut & out)
const {
81 for(
int i = 0;
i<cols;
i++){
94 for(
int i = 0;
i<cols;
i++){
95 if(data[
i]->isNULL()){
99 Uint32* p = (Uint32*)data[
i]->aRef();
101 for (Uint32 j = 0; j < sizeInBytes; j+=(
sizeof(Uint32))){
103 if (j + 4 < sizeInBytes)
105 sprintf(buf,
"%.8x", *p);
110 memcpy(&tmp, p, sizeInBytes - j);
111 sprintf(buf,
"%.8x", tmp);
115 if ((j +
sizeof(Uint32)) < sizeInBytes)
133 ndbout << *(res.data[0]);
134 for(
int i = 1;
i<res.cols;
i++)
135 ndbout << res.ad << *(res.data[
i]);
144 row->m_ownData =
true;
146 for(Uint32
i = 0;
i < noOfColumns;
i++){
147 row->data[
i] = data[
i]->
clone();
157 return c_str() == other.c_str();