At 7:09 PM +0800 7/6/1999, Yanx wrote:
>I complied mysql on a mips platform.I used the egcs-1.0.2-9.
>there is a c++ program name field.cc.
>when I add some code like following in a function val_real():
>
>int32 j;
>printf("%d,%f\n",j,(double)j);
>
>Suggest j=1
>The output is :
>1,0.000000
>
>
>Why this happen?When I add those in a normal c++ program,the result is right.
>
>Does the mysql use another data-type translation?
That can't be the output you get because you didn't assign j any
value. Show us what your code *really* looks like.
--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/