walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

ProgrammingError: ORDER BY "predicate" is ambiguous #69

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by oha...@me.com on 23 Jun 2009 at 8:51

GoogleCodeExporter commented 8 years ago
I post the bad diff, now the good :

Index: BinaryRelationPartition.py
===================================================================
--- BinaryRelationPartition.py  (révision 1690)
+++ BinaryRelationPartition.py  (copie de travail)
@@ -375,7 +375,7 @@
             else:
                 rt.append("'%s'"%self.hardCodedResultFields[idx]+termNameAlias)
                 if self.hardCodedResultTermsTypes[idx]:
-                    
rt.append("'%s'"%self.hardCodedResultTermsTypes[idx]+termNameAlias)
+                    
rt.append("'%s'"%self.hardCodedResultTermsTypes[idx]+termTypeAlias)
         return rt

Original comment by oha...@me.com on 23 Jun 2009 at 12:22

GoogleCodeExporter commented 8 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 8:23

GoogleCodeExporter commented 8 years ago
These issues involve bits that have been moved out of rdflib proper for now. We 
will re-open them 
or move them to rdfextas as appropriate.

Original comment by eik...@gmail.com on 11 Feb 2010 at 6:06