[MOBY-guts] biomoby commit
Mark Wilkinson
mwilkinson at pub.open-bio.org
Fri Jul 29 16:20:43 UTC 2005
mwilkinson
Fri Jul 29 12:20:43 EDT 2005
Update of /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi
In directory pub.open-bio.org:/tmp/cvs-serv9755/MOBY/Adaptor/moby/queryapi
Modified Files:
mysql.pm
Log Message:
querynamespace returned nothing if no parameter was passed. It should return everything
moby-live/Perl/MOBY/Adaptor/moby/queryapi mysql.pm,1.63,1.64
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm 2005/07/28 21:26:59 1.63
+++ /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm 2005/07/29 16:20:43 1.64
@@ -966,13 +966,15 @@
sub query_namespace{
my ($self, %args) = @_;
my $type = $args{type};
- return [{}] unless $type;
my $condition = "";
if ($type =~ /^urn\:lsid/){
$condition = " where namespace_lsid = ?";
} elsif ($type) {
$condition = " where namespace_type = ?";
+ } else {
+ $condition = "";
}
+
my $dbh = _getDBHandle("mobynamespace");
my $statement = "select
More information about the MOBY-guts
mailing list