[freetds] Need Help on dblib program
Steven J. Backus
backus at math.utah.edu
Wed Jul 30 15:29:35 EDT 2003
> Steven, I tried replacing your dbnextrow() loop with:
>
> dbprhead(dbproc);
> dbprrow(dbproc);
>
> and got a fine result set:
>
> id did dmonth dday dyear dage orderinlist
> i1 i2 i3 i4 i5 family
> ----------- ----------- ----------- ----------- ----------- ---- -----------
> ---- ---- ---- ---- ---- ------
> 176936 300004 2 5 1904 79 1
> NULL NULL NULL NULL I64 Y
I get:
id did dmonth dday dyear dage orderinlist i1 i2 i3 i4 i5 family
----------- ----------- ----------- ----------- ----------- ---- ----------- ---- ---- ---- ---- ---- ------
176936 300004 2 5 1904 79 1 NULL NULL NULL NULL I64TY Y
That "TY" in there is mighty suspicious looking. Using gdb I get:
(gdb) print i5
$1 = "\00064\000"
Steve
More information about the FreeTDS
mailing list