[sr-dev] git:master: db_unixodbc: DB API v1 replace prototype updated

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 13 14:20:17 CET 2012


Module: sip-router
Branch: master
Commit: fb7c301c438372d6429448f003ce89f449a7a4af
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=fb7c301c438372d6429448f003ce89f449a7a4af

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Mar 13 14:09:08 2012 +0100

db_unixodbc: DB API v1 replace prototype updated

---

 modules_k/db_unixodbc/dbase.c |    3 ++-
 modules_k/db_unixodbc/dbase.h |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules_k/db_unixodbc/dbase.c b/modules_k/db_unixodbc/dbase.c
index 9fce0f6..72edf1e 100644
--- a/modules_k/db_unixodbc/dbase.c
+++ b/modules_k/db_unixodbc/dbase.c
@@ -476,7 +476,8 @@ int db_unixodbc_update(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _
 /*
  * Just like insert, but replace the row if it exists
  */
-int db_unixodbc_replace(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v, const int _n)
+int db_unixodbc_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_unixodbc_val2str,
 			db_unixodbc_submit_query);
diff --git a/modules_k/db_unixodbc/dbase.h b/modules_k/db_unixodbc/dbase.h
index 017e982..d6f7919 100644
--- a/modules_k/db_unixodbc/dbase.h
+++ b/modules_k/db_unixodbc/dbase.h
@@ -90,7 +90,7 @@ const db_key_t* _uk, const db_val_t* _uv, const int _n, const int _un);
  * Just like insert, but replace the row if it exists
  */
 int db_unixodbc_replace(const db1_con_t* handle, const db_key_t* keys, const db_val_t* vals,
-const int n);
+		const int n, const int _un, const int _m);
 
 /*
  * Store name of table that will be used by




More information about the sr-dev mailing list