that.query.instance.attributes = new Array();
for (var ri=0; ri<that.results[0].rows.length; ri++) {
  var a = {};
  a.attid = that.result.rows[ri][0];
  a.attname =  that.result.rows[ri][1];
  a.atypeid =  that.result.rows[ri][2];
  a.attdesc =  that.result.rows[ri][3];
  a.attsval =   that.result.rows[ri][4];
  a.attnval =   that.result.rows[ri][5];
  a.attbval =   that.result.rows[ri][6];
  that.query.instance.attributes.push(a);
  that.query.instance.attribnames[a.attname]=that.query.instance.attributes.length;
}