[redland-dev] [patch] Re: duplicates in model

Michael Stahl Michael.Stahl at Sun.com
Mon Apr 28 12:20:45 BST 2008


so, it seems that librdf_storage_FOO_context_add_statement functions do =

not check for duplicates; methinks they should.
how about the following patch for "memory" and "hashes" storages?
(currently i don't care about others; maybe someone else wants to fix =

those, or check if they actually don't have the same problem?)

also, attached a test case to reproduce the problem.

michael


-- =

"The use of four-letter words like goto can occasionally be justified
  even in the best of company." -- Donald E. Knuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: redland-1.0.7-contextdup.patch
Type: text/x-patch
Size: 5164 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20080428=
/7f454f5e/redland-1.0.7-contextdup.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contextdup.c
Type: text/x-csrc
Size: 1400 bytes
Desc: not available
Url : http://lists.usefulinc.com/pipermail/redland-dev/attachments/20080428=
/7f454f5e/contextdup.c


More information about the redland-dev mailing list