Author: mcantelon
Date: Tue Jan 10 12:28:07 2012
New Revision: 10614
Log:
Added specification of target type to keymap helper.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Tue Jan 10 11:57:10 2012
(r10613)
+++ trunk/lib/QubitFlatfileImport.class.php Tue Jan 10 12:28:07 2012
(r10614)
@@ -538,10 +538,14 @@
return $relation;
}
- public function fetchKeymapEntryBySource($sourceId, $sourceName)
+ public function fetchKeymapEntryBySourceAndTargetName($sourceId,
$sourceName, $targetName)
{
- $query = "SELECT target_id FROM keymap WHERE source_id=? AND
source_name=?";
- $statement = QubitFlatfileImport::sqlQuery($query, array($sourceId,
$sourceName));
+ $query = "SELECT target_id FROM keymap \r
+ WHERE source_id=? AND source_name=? AND target_name=?";
+ $statement = QubitFlatfileImport::sqlQuery(
+ $query,
+ array($sourceId, $sourceName, $targetName)
+ );
return $statement->fetch(PDO::FETCH_OBJ);
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.