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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.