List:MySQL and Perl« Previous MessageNext Message »
From:Jochen Wiedmann Date:March 4 2000 6:45pm
Subject:Re: Problems inserting files into a BLOB field
View as plain text  

Juan Julian Merelo Guervos wrote:
> 

> my $sth =
>   $dbh->do(q{
>     INSERT INTO table set (file) VALUES (?)
>   }, undef, $dbh->quote($fileStr)) || die $dbh->errstr;

The quote is not required here. It's only required with

$dbh->do("INSERT INTO table set (file) VALUES (" .
         $dbh->quote($fileStr) . ")");


Bye,

Jochen
Thread
Problems inserting files into a BLOB fieldJuan Julian Merelo Guervos3 Mar
  • Re: Problems inserting files into a BLOB fieldJochen Wiedmann4 Mar