[MOBY-guts] biomoby commit

Mark Wilkinson mwilkinson at pub.open-bio.org
Wed Jul 27 14:07:57 UTC 2005


mwilkinson
Wed Jul 27 10:07:57 EDT 2005
Update of /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi
In directory pub.open-bio.org:/tmp/cvs-serv28595/MOBY/Adaptor/moby/queryapi

Modified Files:
	mysql.pm 
Log Message:
calling dbh on the config instead of the adaptor

moby-live/Perl/MOBY/Adaptor/moby/queryapi mysql.pm,1.44,1.45
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm	2005/07/27 14:06:15	1.44
+++ /home/repository/moby/moby-live/Perl/MOBY/Adaptor/moby/queryapi/mysql.pm	2005/07/27 14:07:57	1.45
@@ -58,8 +58,8 @@
 sub _getDBHandle {
     my ($ontology) = @_;
     my $CONF = MOBY::Config->new;
-    $CONF->getDataAdaptor(source => $ontology);
-    return $CONF->dbh;
+    my $adap = $CONF->getDataAdaptor(source => $ontology);
+    return $adap->dbh;
 }
 
 sub new {




More information about the MOBY-guts mailing list