[OpenSIPS-Devel] [OpenSIPS/opensips] f03a95: cachedb_mongodb: Return DB_STRING strings, not DB_STR

Liviu Chircu noreply at github.com
Tue Jan 12 17:30:19 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f03a9584821215531b0078ca2d5227403bfda14b
      https://github.com/OpenSIPS/opensips/commit/f03a9584821215531b0078ca2d5227403bfda14b
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-01-12 (Tue, 12 Jan 2021)

  Changed paths:
    M modules/cachedb_mongodb/cachedb_mongodb_dbase.c
    M ut.h

  Log Message:
  -----------
  cachedb_mongodb: Return DB_STRING strings, not DB_STR

Several modules relying on SQL data do not fully handle the DB_STR data
type, e.g. drouting.  So when db_cachedb is used on top of
cachedb_mongodb, these modules may report errors such as:

ERROR:drouting:dr_load_routing_info: column gwid has a bad type [4],
	accepting only [3]

Many thanks to Sasmita Panda for the report and helping with testing!





More information about the Devel mailing list