Sat Sep 22 06:33:06 2012

Asterisk developer's documentation


see

Helper function for pgsql_exec. For running querys, use pgsql_exec() Connect if not currently connected. Run the given query.

Parameters:
database database name we are connected to (used for error logging)
tablename table name we are connected to (used for error logging)
sql sql query string to execute
result pointer for where to store the result handle
Returns:
-1 on fatal query error

-2 on query failure that resulted in disconnection

0 on success

pgsql_exec for full example


Generated on Sat Sep 22 06:33:06 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6