gjhiggins/rdflib — Issue #68: ProgrammingError: ORDER BY "predicate" is ambiguous
Author: gjhiggins
Created: 2011-10-19 01:10:37+00:00
State: open

Originally filed by oha...@me.com on 2009-06-23T08:51:07

Message :

ProgrammingError: ORDER BY "predicate" is ambiguous
LINE 1: ...sociativeBox.context_term != 'F' ORDER BY subject,predicate,...

Fix :

Index: BinaryRelationPartition.py
===================================================================
--- BinaryRelationPartition.py (révision 1690)
+++ BinaryRelationPartition.py (copie de travail)
@@ -373,9 +373,9 @@
else:

rt.append("'%s'"%self.hardCodedResultTermsTypes[idx]+termTypeAlias)
else:
-
rt.append("'%s'"%self.hardCodedResultFields[idx]+termNameAlias)
+
rt.append("'%s'"%self.hardCodedResultFields[idx]+termTypeAlias)
if self.hardCodedResultTermsTypes[idx]:
-
rt.append("'%s'"%self.hardCodedResultTermsTypes[idx]+termNameAlias)
+
rt.append("'%s'"%self.hardCodedResultTermsTypes[idx]+termTypeAlias)
return rt