Module: sip-router
Branch: master
Commit: aac61596c586dc530953b7781df88392fb3cb9fe
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=aac6159…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Mar 13 14:08:08 2012 +0100
db_mysql: DB API v1 replace prototype updated
---
modules/db_mysql/km_dbase.c | 3 ++-
modules/db_mysql/km_dbase.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/db_mysql/km_dbase.c b/modules/db_mysql/km_dbase.c
index da429d6..208f64e 100644
--- a/modules/db_mysql/km_dbase.c
+++ b/modules/db_mysql/km_dbase.c
@@ -457,7 +457,8 @@ int db_mysql_update(const db1_con_t* _h, const db_key_t* _k, const
db_op_t* _o,
* \param _n number of key=value pairs
* \return zero on success, negative value on failure
*/
-int db_mysql_replace(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v, const
int _n)
+int db_mysql_replace(const db1_con_t* _h, const db_key_t* _k,
+ const db_val_t* _v, const int _n, const int _un, const int _m)
{
return db_do_replace(_h, _k, _v, _n, db_mysql_val2str,
db_mysql_submit_query);
diff --git a/modules/db_mysql/km_dbase.h b/modules/db_mysql/km_dbase.h
index a2b5f92..3a567f2 100644
--- a/modules/db_mysql/km_dbase.h
+++ b/modules/db_mysql/km_dbase.h
@@ -104,7 +104,8 @@ int db_mysql_update(const db1_con_t* _h, const db_key_t* _k, const
db_op_t* _o,
/*! \brief
* Just like insert, but replace the row if it exists
*/
-int db_mysql_replace(const db1_con_t* handle, const db_key_t* keys, const db_val_t* vals,
const int n);
+int db_mysql_replace(const db1_con_t* handle, const db_key_t* keys,
+ const db_val_t* vals, const int n, const int _un, const int _m);
/*! \brief
* Returns the last inserted ID