aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_realtime.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-22 16:52:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-22 16:52:15 +0000
commit916e7602ec4817ec996b99ca272b88f7d21262e2 (patch)
tree323bd388619c28cda2a9169894f034b9572ae555 /res/res_realtime.c
parent0f1d9a130c48023707aca004c61dc593b76c3e48 (diff)
Merged revisions 208052 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r208052 | tilghman | 2009-07-22 11:49:42 -0500 (Wed, 22 Jul 2009) | 7 lines Clarify documentation on 'realtime update2' to show more than one condition. (closes issue #15357) Reported by: snuffy Patches: bug_fix_doc_update2.diff uploaded by snuffy (license 35) (slightly modified by me) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@208053 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_realtime.c')
-rw-r--r--res/res_realtime.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/res/res_realtime.c b/res/res_realtime.c
index 8f99bdbd9..1bafe52b7 100644
--- a/res/res_realtime.c
+++ b/res/res_realtime.c
@@ -120,10 +120,12 @@ static char *cli_realtime_update2(struct ast_cli_entry *e, int cmd, struct ast_c
e->command = "realtime update2";
e->usage =
"Usage: realtime update2 <family> <colmatch> <valuematch> [... <colmatch5> <valuematch5>] NULL <colupdate> <newvalue>\n"
- " Update a single variable using the RealTime driver.\n"
- " You must supply a family name, a column to update on, a new value, column to match, and value to match.\n"
- " Ex: realtime update sipfriends name bobsphone port 4343\n"
- " will execute SQL as UPDATE sipfriends SET port = 4343 WHERE name = bobsphone\n";
+ " Update a single variable, requiring one or more fields to match using the\n"
+ " RealTime driver. You must supply a family name, a column to update, a new\n"
+ " value, and at least one column and value to match.\n"
+ " Ex: realtime update sipfriends name bobsphone ipaddr 127.0.0.1 NULL port 4343\n"
+ " will execute SQL as\n"
+ " UPDATE sipfriends SET port='4343' WHERE name='bobsphone' and ipaddr='127.0.0.1'\n";
return NULL;
case CLI_GENERATE:
return NULL;