关于selectblob的问题

jjllwanjilong 2003-05-08 03:20:49
我的数据库环境为sybase 11.92 + win2000 + pb6.5
在数据库连接后运行以下代码
INT I
STRING A
BLOB BL1
FOR I = 1 TO DW_1.ROWCOUNT()
A = DW_1.GETITEMSTRING(I,1)
sqlca.autocommit = true
SELECTblob filedata INTO :BL1 FROM sbf_program where filename = :A using sqlca;
sqlca.autocommit = false
if isnull(bl1) then
messagebox('','error' + sqlca.SQLErrText )
else
messagebox(string(LEN(bl1)),A)
end if
setnull(BL1)
NEXT


有时正常,有时出错,提示如下:
ct_close():network packet layer:internal netlibrary error:net-library operation terminated due to disconnect
请问那位能够解答
...全文
47 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
jjllwanjilong 2003-05-08
  • 打赏
  • 举报
回复
不是这个原因,原来没有这两条语句的,后来因为读不出来才加上去的,我感觉与上述autocommit无关,这部分程序在aix+sybase + win2000上正常.
juwuyi 2003-05-08
  • 打赏
  • 举报
回复
INT I
STRING A
BLOB BL1
FOR I = 1 TO DW_1.ROWCOUNT()
A = DW_1.GETITEMSTRING(I,1)
//sqlca.autocommit = true
SELECTblob filedata INTO :BL1 FROM sbf_program where filename = :A using sqlca;
//sqlca.autocommit = false
if SQLCA.SQLCode <> 0 then
MessageBox("SQL error",SQLCA.SQLErrText,Information!)
end if
setnull(BL1)
NEXT

1,108

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧