db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Leroux (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4553) In ij GETCURRENTROWNUMBER directly writeits result to output
Date Wed, 17 Feb 2010 23:23:27 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Sylvain Leroux updated DERBY-4553:

    Attachment: DERBY-4553_repro.patch

Attaching a repro for this issue.

The repro just create a cursor and add a call to GETCURRENTROWNUMBER at the end of ij7.sql.
Running the ToolScripts test suite produce the following result:
  sh$ ant all && java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.tools.ToolScripts

  Time: 130.112
  There were 2 failures:

The '0's in the output are the result of GETCURRENTROWNUMBER. And are not caught by the test
tool. That leads to a failure of the corresponding test.


By looking at the source of ij, it seems there is currently no class implementing ijResult
suitable to return only one value. An option would be to create a new class derived of ijResultVector
to implement scalar results as 1-dimension vector.

> In ij GETCURRENTROWNUMBER directly writeits result  to output
> -------------------------------------------------------------
>                 Key: DERBY-4553
>                 URL: https://issues.apache.org/jira/browse/DERBY-4553
>             Project: Derby
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Sylvain Leroux
>            Priority: Trivial
>         Attachments: DERBY-4553_repro.patch
> In ij, the statement GETCURRENTROWNUMBER directly write its result to output instead
of returning it:
> Here are the faulty lines in ij.ij, method GetCurrentRowNumber():
> 	...
> 	LocalizedResource.OutputWriter().println(utilInstance.getCurrentRowNumber(rs));
> 	return null;
> This interferes with testing - and possibly with any external tool using the ij.ij parser.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message