Browse code

db_mysql: renamed some internal functions

- 'mysql' added in the name of some functions from DB APIv1 to be
consistent with the rest of them

Daniel-Constantin Mierla authored on 17/08/2011 22:35:48
Showing 3 changed files
... ...
@@ -111,8 +111,8 @@ int db_mysql_bind_api(db_func_t *dbb)
111 111
 	dbb->delete           = db_mysql_delete;
112 112
 	dbb->update           = db_mysql_update;
113 113
 	dbb->replace          = db_mysql_replace;
114
-	dbb->last_inserted_id = db_last_inserted_id;
115
-	dbb->insert_update    = db_insert_update;
114
+	dbb->last_inserted_id = db_mysql_last_inserted_id;
115
+	dbb->insert_update    = db_mysql_insert_update;
116 116
 	dbb->insert_delayed   = db_mysql_insert_delayed;
117 117
 
118 118
 	return 0;
... ...
@@ -470,7 +470,7 @@ int db_mysql_replace(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v
470 470
  * \return returns the ID as integer or returns 0 if the previous statement
471 471
  * does not use an AUTO_INCREMENT value.
472 472
  */
473
-int db_last_inserted_id(const db1_con_t* _h)
473
+int db_mysql_last_inserted_id(const db1_con_t* _h)
474 474
 {
475 475
 	if (!_h) {
476 476
 		LM_ERR("invalid parameter value\n");
... ...
@@ -487,7 +487,7 @@ int db_last_inserted_id(const db1_con_t* _h)
487 487
   * \param _v values of the keys
488 488
   * \param _n number of key=value pairs
489 489
  */
490
- int db_insert_update(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v,
490
+ int db_mysql_insert_update(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v,
491 491
 	const int _n)
492 492
  {
493 493
 	int off, ret;
... ...
@@ -109,12 +109,12 @@ int db_mysql_replace(const db1_con_t* handle, const db_key_t* keys, const db_val
109 109
 /*! \brief
110 110
  * Returns the last inserted ID
111 111
  */
112
-int db_last_inserted_id(const db1_con_t* _h);
112
+int db_mysql_last_inserted_id(const db1_con_t* _h);
113 113
 
114 114
 /*! \brief
115 115
  * Insert a row into table, update on duplicate key
116 116
  */
117
-int db_insert_update(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v,
117
+int db_mysql_insert_update(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v,
118 118
 	const int _n);
119 119
 
120 120