[redland-dev] [Redland librdf RDF API 0000489]: librdf_model_contains_statement return code is incorrect

Mantis Bug Tracker mantis-bug-sender at librdf.org
Thu Jan 26 07:37:32 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=489 
====================================================================== 
Reported By:                zoggy
Assigned To:                
====================================================================== 
Project:                    Redland librdf RDF API
Issue ID:                   489
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-01-26 12:37
Last Modified:              2012-01-26 12:37
====================================================================== 
Summary:                    librdf_model_contains_statement return code is
incorrect
Description: 
Hello,

Documentation of librdf_model_contains_statement says:
  Returns :
	non 0 if the model contains the statement (>0 if the statement is illegal)

But it seems that the same positive value (1) is returned when everything went
all right (for example see librdf_storage_mysql_contains_statement) or when
there is an illegal statement (see the checks done in
librdf_model_contains_statement: 1 is returned when the statement is not
complete).

So by now it is impossible to use the return value to known whether the
statement is really contained or if an error occurs.

Zoggy
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-01-26 12:37 zoggy          New Issue                                    
======================================================================



More information about the redland-dev mailing list