- 论坛徽章:
- 0
|
我试着这样: eval{ $db->ct_execute($sql);};
可还是会弹出错误的对话框!哪位还有别的解决方法?我想是不是要设置参数的问题,我看了Sybase::CTLib模块,有个参数SkipEED,描述是这样的If set, then I<Extended Error Data> will I<not> be fetched in error
handlers. The default is to fetch extended error data, which includes
things like the index name that caused a duplicate insert error, for
example.
我把SkipEED设置了还是不行
$db=new Sybase::CTlib 'sa', '123', 'mydb', undef,
{ CON_PROPS => { CS_SYB_CHARSET => 'iso-1' }
};
if($db==NULL) {
print "对不起,数据服务器连接失败,请联系系统管理员!";
exit;
}
$db->{SkipEED}=0; ##无论是0还是1都不行
$sql="insert into .....";
$db->ct_execute($sql); |
|