Browse code

db_mysql: DB API v1 replace prototype updated

Daniel-Constantin Mierla authored on 13/03/2012 13:08:08
Showing 2 changed files
... ...
@@ -457,7 +457,8 @@ int db_mysql_update(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _o,
457 457
  * \param _n number of key=value pairs
458 458
  * \return zero on success, negative value on failure
459 459
  */
460
-int db_mysql_replace(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v, const int _n)
460
+int db_mysql_replace(const db1_con_t* _h, const db_key_t* _k,
461
+		const db_val_t* _v, const int _n, const int _un, const int _m)
461 462
 {
462 463
 	return db_do_replace(_h, _k, _v, _n, db_mysql_val2str,
463 464
 	db_mysql_submit_query);
... ...
@@ -104,7 +104,8 @@ int db_mysql_update(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _o,
104 104
 /*! \brief
105 105
  * Just like insert, but replace the row if it exists
106 106
  */
107
-int db_mysql_replace(const db1_con_t* handle, const db_key_t* keys, const db_val_t* vals, const int n);
107
+int db_mysql_replace(const db1_con_t* handle, const db_key_t* keys,
108
+		const db_val_t* vals, const int n, const int _un, const int _m);
108 109
 
109 110
 /*! \brief
110 111
  * Returns the last inserted ID