Give SQL.pm a quote_identifier wrapper.

This commit is contained in:
Colin Kuskie 2010-01-13 16:42:29 -08:00
parent 86b5157e4d
commit 1ce5e4ebab

View file

@ -861,6 +861,24 @@ sub quoteAndJoin {
}
#-------------------------------------------------------------------
=head2 quoteIdentifier ( string )
Returns a string quoted as an identifier to be used as a table name, column name, etc.
=head3 string
Any scalar variable that needs to be escaped to be inserted into the database.
=cut
sub quoteIdentifier {
my $self = shift;
my $value = shift;
return $self->dbh->quote_identifier($value);
}
#-------------------------------------------------------------------
=head2 read ( sql [ , placeholders ] )