Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 91400
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: bcarpenter [...] i3.com
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: 3.0.0



Subject: Syntax mistake in DBD::Pg documentation about "pg_placeholder_dollaronly"
Date: Fri, 13 Dec 2013 11:29:55 -0700
To: bug-DBD-Pg [...] rt.cpan.org
From: Bryan Carpenter <bcarpenter [...] i3.com>
Hello, In the DBD::Pg document here: http://search.cpan.org/dist/DBD-Pg/Pg.pm#Placeholders where it gives an example of specifying the "pg_placeholder_dollaronly" attribute within the $dbh->prepare() call, it gives the example as: $sth = $dbh->prepare(q{SELECT * FROM mytable WHERE lseg1 ?-| lseg2 AND name = $1}, {pg_placeholder_dollaronly = 1}); however the "*{pg_placeholder_dollaronly = 1}*" should rather have a "*=>*" in order for the "unquoted key" style of hash initialization to work properly. Thanks, Bryan -- Bryan Carpenter, Senior Software Developer i-cubed: information integration & imaging, LLC 1600 Prospect Parkway Fort Collins, CO 80525 | Office: 970-672-4472 | Mobile: 970-691-1487 bcarpenter@i3.com | www.i3.com "This e-mail and any files transmitted with it are the property of i-cubed, are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not one of the named recipient(s) or otherwise have reason to believe that you have received this message in error, please notify the sender at 1-970-482-4400 and delete this message immediately from your computer. Any other use, retention, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. Thanks for your cooperation!"
Thanks for the report. Fixed in f67b15d27dedb5062bae8c86e7c2914f9a32fc9d