Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: DB2 error: "Can't bind unknown parameter marker ':p4'"

by Anonymous Monk
on Jan 18, 2013 at 04:02 UTC ( #1013947=note: print w/replies, xml ) Need Help??

in reply to DB2 error: "Can't bind unknown parameter marker ':p4'"

I'm not sure what the problem could be... everything (AFAIK) seems right. Anyone have any ideas?

Sure you are :) Can't bind unknown parameter marker is a very specific error message, and since :p4 doesn't occur in the cod you posted, it must occur in the stored procedure

  • Comment on Re: DB2 error: "Can't bind unknown parameter marker ':p4'"

Replies are listed 'Best First'.
Re^2: DB2 error: "Can't bind unknown parameter marker ':p4'"
by shanknbake (Initiate) on Jan 18, 2013 at 20:14 UTC
    I'm thinking that the error is in the way that I'm calling the stored procedure... does that look okay?
      The stored procedure looks to be working fine - I tested it manually using the Data Studio tool. So it must be something funky with the way that I'm calling it...

        Incrase DBI->trace level (3) and see what you get, compare that to "data studio tool" for similar

        I guess the :p4 refers to  $sth->bind_param_inout(4,\$returnValue,20); , that is the 4th bind_param, but you only have three placeholders (?,?,?)

        So unless mySchema.myStoredProcedure somehow has a placeholder (i've never used one), there is your problem

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1013947]
[Corion]: Oh yay. Thanks to The New Firefox, my irc client ChatZilla doesn't work anymore either... So I'll have to keep an old FF around just for that...
[Corion]: 100% of my FF add-ons are unsupported currently. Maybe upgrading Firefox wasn't such a good idea after all ;)
[Corion]: Also suffering is my 2-factor Github sign-in, as now, FF can't read my USB token anymore. "This was a horrible idea" is slowly dawning on me ;)
[Corion]: Yay. FF now has u2f built-in (behind an about:config setting), so using an USB token to sign in actually works :)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-11-20 20:16 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (293 votes). Check out past polls.