使用informix c++编程时遇到的问题

gao277 2002-09-11 05:36:45
ITConnnection conn;
ITQuery query(conn);
ITSet *set;
set = query.ExecToSet("select first 30000 * from cdmsa");
执行第四句的时候会出现coredump,当把sql语句改成
select first 2000 * from cdmsa时没有任何问题,当然如果采用ec的方法更加没有问题,请问那位高手又没有遇到过这种问题?如何解决!

希望各位大家救火!要不然我就要被烧死了!help!help!help!


...全文
47 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
Last_Dodo 2002-09-12
  • 打赏
  • 举报
回复
I think the problem is the internal array is too big for the stack. It ends up stack overflow. Why cannot you split it to select the first 2000 then the next 1000 (I know the performance will be not as good as do it once but not too bad either)? Using host array can be very dangerous to the stack. I have seen problem even only use size of 300 host array on Oracle (yah, I know Oracle is fatty). Can you supply heap memory for it? I have not touched Informix for years (we dumped it several years ago and now only support Oracle).
maoxianwang 2002-09-11
  • 打赏
  • 举报
回复
informix sql这么写的???
honeybe 2002-09-11
  • 打赏
  • 举报
回复
奇怪啊,会coredump?
你debug一下试试看?
不会是在select 里处处错的
maoxianwang 2002-09-11
  • 打赏
  • 举报
回复
不知道你写的是什么

first 2000 *是啥,,

30000是啥??

不明白ing

69,336

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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