Browse code

db_mongodb: fix typo

mikomarrache authored on 22/04/2015 12:04:40
Showing 1 changed files
... ...
@@ -470,7 +470,7 @@ int db_mongodb_get_columns(const db1_con_t* _h, db1_res_t* _r)
470 470
  * \param _r database result set
471 471
  * \return 0 on success, negative on failure
472 472
  */
473
-static int db_mongdob_convert_bson(const db1_con_t* _h, db1_res_t* _r,
473
+static int db_mongodb_convert_bson(const db1_con_t* _h, db1_res_t* _r,
474 474
 		int _row, const bson_t *_rdoc)
475 475
 {
476 476
 	static str dummy_string = {"", 0};
... ...
@@ -619,7 +619,7 @@ static int db_mongdob_convert_bson(const db1_con_t* _h, db1_res_t* _r,
619 619
  * \param _r database result set
620 620
  * \return 0 on success, negative on failure
621 621
  */
622
-static int db_mongdob_convert_result(const db1_con_t* _h, db1_res_t* _r)
622
+static int db_mongodb_convert_result(const db1_con_t* _h, db1_res_t* _r)
623 623
 {
624 624
 	int row;
625 625
 	db_mongodb_result_t *mgres;
... ...
@@ -671,7 +671,7 @@ static int db_mongdob_convert_result(const db1_con_t* _h, db1_res_t* _r)
671 671
 			LM_DBG("selected document: %s\n", jstr);
672 672
 			bson_free (jstr);
673 673
 		}
674
-		if(db_mongdob_convert_bson(_h, _r, row, itdoc)) {
674
+		if(db_mongodb_convert_bson(_h, _r, row, itdoc)) {
675 675
 			LM_ERR("failed to convert bson at pos %d\n", row);
676 676
 			return -1;
677 677
 		}
... ...
@@ -739,7 +739,7 @@ static int db_mongodb_store_result(const db1_con_t* _h, db1_res_t** _r)
739 739
 		LM_ERR("failed to set the columns\n");
740 740
 		goto error;
741 741
 	}
742
-	if(db_mongdob_convert_result(_h, *_r)<0) {
742
+	if(db_mongodb_convert_result(_h, *_r)<0) {
743 743
 		LM_ERR("failed to set the rows in result\n");
744 744
 		goto error;
745 745
 	}