我用rf链接数据库,用query查询数据
select RETURN_SEQ from abc where id=9609226
查出的数据显示是 [ (Decimal('1'), ) ]
数据库里是:1
如果直接赋给变量的话就会是下面的情况
Starting test: Sfjconsole.Sfjtransmanage.cpQuerytransaction
20160219 15:53:41.515 : INFO : 'DSN=robotDB64'
20160219 15:53:41.743 : INFO : ok
20160219 15:53:41.751 : INFO : @{result} = [ (Decimal('1'), ) ]
20160219 15:53:41.754 : FAIL : '(Decimal('1'), )' cannot be converted to a floating point number: TypeError: float() argument must be a string or a number
Ending test: Sfjconsole.Sfjtransmanage.cpQuerytransaction