15 Aug
2008
15 Aug
'08
3:37 p.m.
Hi, i observed that mod_spidermonkey_odbc function numRows has been returning me number of columns rather than rows. Looking deep revealed following: file : freeswitch-1.0.1/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c * static JSBool odbc_num_rows(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval) { .......... .......... if (odbc_obj->stmt) { SQLNumResultCols(odbc_obj->stmt, &rows); } ..... .........* I suppose the fn call in bold above might be problematic. Has anyone else countered it before ?I will try to resolve and put the patch if resolved. Thanks, ashutosh