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

Sean Bright (JIRA) noreply at issues.asterisk.org
Mon Jan 13 12:49:26 CST 2020


     [ https://issues.asterisk.org/jira/browse/ASTERISK-21794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Bright updated ASTERISK-21794:
-----------------------------------

    Description: 
It seems it's not possible to reset a field from a mysql database to its default value or to {{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

  was:
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


> 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, 13.18.4
>         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
>            Severity: Minor
>
> It seems it's not possible to reset a field from a mysql database to its default value or to {{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



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list