Re: DBD::ODBC does not support bind_param_inout?



hu.darren wrote:
Hi,
I have installed the DBD::ODBC from the latest svn.

when I want execute a procedure like this:

________
my $whoami = "";
my $csr = $dbh->prepare(q{
BEGIN
:whoami := PLSQL_EXAMPLE_DARREN.FUNC_NP;
END;
});

I presume since that starts PLSQL you are using Oracle.
Which Oracle ODBC driver are you using?

What does the procedure look like?

Are you sure this is a procedure - procedures don't usually return
values (especially in oracle).

The ODBC syntax to call a procedure is:

{call proc_name(?,?...)}

You are better using that.

Having said procedures don't usually return values MS SQL Server can
return an integer in which case you can use:

{? = call procname(?,?,...)}


$csr->bind_param_inout(":whoami", \$whoami, 20);
$csr->execute;
print "Your database user name is $whoami\n";
$dbh->disconnect;
----------

but I failed with:

____________
/usr/bin/perl -w /home/darren/perl/dbitest.pl
Can't bind unknown placeholder ':whoami' at /home/darren/perl/dbitest.pl
line 90.
-------------

I have both used $dbh->{odbc_ignore_named_placeholders} = 1 and
$dbh->{odbc_ignore_named_placeholders} = 1

These are the same aren't they!

Any suggestions?

Why would you set odbc_ignore_named_placeholders - you are using named
placeholders so don't set it.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
.



Relevant Pages

  • Re: Acccess --> Oracle (unix Solaris)
    ... Use the Oracle ODBC driver. ... In place of the server name, ... > your Oracle DBA has set for the IP address & port. ... > SAMBA connections. ...
    (microsoft.public.access.queries)
  • Re: Import from Oracle - ODBC basics
    ... equivalent create a Local Net Service Name Configuration to the Oracle ... add a System DSN using the "Oracle ODBC Driver" (MUST be this ... A FULL installation of Oracle was required on the computer in order for ... the "Oracle ODBC Driver" to be available. ...
    (comp.databases.filemaker)
  • Re: Oracle Database and VB6
    ... Any undesired problem using ODBC to connect to Oracle Database? ... Or i just setup the ODBC data source name and the Oracle ODBC driver in the client PC and everything are OK, similar to connectiong to Access Database. ...
    (microsoft.public.vb.general.discussion)
  • Re: CA-Realia, SqlState -91, Odbc preprocessor and Oracle database
    ... we wrote a test program with embedded sql, preprocess it to Odbc ... we tried both Oracle Odbc driver from Oracle and from Microsoft ...
    (comp.lang.cobol)
  • Re: History behind 30 character name limit?
    ... on table, column, object names to 30 characters? ... One would presume it stemmed from the 16-bit processors available when ... Oracle was introduced and hasn't changed since. ... Some 'limitations' are difficult to lift, ...
    (comp.databases.oracle.server)

Loading