mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
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
This commit is contained in:
@@ -87,7 +87,7 @@ static int cli_update_realtime(int fd, int argc, char **argv) {
|
|||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_cli(fd, "Updated RealTime record.\n");
|
ast_cli(fd, "Updated %i RealTime record(s).\n", res);
|
||||||
|
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@@ -402,8 +402,9 @@ static int update_odbc(const char *database, const char *table, const char *keyf
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rowcount)
|
if (rowcount >= 0)
|
||||||
return 0;
|
return (int)rowcount;
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user