in reply to Re: DBI "drop table"
in thread DBI "drop table"
Placeholders for table and column names are not supported (I don't know if that's a DBI or a MySQL restriction).
I think most databases have that restriction. I think they need the table names to properly prepare.
You can run the the table name through $dbh->quote method instead, and interpolate it into the SQL.
No. $dbh->quote is for string literals only. For example, it's valid for $dbh->quote("one\ntwo\0three") to return CONCAT('one', CHAR(12), 'two', CHAR(0), 'three').
$dbh->quote_identifier is the appropriate function here.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: DBI "drop table"
by tinita (Parson) on Apr 13, 2008 at 11:18 UTC |