[
https://issues.apache.org/jira/browse/JENA-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne updated JENA-200:
-------------------------------
Attachment: TSVInputPatchNullHeader2.patch
A result set of no variables is legal. Consider "SELECT * {}". The output
should be two lines of no characters.
It's one for the header of no variables, one for the result row of no bindings.
There is something wrong though as outputing that in TSV and reading it in
again with "arq.rset" is wrong (looks one variable of name "").
The code needs to handle both null and empty string as special cases (header
reading and row reading).
Patch attached - this includes the tests from the first patch so no need to
process both patches.
> TSVInput does not check for malformed header row
> ------------------------------------------------
>
> Key: JENA-200
> URL: https://issues.apache.org/jira/browse/JENA-200
> Project: Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: ARQ 2.9.1
> Reporter: Rob Vesse
> Priority: Minor
> Fix For: ARQ 2.9.1
>
> Attachments: TSVEmptyNullHeaderPatch.patch,
> TSVInputPatchNullHeader2.patch
>
>
> As a side effect of discovering JENA-199 I noticed that TSVInput does not
> check for a malformed header row (null/empty)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira