Selaa lähdekoodia

- 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

Henning Westerholt 16 vuotta sitten
vanhempi
commit
afb8dada67
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      modules/db_postgres/km_val.c

+ 1 - 1
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);