informix ESQL SAVEPOINT 问题
/*
创建保存点
保存点名字 poitname
*/
int savepoit()
{
printf("设置保存点");
EXEC SQL SAVEPOINT poitname;
printf("设置保存点");
if(sqlca.sqlcode)
{
printf("设置保存点失败[%d]", sqlca.sqlcode);
strcpy(g_pub_tx.reply, "S081");
return(-1);
}
#if 0
$savepoint poitname;
printf("设置保存点2");
if(sqlca.sqlcode)
{
printf("设置保存点失败[%d]", sqlca.sqlcode);
strcpy(g_pub_tx.reply, "S081");
return(-1);
}
#endif
return 0;
}
每次调用都产生core文件,为何:
Type 'help' for help.
[using memory image in core]
reading symbolic information ...
Segmentation fault in sqli_trans_set_svpt at 0x900000007858328 ($t1)
0x900000007858328 (sqli_trans_set_svpt+0x284) 901e0000 stw r0,0x0(r30)
(dbx) where
sqli_trans_set_svpt() at 0x900000007858328
savepoit() at 0x900000003395440
spWK05(), line 103 in "spWK05.c"
u_servmain(), line 275 in "u_servmain.c"
test_tx.main(argc = 0, argv = (nil)), line 84 in "test_tx.c"