SQL Fetch error! ODBC connection to Oracle (can't bind)


#1

Hi!, am having this warning in Asterisk

May 25 10:46:57 WARNING[12294]: res_config_odbc.c:130 realtime_odbc: SQL Fetch error!
[SELECT * FROM iax_buddies WHERE name = ?]

does this mean it can’t bind the parameters?

in res_config_odbc.c

while((newparam = va_arg(ap, const char *))) {
                newval = va_arg(ap, const char *);
                SQLBindParameter(stmt, x++, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_CHAR, strlen(newval), 0, (void *)newval, 0, NULL);
        }

pls. help!