Sfoglia il codice sorgente

usrloc: fixed number of columns when loading urecord in db mode 3

- reported by GH#373
Daniel-Constantin Mierla 10 anni fa
parent
commit
922e5818b0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      modules/usrloc/udomain.c

+ 2 - 2
modules/usrloc/udomain.c

@@ -630,7 +630,7 @@ urecord_t* db_load_urecord(db1_con_t* _c, udomain_t* _d, str *_aor)
 		return 0;
 	}
 
-	if (ul_dbf.query(_c, keys, 0, vals, columns, (use_domain)?2:1, 16, order,
+	if (ul_dbf.query(_c, keys, 0, vals, columns, (use_domain)?2:1, 19, order,
 				&res) < 0) {
 		LM_ERR("db_query failed\n");
 		return 0;
@@ -814,7 +814,7 @@ urecord_t* db_load_urecord_by_ruid(db1_con_t* _c, udomain_t* _d, str *_ruid)
 		return 0;
 	}
 
-	if (ul_dbf.query(_c, keys, 0, vals, columns, 1, 18, order,
+	if (ul_dbf.query(_c, keys, 0, vals, columns, 1, 21, order,
 				&res) < 0) {
 		LM_ERR("db_query failed\n");
 		return 0;