19 #include <ndb_global.h> 
   23 #include <NDBT_Tables.hpp> 
   27 #include <NdbDictionary.hpp> 
   31 int main(
int argc, 
const char** argv)
 
   37   const char* _tableName = NULL;
 
   41       arg_integer, &_row, 
"The row number", 
"row" },
 
   43       arg_integer, &_primaryKey, 
"The primary key", 
"primarykey" },
 
   45       arg_flag, &_hex, 
"Print hex", 
"hex" }
 
   48   int num_args = 
sizeof(args) / 
sizeof(args[0]);
 
   51   if(getarg(args, num_args, argc, argv, &optind) || argv[optind] == NULL) {
 
   52     arg_printusage(args, num_args, argv[0], 
"table name\n");
 
   53     return NDBT_WRONGARGS;
 
   56   if (argv[optind] != NULL) 
 
   57     _tableName = argv[optind];
 
   63   g_info << 
"Table " << _tableName << endl
 
   64          << 
"Row: " << _row << 
", PrimaryKey: " << _primaryKey
 
   70     return NDBT_ProgramExit(NDBT_FAILED);
 
   72   Ndb* ndb = 
new Ndb(&con, 
"TEST_DB");
 
  104     if (conn->
execute(Commit) == 0)
 
  113           << 
"[" << c->
getType() << 
"]   ";       
 
  124         ndbout << (* a) << 
" ";
 
  130       g_info << 
"Failed to commit read transaction... "  
  142     g_info << 
"ERROR: Unable to connect to NDB, "