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 "Rick Hillegas (JIRA)" <de...@db.apache.org> on 2006/08/25 19:55:23 UTC
[jira] Commented: (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=comments#action_12430556 ]
Rick Hillegas commented on DERBY-1609:
--------------------------------------
Original patch DERBY-1609 (433331, 433274, 433273) ported to 10.2 branch at subversion revision 436875.
> 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
>
>
> 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