[asterisk-bugs] [JIRA] (ASTERISK-21794) CLI command 'realtime update2' syntax failure when using according to usage help

Rusty Newton (JIRA) noreply at issues.asterisk.org
Wed May 22 18:55:01 CDT 2013


    [ https://issues.asterisk.org/jira/browse/ASTERISK-21794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=206729#comment-206729 ] 

Rusty Newton commented on ASTERISK-21794:
-----------------------------------------

Well it looks like a dev needs to look into the syntax failure and then also look at the code to see if its expected that you can't write the NULL or DEFAULT values using update2. The documentation doesn't tell us. This may be undefined behavior.

Acknowledging this and setting to open.
                
> CLI command 'realtime update2' syntax failure when using according to usage help
> --------------------------------------------------------------------------------
>
>                 Key: ASTERISK-21794
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-21794
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_realtime
>    Affects Versions: 1.8.21.0
>         Environment: kernel 2.6.32-279.22.1.el6.centos.plus.x86_64 #1 SMP Wed Feb 6 05:16:56 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Cedric BASSAGET
>            Assignee: Cedric BASSAGET
>            Severity: Minor
>
> It seems it's not possible to reset a field froma mysql database to it's default value or tu NULL value with update2 :
> CLI> realtime update2 sippeers name 100 deny "NULL" <- writes "NULL" as string in the field
> CLI> realtime update2 sippeers name 100 deny NULL <- writes NULL as string in the field
> CLI> realtime update2 sippeers name 100 deny DEFAULT <- writes DEFAULT as string in the field
> Regards,
> Cédric

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list