You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2006/08/28 22:50:24 UTC

[jira] Resolved: (DERBY-1609) Add a runScript method to ij that takes a script as an InputStream and returns the output to a stream.

     [ http://issues.apache.org/jira/browse/DERBY-1609?page=all ]

Daniel John Debrunner resolved DERBY-1609.
------------------------------------------

    Fix Version/s: 10.3.0.0
       Resolution: Fixed

Fixed & complete in 10.2 and trunk - thanks for the merges Rick,

> Add a runScript method to ij that takes a script as an InputStream and returns the output to a stream.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-1609
>                 URL: http://issues.apache.org/jira/browse/DERBY-1609
>             Project: Derby
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Daniel John Debrunner
>         Assigned To: Daniel John Debrunner
>            Priority: Minor
>             Fix For: 10.2.1.0, 10.3.0.0
>
>
> Useful for running ij SQL scripts as part of JUnit tests and for applications to use instead of the awkward way to use ij from a program today.
>   /**
>    * Run a SQL script from an input stream and write
>    * the resulting output to the provided OutputStream.
>    * 
>    * @param conn Connection to be used as the script's default connection. 
>    * @param sqlIn InputStream for the script.
>    * @param inputEncoding Encoding of the script.
>    * @param sqlOut OutputStream for the script's output
>    * @param outputEncoding Output encoding to use.
>    * @return Number of SQLExceptions thrown during the execution, -1 if not known.
>    * @throws UnsupportedEncodingException
>    */
>   public static int runScript(
> 		  Connection conn,
> 		  InputStream sqlIn,
> 		  String inputEncoding,
> 		  PrintStream sqlOut,
> 		  String outputEncoding)
> 		  throws UnsupportedEncodingException

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira