[Catalyst] ok against sqlite. Not working against Oracle81.Sequence problem.
Andrew Main
andrew.main at gmail.com
Tue Mar 7 00:12:15 CET 2006
For the benefit of all still stuck using Class::DBI, this also applies
to PostgreSQL:
http://search.cpan.org/~tmtm/Class-DBI-v3.0.14/lib/Class/DBI.pm#connection
########
Class::DBI helps you along a bit to set up the database connection.
connection() provides its own default attributes depending on the
driver name in the data_source parameter. The connection() method
provides defaults for these attributes:
FetchHashKeyName => 'NAME_lc',
ShowErrorStatement => 1,
ChopBlanks => 1,
AutoCommit => 1,
(Except for Oracle and Pg, where AutoCommit defaults 0, placing the
database in transactional mode).
########
-Andrew
On 3/6/06, David Rio Deiros <drio at console.net> wrote:
> On Mon, Mar 06, 2006 at 02:21:53PM -0800, David Rio Deiros wrote:
> > On Mon, Mar 06, 2006 at 02:06:01PM -0800, David Rio Deiros wrote:
> > > That made it work.
> >
> > I have a very weird problem now.
>
> It is fixed now. I added this to my main class following Ian's instructions:
>
> our $ora_opt = { RaiseError=>1, AutoCommit=>1 };
> __PACKAGE__->connection('dbi:Oracle:oranbc_two','nbcmv','mediav', $ora_opt);
>
> Weird to have to force the autocommit.
>
> Thanks again!
>
> David
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
More information about the Catalyst
mailing list