Browse Source

Log all statements in <sql>

PR: 20309


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274640 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
f82a8c58db
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/SQLExec.java
  2. +1
    -1
      src/testcases/org/apache/tools/ant/types/AddTypeTest.java

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

@@ -503,7 +503,6 @@ public class SQLExec extends JDBCTask {
||
(delimiterType.equals(DelimiterType.ROW)
&& line.equals(delimiter))) {
log("SQL: " + sql, Project.MSG_VERBOSE);
execSQL(sql.substring(0, sql.length() - delimiter.length()),
out);
sql.replace(0, sql.length(), "");
@@ -527,6 +526,7 @@ public class SQLExec extends JDBCTask {
try {
totalSql++;
log("SQL: " + sql, Project.MSG_VERBOSE);
if (!statement.execute(sql)) {
log(statement.getUpdateCount() + " rows affected",
Project.MSG_VERBOSE);


+ 1
- 1
src/testcases/org/apache/tools/ant/types/AddTypeTest.java View File

@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2002 The Apache Software Foundation. All rights
* Copyright (c) 2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without


Loading…
Cancel
Save