[SR-Dev] git:janakj/postgres: - partial revert of commit rev5359 for db_mysql module

Jan Janak jan at iptel.org
Wed Feb 18 01:26:22 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: afb8dada6795769df4c0158e980bdbfd062e57a4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=afb8dada6795769df4c0158e980bdbfd062e57a4

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Mon Jan  5 18:29:35 2009 +0000

- partial revert of commit rev5359 for db_mysql module
- generalize db_str2val function in the DB API core, the string copying
  behaviour can now configured (its done for db_postgres, db_unixodbc,
  not done for db_mysql like in the 1.3, 1.4 branches)
- still TODO: fix NULL case in db_unixodbc, try to fix double copying


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5423 689a6050-402a-0410-94f2-e92a70836424

---

 modules/db_postgres/km_val.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/db_postgres/km_val.c b/modules/db_postgres/km_val.c
index c83a1b2..7cc308a 100644
--- a/modules/db_postgres/km_val.c
+++ b/modules/db_postgres/km_val.c
@@ -58,7 +58,7 @@
 int db_postgres_str2val(const db_type_t _t, db_val_t* _v, const char* _s, const int _l)
 {
 	if ( (_t != DB_BLOB && _v != NULL) || _v == NULL) {
-		return db_str2val(_t, _v, _s, _l);
+		return db_str2val(_t, _v, _s, _l, 1);
 	} else {
 		char * tmp_s = NULL;
 		LM_DBG("converting BLOB [%.*s]\n", _l, _s);




More information about the sr-dev mailing list