Re: Error I've not seen before from oracle DBD

Rudolf Lippan <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On Thursday, March 29, 2012 at 04:46:35 PM, Bruce Johnson wrote:
> Can't mix placeholder styles (:foo/?) at /usr/local/lib64/perl5/DBD/Oracle.pm line 329., referer: https://resource-scheduler.pharmacy.arizona.edu/calendar/reserve.pl
> 
> I thought this is the code fragment producing this error:
> 

[snip]
> 
> Also, the line number in the error is from Oracle.pm, how do I find out what line in my program caused this?
> 

DBI->trace(9) is your friend for all things debugging.

Is this new code or something that is acting differently?

Also, you might save a little typing by passing  {RaiseError=>1} to connect :-)


I just looked at the code again,  and I suspect that :1...:n is being
translated into '?' placeholders internally, which would give you the mixed
placeholders :1 :2 :name.


-r
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.