diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-04-22 03:29:03 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-04-22 03:29:03 +0000 |
commit | c2ef8373c73cc56816ce00349a1b5fe7b1401ccd (patch) | |
tree | 517b7264c85449ccb91ddad5a878ffbf33286d47 /res | |
parent | 06de953fbc258431f0f161cba3026cb3a33e242b (diff) |
report the number of rows updated when using RealTime update method (bug #4066)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rwxr-xr-x | res/res_config_odbc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index cc31016d7..484741ec7 100755 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -402,8 +402,9 @@ static int update_odbc(const char *database, const char *table, const char *keyf return -1; } - if (rowcount) - return 0; + if (rowcount >= 0) + return (int)rowcount; + return -1; } |