aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_config_odbc.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-22 03:29:03 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-22 03:29:03 +0000
commitea12ee2c58f210ffaf46c48f8673ed06b6022e97 (patch)
tree517b7264c85449ccb91ddad5a878ffbf33286d47 /res/res_config_odbc.c
parent4692a24b4d1c697a767c53542fe76bd7d7e64425 (diff)
report the number of rows updated when using RealTime update method (bug #4066)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5496 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_odbc.c')
-rwxr-xr-xres/res_config_odbc.c5
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;
}