[OpenSER-Users] Variable $rc

Iñaki Baz Castillo ibc at in.ilimit.es
Wed Jan 16 11:07:23 CET 2008


On Wednesday 16 January 2008 11:00:44 Henning Westerholt wrote:
> On Tuesday 15 January 2008, Douglas Garstang wrote:
> > What's the point of the pseudo variable $rc?
> >
> > If I use avp_db_query() with:
> > invalid SQL, then rc = -1.
> > database down: then rc = -1.
> > Everything fine... then rc = -1!!!
>
> Hi Douglas,
>
> i did a short look at the code, and it really should return 1 on success,
> as stated from Iñaki too. Strange.

I think that is the SQL query is not a SELECT then the reply is always -1 (but 
not sure of this, should try).


-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list