Code

postgresql plugin: Added support for passing parameters to a query.
authorSebastian Harl <sh@tokkee.org>
Fri, 18 Jul 2008 19:38:48 +0000 (21:38 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 24 Jul 2008 12:18:04 +0000 (14:18 +0200)
commit29fbb8ec3fab3fc1e5c2e386b63f65f6832c0e7d
tree5b144c444e5945826beaa261e458e022c9703727
parent09c001b38efcb0344c517c5944df87127ea30ee6
postgresql plugin: Added support for passing parameters to a query.

The parameters are referred to in the query string as $1, $2, ... The value of
a parameter is specified using the new "Param <name>" config option of a
"<Query>" block. <name> may be any of "hostname", "database" or "username"
which will be replaced by the value of the appropriate connection parameters.
The hostname will not evaluate to the the UNIX domain socket path -
"localhost" will be used instead.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/postgresql.c