DBI and column_info() method

From: Sapet Frederic (fsapet_at_infobiogen.fr)
Date: 06/16/04


Date: Wed, 16 Jun 2004 15:52:04 +0200
To: dbi-users@perl.org


Hi All,

I am using
Oracle 8.1.5
DBI 1.42

I would like to retrieve some informations from a database using DBI and some of its methods

When I do something like below, everything is OK.

my $type = "TABLE";
$sth = $dbh->table_info( undef,'OSNP', '%%', $type );
while (my $row = ($sth->fetchrow_arrayref)) {

everything ok !

}

but $sth is never defined when I use column_info() or primary_key_info()
$sth = $dbh->column_info( undef,'OSNP', '%%' , '%%');

I tryed also
$sth = $dbh->column_info( undef,'OSNP', 'PROJECT' , 'PROJECT_ID');#
or
$sth = $dbh->column_info( undef,'OSNP', 'OSNP.PROJECT' , 'PROJECT_ID')

I don't understand why it doesn't work (and I was unable to find an answer using google :o( ).

Anyone have any ideas?

Thanks,

-- 
Frederic Sapet


Relevant Pages

  • RE: ORACLE DRIVER
    ... DBI - is the perl module to handle all the request of the database, connecting, disconnecting, routing the database request to proper driver. ... DBD::Oracle - is the Oracle driver that DBI can use to handle oracle request. ...
    (perl.dbi.users)
  • Re: Problem in connecting the DB
    ... Abstract: Oracle database driver for the DBI module Location: ActiveState Package Repository ...
    (perl.dbi.users)
  • Re: DBI with ORACLE encryption
    ... perl script to pull data out of the interface and dump the same to the ... All we do with oracle is to take an database connection ... other ways of connecting to database using dbi. ...
    (perl.dbi.users)
  • RE: fetchrow_array performance
    ... I agree - set RasieError. ... it is impossible to tell what is going on in the database without a 10046 trace. ... You aren't error checking your dbi statements - do you have RaiseError ... sender of the delivery error by replying to this message, or notify us by ...
    (perl.dbi.users)
  • Re: Evaluated "require $database" not found.
    ... DBI Error 1046: No database selected ... What I have found is that if the spaceare removed as per the correct syntax, then the DBI_errorhandler will trap and report a connection failure if a non-existent database is specified, as per this example: ... This requires that you first have an installation of mysql setup on a host ...
    (perl.dbi.users)