Thanks for the re-assurance. The specific error message is
DBD::Pg::st execute failed: ERROR: parser: parse error at or near "," Every time I've run into that error before and I haven't misplaced a comma, it has been this roadblock.
The prepared statement is:
$st{ 'UpdDoc' } = $dbh->prepare( <<ENDSQL );
UPDATE
img_Printer_Doc
SET
prd_Copies = ?,
prd_Tray = ?,
prd_Size = ?,
prd_Duplex = ?,
prd_NUp = ?,
prd_Landscape = ?,
prd_Scaling = ?,
prd_Redirect = ?
WHERE
prt_Number = ?
AND
ref_IndexCode = ?;
ENDSQL
I'm executing it with the following: (Don't worry, the %cgiparms are strictly filtered)
$st{ 'UpdDoc' }->execute(
$cgiparms{ 'copies' },
$cgiparms{ 'tray' },
$cgiparms{ 'size' },
$cgiparms{ 'duplex' },
$cgiparms{ 'nup' },
$cgiparms{ 'orientation' } eq 'Landscape',
$cgiparms{ 'scaling' },
$cgiparms{ 'redirect' },
$cgiparms{ 'NUMBER' },
$cgiparms{ 'DOCTYPE' }
);
(prd_Landscape is a boolean, hence the eq.)
I'm on DBI 1.30, DBD::Pg 1.13. I didn't see anything that seemed relevant in the DBI or DBD::Pg changelog, so I'm assuming that I've done something stupid at this point.
-- Spring: Forces, Coiled Again!
|