[sr-dev] git:master: db_text Add support for empty strings as a replacement for NULL strings

Olle E. Johansson oej at edvina.net
Fri Dec 12 22:08:13 CET 2014


Module: sip-router
Branch: master
Commit: 935f11ab8daf40ce48359c7a0f0b3759720ac5bd
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=935f11ab8daf40ce48359c7a0f0b3759720ac5bd

Author: Olle E. Johansson <oej at edvina.net>
Committer: Olle E. Johansson <oej at edvina.net>
Date:   Fri Dec 12 22:05:16 2014 +0100

db_text Add support for empty strings as a replacement for NULL strings

Some modules, like dialplan, doesn't accept NULL strings from databases.
db_text had no way to define a string as empty - all empty strings was NULL.
Adding a new option to change this behaviour. With "emptystring" set to 1
db_text will not set an empty string to NULL any more.

---

 modules/db_text/README                |   54 +++++++++++++++++++++--------
 modules/db_text/dbt_file.c            |   14 +++++--
 modules/db_text/dbt_lib.h             |    1 +
 modules/db_text/dbtext.c              |    4 ++
 modules/db_text/doc/db_text.xml       |    5 +++
 modules/db_text/doc/db_text_admin.xml |   61 ++++++++++++++++++++++----------
 6 files changed, 101 insertions(+), 38 deletions(-)

Diff:   http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=935f11ab8daf40ce48359c7a0f0b3759720ac5bd



More information about the sr-dev mailing list