aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-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;
}