|
是这样的,
1. 如果这样写检查语句,在If res.fields(seat_id)=0 Then这行会报“在对应所需名称或序数的集合中,未找到项目。"
sql="select seat_id from fm_seat where seat_id=3086"
Cmd.CommandText = sql
Set res = Cmd.Execute(sql)
If res.fields(seat_id)=0 Then
Reporter.ReportEvent micpass, "test","output"
else
Reporter.ReportEvent micfail, "testl","fail"
End If
2.如果按下面这样改写if 语句就会直接pass.但是实际上这个语句:select seat_id from fm_seat where seat_id=3086(查出来的seat_id肯定是3086),所以我觉得应该每次都应该返回失败的。
If seat_id=1 Then
Reporter.ReportEvent micpass, "test","output"
else
Reporter.ReportEvent micfail, "testl","fail"
End If |
|