diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-08-06 09:49:58 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2007-08-06 09:49:58 +0000 |
commit | 7e1200fcd573e32b3c937fad1a2577748b5f3611 (patch) | |
tree | fc460b81ca1a7d4bcdecafc12e0e927e901c7079 /ulogd/Makefile.in | |
parent | 34e5fdaa633ff6a6d8f6fa84e350fb3499fc4625 (diff) |
Marius Tomaschewski <mt@suse.de>
- included inttypes.h and changed to use PRId64/PRIu64 format definitions
to use correct number of l's on all platforms (WORDSIZE depending).
- added str flag to the struct _field - it is set in the pgsql_get_columns
function when the IP-Addr columns in the database are non-numeric/string
and used to insert proper converted value in pgsql_output.
See also the --with-pgsql-log-ip-as-string configure option and doc dir.
- added global stmt_siz variable for the allocated size of the stmt buffer;
obsoletes local size variable in pgsql_createstmt
- added guard at the beginning of pgsql_output for the case stmt_val == NULL
- changed to use snprintf instead of sprintf in pgsql_output to take care
about the allocated buffer length - using the STMT_ADD macro when the
string has to be appended.
- fixed to check in pgsql_output() if the buffer contains enough place for
PQescapeString calls -- see pgsql documentation.
- Improved PGSQL_GETCOLUMN_TEMPLATE and PGSQL_GETCOLUMN_TEMPLATE_SCHEMA sql
queries to return the typename of the column, so we can detect if the IP
address columns are strings or integers (str in struct _field).
See also doc/pgsql.table.
- Fixed to use strncat/strncpy in pgsql_open_db instead of strcpy/strcat
- Fixed to free connstr after PQconnectdb.
- Fixed to reset dbh handle after failure in pgsql_open_db,pgsql_init
- Fixed to check dbh handle before PQfinish call in pgsql_fini and to free
the stmt as well.
Diffstat (limited to 'ulogd/Makefile.in')
0 files changed, 0 insertions, 0 deletions