Re: possible Class::DBI::Oracle [patch]

[prev] [thread] [next] [Date index for 2005/04/22]

From: Jay Strauss
Subject: Re: possible Class::DBI::Oracle [patch]
Date: 14:02 on 22 Apr 2005
Just a couple of nit picks, why not :)

> --- Oracle.pm.orig	2003-07-15 19:56:23.000000000 -0500
> +++ Oracle.pm	2005-04-21 16:09:07.000000000 -0500
> @@ -16,6 +16,15 @@
> +
> +        my $cdbi_table;
> +
> +        if ($table =~ /\./ and not $schema) {

If someone sends in a "schema.tablename", this has to be true otherwise 
you should raise an error.  (or I suppose you could go on further and 
make sure that the schemas are == )

> +            $cdbi_table = $table;
> +            ($schema, $table) = split(/\./, $cdbi_table);
> +        }
> +        elsif ($schema) {
> +            $cdbi_table = join('.', $schema, $table);
> +        }
> +        else {
> +            $schema ||= $dbh->{Username};
> +            $cdbi_table = $table;
> +        }
> +
> +	$class->table($cdbi_table);
>  
> +        # upper-case here for backward compatibility with 0.51?
> +        # convenience?
>  	$table = uc $table;
> +        $schema = uc $schema;

I put in the, uc $table, just for searching the oracle catalog, since 
that is obsolete, its probably not needed.

(message missing)

possible Class::DBI::Oracle [patch]
Todd Hepler 22:20 on 19 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Hartmaier Alexander 08:51 on 20 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Jay Strauss 16:17 on 20 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Todd Hepler 21:16 on 21 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Jay Strauss 14:02 on 22 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Todd Hepler 15:48 on 22 Apr 2005

possible Class::DBI::Oracle [patch]
Hartmaier Alexander 16:23 on 20 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Jay Strauss 17:41 on 20 Apr 2005

Re: possible Class::DBI::Oracle [patch]
Carl Johnstone 10:10 on 22 Apr 2005

Re: possible Class::DBI::Oracle [patch]
David Naughton 15:21 on 22 Apr 2005

Generated at 09:29 on 27 Apr 2005 by mariachi v0.52