[CDBI] Ima::DBI and mod_perl2
Michele Valzelli <[email protected]> Wed, 3 Nov 2010 17:28:01 +0100
| Newsgroups | gmane.comp.lang.perl.modules.class-dbi |
|---|---|
| Message-ID | <[email protected]> |
--===============1981426584== Content-Type: multipart/alternative; boundary=001485f9220c63b2ed049428869b --001485f9220c63b2ed049428869b Content-Type: text/plain; charset=ISO-8859-1 Hi, I am migrating a Class::DBI/Mason site from mod_perl do mod_perl2. I was using the db_Main override for mod_perl listed on the class-dbi wiki and I replaced it with a call to connection method since Ima::DBI now works correctly with mod_perl. But in my overridden db_Main I was also setting Oracle session globals as in this page http://wiki.class-dbi.com/wiki/Setting_Session_Globals. Just putting the Your_CDBI::Class->db_Main->do($sql_statement); line after the connect doesn't ensure it gets called at every connection, so I need to override db_Main again. But how to do it preserving the funcionality under mod_perl2? Thanks in advance, Michele -- tell my friends I'm on vacation and say that I'm OK just wanna sleep all day --001485f9220c63b2ed049428869b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi,<div><br></div><div>I am migrating a Class::DBI/Mason site from mod_perl= do mod_perl2. I was using the db_Main override for mod_perl listed on the = class-dbi wiki and I replaced it with a call to connection method since Ima= ::DBI now works correctly with mod_perl. But in my overridden db_Main I was= also setting Oracle session globals as in this page=A0<a href=3D"http://wi= ki.class-dbi.com/wiki/Setting_Session_Globals" target=3D"_blank">http://wik= i.class-dbi.com/wiki/Setting_Session_Globals</a>. Just putting the=A0Your_C= DBI::Class->db_Main->do($sql_statement); line after the connect doesn= 't ensure it gets called at every connection, so I need to override db_= Main again. But how to do it preserving the funcionality under mod_perl2?</= div> <div><br></div><div>Thanks in advance,</div><div><br></div><div>Michele</di= v><div><br></div><div>-- <br>tell my friends I'm on vacation<br>and say= that I'm OK<br>just wanna sleep all day<br> </div> --001485f9220c63b2ed049428869b-- --===============1981426584== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ClassDBI mailing list ClassDBI-Ra3b/[email protected] http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi --===============1981426584==--