On 8 Nov 2007 at 8:59, Mike wrote:

> Hi,

> 
> #Update override_exclude set th_flag="N" to indicate that thesaurus entries
> #have been added to sierra2_thesaurus.xml
> 
>         use DBI;
>         my $dbh = DBI->connect("dbi:mysql:endeca_tracking",$user,$password);
>         my $sth = $dbh->prepare('update override_exclude set th_flag="N" 
> where pid=$pid') or die "Couldn't prepare statement" .$dbh->errstr;
>         $sth->execute;

I'm no guru but shouldn't you be double quoting the prepare 
statement:

my $sth = $dbh->prepare("update override_exclude set th_flag='N' 
where pid=$pid")

or better still

my $sth = $dbh->prepare('update override_exclude set th_flag="N" 
where pid=?")
$sth->execute($pid);

HTH,
Dp.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to