#ifndef __row2_hh__
#define __row2_hh__

#include <string>
#include "row1.hh"
#include "result2.hh"

inline Row::size_type Row::size() const {return res->num_fields();}

inline const ColData Row::operator [] (size_type i) const {
  return ColData(data[i].c_str(), res->types(i),is_nulls[i]);
}

inline const ColData Row::operator[] (const std::string &i) const {
  return (*this)[res->field_num(i)];
}

inline const ColData Row::operator[] (const char *i) const {
  return (*this)[res->field_num(std::string(i))];
}

// RowTemplate

#endif










