mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 11:42:27 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@208052 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -120,10 +120,12 @@ static char *cli_realtime_update2(struct ast_cli_entry *e, int cmd, struct ast_c
|
|||||||
e->command = "realtime update2";
|
e->command = "realtime update2";
|
||||||
e->usage =
|
e->usage =
|
||||||
"Usage: realtime update2 <family> <colmatch> <valuematch> [... <colmatch5> <valuematch5>] NULL <colupdate> <newvalue>\n"
|
"Usage: realtime update2 <family> <colmatch> <valuematch> [... <colmatch5> <valuematch5>] NULL <colupdate> <newvalue>\n"
|
||||||
" Update a single variable using the RealTime driver.\n"
|
" Update a single variable, requiring one or more fields to match using the\n"
|
||||||
" You must supply a family name, a column to update on, a new value, column to match, and value to match.\n"
|
" RealTime driver. You must supply a family name, a column to update, a new\n"
|
||||||
" Ex: realtime update sipfriends name bobsphone port 4343\n"
|
" value, and at least one column and value to match.\n"
|
||||||
" will execute SQL as UPDATE sipfriends SET port = 4343 WHERE name = bobsphone\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;
|
return NULL;
|
||||||
case CLI_GENERATE:
|
case CLI_GENERATE:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user