Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#501 : dbtext - send empty string in non-null

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#501 - dbtext - send empty string in non-null

Attached to Project: sip-router
Opened by Olle Johansson (oej) - Monday, 08 December 2014, 12:28 GMT
Task Type Bug Report
Category Core
Status Assigned
Assigned To Olle Johansson (oej)
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

When using db_text drivers, the driver responds with a NULL string if the declaration says “(string,NULL)”. If NULL is not declared, dbtext doesn’t read the data and fails.

I need to be able to send an empty string into the dialplan, in the subst/repl fields. Dialplan doesn’t accept a NULL string as input for these fields.

The solution is:
- If column is declared as (String) send “” for empty strings
- If column is declared as (string, null) send NULL for empty strings.

Maybe we need a config setting or a default value like
(string,default=”“)
(int,default=123)

I will try to look into this soon.

This task depends upon

Loading...