No subject
Fri May 2 19:13:14 EDT 2003
switch in sybase.c and letting dbconvert() take care of it. You could do
the same with reals:
/*case SYBFLT8:*/
case SYBREAL: {
result->value.dval = (double) floatcol(offset);
result->type = IS_DOUBLE;
break;
}
becomes:
/*case SYBFLT8:*/
/*
** floatcol() mangles the 4byte reals, so let dbconvert handle it -- bsb
case SYBREAL: {
result->value.dval = (double) floatcol(offset);
result->type = IS_DOUBLE;
break;
}
*/
Unfornately, that runs into a second problem of extraneous text trailing
the number, which I don't have time to look at right now.
I'll try to look at it more tonight and get a patch together for the php
folks.
Brian
On Mon, 3 Apr 2000, Jamie Steffen wrote:
> All's well on this front aside from one minor exception. When a query from
> our SQL database (v.6.5) is made from a field of type:REAL the return is
> always '0'. Has anyone come across this issue or is anyone aware of it? All
> other queries made return the correct results.
More information about the FreeTDS
mailing list