Re: FW: Strange problem with data corruption
Bob Doan <[email protected]> Tue, 03 Jan 2006 16:17:18 -0500
| Newsgroups | gmane.text.rlib.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Brian, Can you try this patch and run the script from the CLI and tell me what output you get. - Bob On Tue, 2006-01-03 at 12:14 -0500, Brian Morton wrote: > I am using RLib as a php extension on a linux system. I am connecting to an > mssql datasource via odbc with the freetds odbc driver. All driver and > package versions are latest stable. When I execute this script, my data is > corrupted (funky chars, etc.), but differs each time. This leads me to > believe maybe I am using RLib wrong and it is trying to display some > resultset identifier or something else non-readable. Attached are my php > script and my xml. Am I doing everything right? If so, is there a charset > option I can specify somewhere, or some other option I can adjust to > diagnose this corrupt data problem? Thanks for the help RLibers.
odbc.patch
(text/x-patch, 518 B)
Index: odbc.c =================================================================== RCS file: /cvsroot/rlib/rlib/inputs/odbc/odbc.c,v retrieving revision 1.16 diff -u -r1.16 odbc.c --- odbc.c 19 Dec 2005 20:36:24 -0000 1.16 +++ odbc.c 3 Jan 2006 21:16:29 -0000 @@ -243,6 +243,7 @@ struct rlib_odbc_results *results = result_ptr; struct odbc_fields *the_field = field_ptr; gint field = the_field->col; + fprintf(stderr, "GET VALUE [%s]\n", results->values[field].value); return results->values[field].value; }