Changeset: cfb55d248d82 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cfb55d248d82
Modified Files:
monetdb5/extras/rdf/rdfschema.c
Branch: rdf
Log Message:
fix bug in printing referenced table names
instead of the name of the referenced table, the name of the current table was
printed
diffs (26 lines):
diff --git a/monetdb5/extras/rdf/rdfschema.c b/monetdb5/extras/rdf/rdfschema.c
--- a/monetdb5/extras/rdf/rdfschema.c
+++ b/monetdb5/extras/rdf/rdfschema.c
@@ -6582,12 +6582,11 @@ str printSampleData(CSSample *csSample,
#if NO_OUTPUTFILE == 0
static
void printPropertyWithMarkers(FILE *fout, str propStr, CSSampleExtend
*csSampleEx, CSPropTypes *csPropTypes, int tblId, int propId, BATiter mapi, BAT
*mbat) {
- CSSampleExtend sample = csSampleEx[tblId];
// print property string
fprintf(fout, "%s", propStr);
// add star (*) if multi-valued
- if (sample.lstIsMVCol[propId]) {
+ if (csSampleEx[tblId].lstIsMVCol[propId]) {
fprintf(fout, "*");
}
@@ -6599,7 +6598,7 @@ void printPropertyWithMarkers(FILE *fout
#if USE_SHORT_NAMES
str nameStrShort;
#endif
- getStringName(sample.candidatesOrdered[0], &nameStr,
mapi, mbat, 1);
+
getStringName(csSampleEx[refTblId].candidatesOrdered[0], &nameStr, mapi, mbat,
1);
#if USE_SHORT_NAMES
getPropNameShort(&nameStrShort, nameStr);
fprintf(fout, "->%s", nameStrShort);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list