| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
directory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- make password optional, not mandatory (Andrejs Dubovskis)
- fix two memory leaks (Andrejs Dubovskis)
- lots of cosmetic fixes
|
|
|
|
|
| |
- defer file opens + other initialization until after setuid() was called
- cosmetic cleanup (no _ in static functions, use 'static' whenever possible)
|
|
|
|
| |
--log-ip-as-string option (which I never liked anyway ;))
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(Martin Kähmer)
|
|
|