Sybase::Simple - use database should be an option to the constructor?
Terrence Brannon <[email protected]> Tue, 20 Oct 2009 13:52:08 -0400
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
According to Mike, choosing a database is a separate step in Sybase::Simple (which BTW is a godsend module). However, I see no reason why it couldnt be an additional argument to new: my $syb = Sybase::Simple->new($user, $password, undef, $database); And certainly the DBI has the database_name as an argument to it's $dbh factory Of course I could just subclass Sybase::Simple with a module that took the additional argument and then made the call. But I honestly think that most people would prefer that the standard Sybase::Simple offer it. On Tue, Oct 20, 2009 at 1:22 PM, Michael Peppler <[email protected]> wrote: > With Sybase::Simple you'd do something like > > $dbh->ExecSql("use $db"); > > > On Oct 20, 2009, at 5:53 PM, Terrence Brannon wrote: > >> Hi, it appears that Sybase::Simple does not have support for >> connecting to a particular database after connecting to the server?