Re: bind_param for named parameters - clarification sought

"Greg Sabino Mullane" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160


>> I believe, but am prepared to be put right, other non-perl database drivers
>> also drop the ':' when binding.

> Any other driver authors/users care to comment?

FWIW, DBD::Pg requires a leading colon, but strongly encourages the use of "$1"
placeholders, with "?" being an inefficient but acceptable alternative. I like
the leading colon because it visually enforces that you are using named parameters,
and is helpful when using :1, :2, etc. I wouldn't object to supporting
'no colons' either, if that's what DBI ends up recommending.

- --
Greg Sabino Mullane [email protected]
End Point Corporation
PGP Key: 0x14964AC8 200805141108
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAkgrAk4ACgkQvJuQZxSWSsgK7QCfaJQV1+Sue1dxJXrY8g2UuWKl
p/cAoOs3Zm5/ZRHVsKTxaWderwHbulZj
=j+jV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.