Browse Source

merge fix for 27162

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278128 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
d56d435838
2 changed files with 7 additions and 4 deletions
  1. +4
    -2
      WHATSNEW
  2. +3
    -2
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java

+ 4
- 2
WHATSNEW View File

@@ -82,6 +82,10 @@ Fixed bugs:
* The .NET compilation tasks failed if filenames given as references * The .NET compilation tasks failed if filenames given as references
contained spaces. Bugzilla Report 27170. contained spaces. Bugzilla Report 27170.


* SQL task would try access result sets of statements that didn't
return any, causing problems with Informix IDS 9.2 and IBM DB2 8.1
FixPak 6 (or later). Bugzilla Reports 27162 and 29954.

Other changes: Other changes:
-------------- --------------


@@ -513,8 +517,6 @@ Fixed bugs:


* macrodef @@ escaping was broken. Bugzilla Report 27069. * macrodef @@ escaping was broken. Bugzilla Report 27069.


* SQL task did not work with Informix IDS 9.2. Bugzilla Report 27162.

* MacroDef did not allow attributes named 'description'. Bugzilla Report 27175. * MacroDef did not allow attributes named 'description'. Bugzilla Report 27175.


* Throw build exception if name attribute missing from patternset#NameEntry. * Throw build exception if name attribute missing from patternset#NameEntry.


+ 3
- 2
src/main/org/apache/tools/ant/taskdefs/SQLExec.java View File

@@ -590,9 +590,10 @@ public class SQLExec extends JDBCTask {
* @param rs the resultset to print information about * @param rs the resultset to print information about
* @param out the place to print results * @param out the place to print results
* @throws SQLException on SQL problems. * @throws SQLException on SQL problems.
* @since Ant 1.7
* @since Ant 1.6.3
*/ */
protected void printResults(ResultSet rs, PrintStream out) throws SQLException {
protected void printResults(ResultSet rs, PrintStream out)
throws SQLException {
if (rs != null) { if (rs != null) {
log("Processing new result set.", Project.MSG_VERBOSE); log("Processing new result set.", Project.MSG_VERBOSE);
ResultSetMetaData md = rs.getMetaData(); ResultSetMetaData md = rs.getMetaData();


Loading…
Cancel
Save