lua中遍历取不到第一条数据,求解?

代码如下:

cur = conn:execute("select * from tbl_chargeprocessdata")
  row = cur:fetch({},"a")
  while row do
      list={} 
      var = string.format("%d %s\n", row.EquipmentId, row.RFID,row.State,row.VoltageValue,row.CurrentValue,row.Capacity,    row.SampleTime,row.ErrorMessage,row.ErrorTime,row.ChannelNo) 
      row = cur:fetch(row,"a")
      list={row}
      --print_r(list)
end
    print_r(list)

应该是取到了,但是被后面的结果集覆盖。