Prayer

在一般中寻求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理
Quote:
Originally Posted by Dave Rush
I have a problem compiling my embedded sql:

db2 prep Dbprog.sqc bindfile gave me the following error.

172 SQL0008N The token "int" found in a host variable
declaration is not valid.


Is seems that the precompiler do not accept the int declarations, it accept only short or long. Is there a way to tell the precompiler to accept int variable like this

EXEC SQL BEGIN DECLARE SECTION;
int maj = 0;
int min = 0;
char pch = 0;
EXEC SQL END DECLARE SECTION;



Thanks
No, long and short only. I assume this is because "int" can be different things to different compilers, etc.

改成long确实就可以了。

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理