Terrence Brannon
2009-10-20 17:52:08 UTC
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.
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.
With Sybase::Simple you'd do something like
$dbh->ExecSql("use $db");
$dbh->ExecSql("use $db");
Hi, it appears that Sybase::Simple does not have support for
connecting to a particular database after connecting to the server?
connecting to a particular database after connecting to the server?