Module: sip-router
Branch: janakj/postgres
Commit: d4640607089efc1c5dfdf89bd451ed3e07e46b42
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d464060…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Thu Oct 27 23:11:44 2005 +0000
Postgres module update, includes:
- Support for connection pools
- Support for multiple simultaneous results
- No static buffer usage, uses more efficient PQExecParams
- Support for database reconnects (not handled by libpq)
- Support for binary parameters in PQExecParams
(this brings us one step closer to prepared statements
and removes tedious and error prone text conversions)
- No data is copied from postgres result unless necessary
- SQL injection vulnerability fixed
- Configurable connectionn timeout
- Configurable number of reconnect attempts
- Support for bitmap data type
- Support for binary data values
- Support for timestamp format auto-detection
---
modules/db_postgres/aug_alloc.c | 632 ------------
modules/db_postgres/aug_alloc.h | 95 --
modules/db_postgres/aug_debug.h | 158 ---
modules/db_postgres/aug_std.h | 154 ---
modules/db_postgres/aug_sysdep.h | 359 -------
modules/db_postgres/aug_util.c | 131 ---
modules/db_postgres/con_postgres.h | 69 --
modules/db_postgres/db_con.c | 33 +-
modules/db_postgres/db_mod.c | 68 +-
modules/db_postgres/{defs.h => db_mod.h} | 30 +-
modules/db_postgres/db_res.c | 228 -----
modules/db_postgres/db_utils.c | 145 ---
modules/db_postgres/db_val.c | 358 -------
modules/db_postgres/dbase.c | 1536 ++++++++++++++++-------------
modules/db_postgres/dbase.h | 59 +-
modules/db_postgres/pg_con.c | 202 ++++
modules/db_postgres/pg_con.h | 74 ++
modules/db_postgres/pg_type.h | 165 ++--
modules/db_postgres/res.c | 409 ++++++++
modules/db_postgres/{db_utils.h => res.h} | 48 +-
20 files changed, 1739 insertions(+), 3214 deletions(-)
Diff:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=d46…