http://www.perlmonks.org?node_id=168545


in reply to Re: •Re: username and password verification from a table in Postgres
in thread username and password verification from a table in Postgres

Hmmm, looking at your message and my reply side by side, I think I get your intent now. You use the placeholder to escape (I didn't apply your use of this word properly) the username, in the sense that you take advantage of the automatic quoteing of values substituted for placeholders, as a way to protect possibly invalid characters in the username?

This jumped out at me when I looked at my own post and realized that it would be an invalid statement.

For Anonymous Monk: Another way of doing this in advance is to use the DBI's quote method, like:

my $quoted_username = $dbh->quote($username);

Hmm, this reminds me I had thought to post a general question about a MySQL DBI driver patch I used to add an extra placeholder that does not get quoted, and so is useful for table names and such...

Anywho, my apologies for the line noise.
Sean<BR

  • Comment on Re: Re: •Re: username and password verification from a table in Postgres