MODLANG-10 Modify Javascript exec function to return number of changed rows, thanks Dale.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4921 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2007-04-12 18:22:09 +00:00
parent 12c47bf96f
commit 50b5fe43a2
3 changed files with 15 additions and 2 deletions
+5
View File
@@ -457,6 +457,11 @@ SWITCH_DECLARE(void) switch_core_db_free_table(char **result);
*/
SWITCH_DECLARE(void) switch_core_db_free(char *z);
/**
* Call this routine to find the number of rows changed by the last statement.
*/
SWITCH_DECLARE(int) switch_core_db_changes(switch_core_db_t *db);
/** Return values for switch_core_db_exec() and switch_core_db_step()*/
#define SWITCH_CORE_DB_OK 0 /* Successful result */
/* beginning-of-error-codes */