Skip to Content.
Sympa Menu

freetds - RE: [freetds] Need Help on dblib program

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Steven J. Backus" <backus AT math.utah.edu>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Need Help on dblib program
  • Date: Wed, 30 Jul 2003 14:29:35 -0600 (MDT)

> 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




Archive powered by MHonArc 2.6.24.

Top of Page