[prev] [thread] [next] [Date index for 2005/04/20]
This is a multi-part message in MIME format. ------=_NextPart_000_005F_01C545D0.CAFBF070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi! This is how my base class looks: ------------------------------------------ package NAC::DBI; use strict; use warnings; use base 'Class::DBI::Oracle'; use Class::DBI::Plugin::RetrieveAll; use dbtools; dbtools::set_ora_env(); #set environment variables needed by oracle __PACKAGE__->connection('dbi:' . $dbtools::dbtype . ':' . $dbtools::database, $dbtools::nacwebusername, $dbtools::nacwebpassword, {AutoCommit=3D>1}); foreach my $sql_session ($dbtools::cfg->param("dbsession")) { __PACKAGE__->db_Main->do($sql_session); } $Class::DBI::Weaken_Is_Available =3D 0; # cut away the 'fk_' for every column that matches = (interface->device->name is better to understand than 'interface->fk_device->name' sub accessor_name { my ($class, $column) =3D @_; $column =3D~ s/^fk_//; return $column; } ------------------------------------------ This works as I expected... -Alex -----Urspr=FCngliche Nachricht----- Von: Perrin Harkins [mailto:perrin@xxxx.xxx]=20 Gesendet: Mittwoch, 20. April 2005 17:38 An: Carl Johnstone Cc: cdbi-talk@xxxxxx.xxxxx.xxx Betreff: Re: SQL on connect On Wed, 2005-04-20 at 13:56 +0100, Carl Johnstone wrote: > Is there a better solution where you can specify that "this SQL should = be=20 > run after DB connection"? Not really. If you are already overriding db_Main and using a custom connection method, you could do it there. Otherwise, you might want to override one of the Ima::DBI methods where it opens the connection. - Perrin ------=_NextPart_000_005F_01C545D0.CAFBF070 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIISkjCCApow ggIDoAMCAQICASQwDQYJKoZIhvcNAQEEBQAwcTELMAkGA1UEBhMCREUxHDAaBgNVBAoTE0RldXRz Y2hlIFRlbGVrb20gQUcxHzAdBgNVBAsTFlQtVGVsZVNlYyBU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IENBAgJHFTAJBgUrDgMCGgUA oIIBrTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0wNTA0MjAxNTQ1 NTFaMCMGCSqGSIb3DQEJBDEWBBS0pXh1Sr9wE4ZmftwMhcTJuhVTjzAkBgkqhkiG9w0BCQ8xFzAV MAoGCCqGSIb3DQMHMAcGBSsOAwIaMIGRBgkrBgEEAYI3EAQxgYMwgYAwejELMAkGA1UEBhMCREUx JTAjBgNVBAoTHFQtU3lzdGVtcyBJbnRlcm5hdGlvbmFsIEdtYkgxJTAjBgNVBAsTHFQtU3lzdGVt cyBJbnRlcm5hdGlvbmFsIEdtYkgxHTAbBgNVBAMTFFQtU3lzdGVtcyBDb21wYW55IENBAgJHFjCB kwYLKoZIhvcNAQkQAgsxgYOggYAwejELMAkGA1UEBhMCREUxJTAjBgNVBAoTHFQtU3lzdGVtcyBJ bnRlcm5hdGlvbmFsIEdtYkgxJTAjBgNVBAsTHFQtU3lzdGVtcyBJbnRlcm5hdGlvbmFsIEdtYkgx HTAbBgNVBAMTFFQtU3lzdGVtcyBDb21wYW55IENBAgJHFjANBgkqhkiG9w0BAQEFAASBgBJ+fkWC Act1CmK+Gw4+DQEydARRtf1EViEj1okxgsZdAt95Ws4YjZDOM26DnIMkr3AJWep/T2qmOVddW+7o oH76Urwhgyl9iJHz9AHQJ5ONpcGknQ8pN4BBEpmLsGGKaKHo8fJ9a2LY7AMvXywtDm9gn07ffRuB pmM0XBePzFjSAAAAAAAA ------=_NextPart_000_005F_01C545D0.CAFBF070--
(message missing) |
SQL on connect
|
Re: SQL on connect
|
SQL on connect
|
Generated at 09:29 on 27 Apr 2005 by mariachi v0.52