[OpenSER-Devel] [ openser-Bugs-1954586 ] postgres: bogus error on empty avp_db_query

SourceForge.net noreply at sourceforge.net
Wed Apr 30 02:45:25 CEST 2008


Bugs item #1954586, was opened at 2008-04-29 20:38
Message generated for change (Comment added) made by osas
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1954586&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Nobody/Anonymous (nobody)
Summary: postgres: bogus error on empty avp_db_query

Initial Comment:
If a query is performed on a postgres db using the avp_db_query() and the query returns no rows, the following bogus error is printed on the logs:
ERROR:postgres:pg_convert_rows: no rows requested from the query
If the query is returning something, then no errors are printed out.


Regards,
Ovidiu Sas

----------------------------------------------------------------------

>Comment By: Ovidiu Sas (osas)
Date: 2008-04-29 20:45

Message:
Logged In: YES 
user_id=1395524
Originator: YES

dbase.c:pg_fetch_result() checks the number of rows before calling
pg_convert_rows()
db_res.c:pg_convert_result() doesn't check if the number of rows is 0
(only <0 check is performed) before calling pg_convert_rows()

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1954586&group_id=139143



More information about the Devel mailing list