in reply to Need Help in calling PL/SQL Stored procedures from perl program

Ok, first off your prepare statements look correct, you are using BEGIN & END properly.

I believe you are running into problems with this code:

# The values are _copied_ here $csr->bind_param(":serial_number", $Sno); $csr->bind_param(":app_name", $appname); $csr->bind_param(":max_time", $max); $csr->bind_param(":max_size", $maxs); $csr->bind_param_inout(":warranty_tbl", \$warra, -10); $csr->bind_param_inout(":return_status", \$return, 100);

You do not need the colon (:) prefix to the param name. I.E.

# The values are _copied_ here $csr->bind_param("serial_number", $Sno); $csr->bind_param("app_name", $appname); $csr->bind_param("max_time", $max); $csr->bind_param("max_size", $maxs); $csr->bind_param_inout("warranty_tbl", \$warra, -10); $csr->bind_param_inout("return_status", \$return, 100);

should work properly.

Normally I use numeric values for my procedure, so this is never an issue, but try this and see what happens.

- f o o g o d

Replies are listed 'Best First'.
Re: Re: Need Help in calling PL/SQL Stored procedures from perl program
by Anonymous Monk on Nov 19, 2001 at 00:12 UTC
    Thanks for your response. But still its not working. if i remov the colon, it says "cannot bind" Regards Chintu
      i tried numeric values also. but no luck ---Chintu