Re: Setting session stuff

[prev] [thread] [next] [Date index for 2004/08/01]

From: Tony Bowden
Subject: Re: Setting session stuff
Date: 21:04 on 01 Aug 2004
On Sun, Aug 01, 2004 at 03:38:54PM -0500, Jay Strauss wrote:
> Not to reply to myself, but is this OK?
> __PACKAGE__->set_db('Main',$dsn,$username,$password,{AutoCommit=>1});
> my $dbh = __PACKAGE__->db_Main;
> $dbh->do(q[alter session set nls_date_format = 'yyyy/mm/dd hh24:mi:ss']);

Yes, although you don't need the $dbh temporary, and if you're on the
latest CPAN release you should be using connection() rather than set_db:

__PACKAGE__->connection($dsn,$username,$password,{AutoCommit=>1});
__PACKAGE__->db_Main->do(q[alter session set nls_date_format = 'yyyy/mm/dd hh24:mi:ss']);

Tony

Setting session stuff
Jay Strauss 20:29 on 01 Aug 2004

Re: Setting session stuff
Jay Strauss 20:38 on 01 Aug 2004

Re: Setting session stuff
Tony Bowden 21:04 on 01 Aug 2004

Re: Setting session stuff
Jay Strauss 03:11 on 02 Aug 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52