From eb51d6e794d05082d33148921fdd8322f8d6a1fc Mon Sep 17 00:00:00 2001
From: tjc <tjc@ee4ac58c-ac51-4696-9907-e4b3aa274f04>
Date: Fri, 7 Mar 2008 14:32:31 +0000
Subject: [PATCH] update

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@7211 ee4ac58c-ac51-4696-9907-e4b3aa274f04
---
 artemis_sqlmap/AnalysisFeature.xml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/artemis_sqlmap/AnalysisFeature.xml b/artemis_sqlmap/AnalysisFeature.xml
index 6eefe293a..752da5020 100644
--- a/artemis_sqlmap/AnalysisFeature.xml
+++ b/artemis_sqlmap/AnalysisFeature.xml
@@ -51,8 +51,7 @@
         <isNotNull property="significance"> ,significance </isNotNull>
         <isNotNull property="identity">     ,identity </isNotNull>)
       VALUES
-        ( $feature.featureId$,
-          (SELECT analysis_id FROM analysis WHERE program=#analysis.program#)
+        ( $feature.featureId$, $analysis.analysisId$
           <isNotNull property="rawScore">     ,$rawScore$ </isNotNull>
           <isNotNull property="normScore">    ,$normScore$ </isNotNull>
           <isNotNull property="significance"> ,$significance$ </isNotNull>
-- 
GitLab