in reply to Calling a Sybase Procedure with NUL in a parm
As an explanation - when you use the first form DBD::Sybase assumes that the parameter is of type VARCHAR, which may not handle the NUL bytes very well (although I think it should, really).
If the parameter is supposed to be a binary parameter (VARBINARY, for example), then you should do something like this:
or convert the packed value to a hex string and pass it as a hex string litteral (method #2).$sth = $dbh->prepare("exec my_proc ?"); $sth->bind_param(1, $packed, SQL_BINARY); $sth->execute;
Michael
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Calling a Sybase Procedure with NUL in a parm
by thor (Priest) on Feb 05, 2003 at 01:22 UTC | |
by mpeppler (Vicar) on Feb 05, 2003 at 16:30 UTC | |
by thor (Priest) on Feb 05, 2003 at 23:24 UTC |