Module: sip-router
Branch: janakj/postgres
Commit: a22a469492369e1bbb48b8d2bf8129e5f7556ac5
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=a22a469…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Mar 5 16:57:40 2008 +0000
- local free_query renamed to free_result to be coherent with the DB API
git-svn-id:
https://openser.svn.sourceforge.net/svnroot/openser/trunk@3855
689a6050-402a-0410-94f2-e92a70836424
---
modules/db_postgres/km_db_postgres.c | 2 +-
modules/db_postgres/km_dbase.c | 4 ++--
modules/db_postgres/km_dbase.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/db_postgres/km_db_postgres.c b/modules/db_postgres/km_db_postgres.c
index 06766a7..7d1f3a5 100644
--- a/modules/db_postgres/km_db_postgres.c
+++ b/modules/db_postgres/km_db_postgres.c
@@ -86,7 +86,7 @@ int db_postgres_bind_api(db_func_t *dbb)
dbb->query = db_postgres_query;
dbb->fetch_result = db_postgres_fetch_result;
dbb->raw_query = db_postgres_raw_query;
- dbb->free_result = db_postgres_free_query;
+ dbb->free_result = db_postgres_free_result;
dbb->insert = db_postgres_insert;
dbb->delete = db_postgres_delete;
dbb->update = db_postgres_update;
diff --git a/modules/db_postgres/km_dbase.c b/modules/db_postgres/km_dbase.c
index 525f405..ff6b297 100644
--- a/modules/db_postgres/km_dbase.c
+++ b/modules/db_postgres/km_dbase.c
@@ -308,7 +308,7 @@ static int free_query(const db_con_t* _con)
}
/*
-** db_free_query free the query and free the result memory
+** db_free_result free the query and free the result memory
**
** Arguments :
** db_con_t * as previously supplied by pg_init()
@@ -319,7 +319,7 @@ static int free_query(const db_con_t* _con)
** negative number upon failure
*/
-int db_postgres_free_query(db_con_t* _con, db_res_t* _r)
+int db_postgres_free_result(db_con_t* _con, db_res_t* _r)
{
free_query(_con);
if (_r) db_free_result(_r);
diff --git a/modules/db_postgres/km_dbase.h b/modules/db_postgres/km_dbase.h
index 8053f01..d816616 100644
--- a/modules/db_postgres/km_dbase.h
+++ b/modules/db_postgres/km_dbase.h
@@ -61,7 +61,7 @@ int db_postgres_store_result(const db_con_t* _h, db_res_t** _r);
/**
* Free all memory allocated by get_result
*/
-int db_postgres_free_query(db_con_t* _h, db_res_t* _r);
+int db_postgres_free_result(db_con_t* _h, db_res_t* _r);
/**