for (var ai=0; ai<that.result.rows.length;ai++) {
  if (!(that.instance.attribnames[that.result.rows[ai][0])) {
    var a = {};
    a.attid = null;
    a.attname = that.result.rows[ai][0];
    a.attsval = null;
    a.attnval = null;
    a.attbval = null;
    this.instance.attributes.push(a);
  }
}