From: jason_e_stewart@users.sourceforge.net
To: pgsql-interfaces@postgresql.org
Cc: dbi-dev@perl.org
Subject: DBD::Pg and $sth->{ParamValues}
Date: Fri, 02 Jul 2004 12:39:40 +0530
Message-ID: <878ye2c2bv.fsf@openinformatics.com> (raw)
Hey,
What is the status of the this attribute? I would like to help
implement the code (since I need it for my application).
But I'm a bit confused about what the status of prepared statements is
in the code. I'm assuming the the dbd_st_execute() in dbdimp.c is the
latest code used and that prescan_stmt.c isn't being used.
I'm not a great C coder anymore so pardon my ignorance. From my
reading of the code, there is an array:
const char **paramValues;
which is dynamically allocated:
paramValues = calloc(imp_sth->numphs, sizeof(*paramValues));
but it is never freed, isn't that a memory leak? I'm wondering about
this because in order to make the ParamValues attribute work, I'll
need to make that array part of the statement handle - and I don't
want to be keeping track of memory that is going to vanish out from
underneath me.
Cheers,
jas.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: jason_e_stewart@users.sourceforge.net, dbi-dev@perl.org
Subject: Re: DBD::Pg and $sth->{ParamValues}
In-Reply-To: <878ye2c2bv.fsf@openinformatics.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox