<div dir="ltr">Hi,<br> i observed that mod_spidermonkey_odbc function numRows has been returning me number of columns rather than rows. Looking deep revealed following:<br>file : freeswitch-1.0.1/src/mod/languages/mod_spidermonkey_odbc/mod_spidermonkey_odbc.c<br>
<i><br>static JSBool odbc_num_rows(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)<br>{<br>..........<br>..........<br> if (odbc_obj->stmt) {<br> <b>SQLNumResultCols(</b>odbc_obj->stmt, &rows); }<br>
.....<br>.........</i><br><br>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.<br><br>Thanks,<br>ashutosh<br></div>