SPUG: Trouble with DBD::Sybase

Brian Hatch bri at ifokr.org
Tue May 31 15:32:50 PDT 2005



> Don't you want
> 
> $sth = $dbh->prepare('exec proc_name \@p1 = ?, \@p2 = ?');
> $sth->bind_param(1, 0, SQL_DECIMAL);
> $sth->bind_param(2, 0, SQL_DECIMAL);
> $sth->execute();
> 
> rather than using prepare to bind parameters?

Sorry, that was a copy/paste error.

-- 
Brian Hatch                  I am not sanguine about the
   Systems and                specter of Microsoft Passport
   Security Engineer          being required to order a
http://www.ifokr.org/bri/     hamburger.
                             -- Ken Meyer
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.pm.org/pipermail/spug-list/attachments/20050531/74e158ba/attachment.bin


More information about the spug-list mailing list