Browse code

Add some notes about the reply codes of avp_db_query.

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5502 689a6050-402a-0410-94f2-e92a70836424

Carsten Bock authored on 23/01/2009 12:08:29
Showing 1 changed files
... ...
@@ -525,6 +525,19 @@ avp_db_delete("$uuid","$avp(s:404fwd)/fwd_table");
525 525
 				</para>
526 526
 			</listitem>
527 527
 			</itemizedlist>
528
+			<para>The function delivers the following return-codes:</para>
529
+			<itemizedlist>
530
+			<listitem><para>
531
+			<emphasis>-1</emphasis> - An error occured while querying the database
532
+			(e.g. wrong SQL or database error)
533
+			</para></listitem>
534
+			<listitem><para>
535
+			<emphasis>1</emphasis> - Query was successful
536
+			</para></listitem>
537
+			<listitem><para>
538
+			<emphasis>2</emphasis> - Query was successful, but no rows where returned.
539
+			</para></listitem>
540
+			</itemizedlist>
528 541
 			<para>
529 542
 			This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
530 543
 			BRANCH_ROUTE, LOCAL_ROUTE and ONREPLY_ROUTE.